From 3f5aa1b34824c71e12a5903040ffb9447bcdaaf7 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Sat, 12 Jan 2019 10:31:55 +0000 Subject: [PATCH] JAL-3184 class Javadoc added --- .../seqfeatures/FeatureRendererSettings.java | 29 ++++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/src/jalview/viewmodel/seqfeatures/FeatureRendererSettings.java b/src/jalview/viewmodel/seqfeatures/FeatureRendererSettings.java index f594453..02b7f35 100644 --- a/src/jalview/viewmodel/seqfeatures/FeatureRendererSettings.java +++ b/src/jalview/viewmodel/seqfeatures/FeatureRendererSettings.java @@ -30,6 +30,17 @@ import java.util.Iterator; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; +/** + * A data bean that holds + * + * Note that feature type visibility settings are not held here. + */ public class FeatureRendererSettings implements Cloneable { String[] renderOrder; @@ -60,12 +71,12 @@ public class FeatureRendererSettings implements Cloneable { super(); this.renderOrder = Arrays.copyOf(renderOrder, renderOrder.length); - this.featureGroups = new ConcurrentHashMap( + this.featureGroups = new ConcurrentHashMap<>( featureGroups); - this.featureColours = new ConcurrentHashMap( + this.featureColours = new ConcurrentHashMap<>( featureColours); this.transparency = transparency; - this.featureOrder = new ConcurrentHashMap(featureOrder); + this.featureOrder = new ConcurrentHashMap<>(featureOrder); } /** @@ -77,10 +88,10 @@ public class FeatureRendererSettings implements Cloneable jalview.viewmodel.seqfeatures.FeatureRendererModel fr) { renderOrder = null; - featureGroups = new ConcurrentHashMap(); - featureColours = new ConcurrentHashMap(); + featureGroups = new ConcurrentHashMap<>(); + featureColours = new ConcurrentHashMap<>(); featureFilters = new HashMap<>(); - featureOrder = new ConcurrentHashMap(); + featureOrder = new ConcurrentHashMap<>(); if (fr.renderOrder != null) { @@ -90,12 +101,12 @@ public class FeatureRendererSettings implements Cloneable } if (fr.featureGroups != null) { - this.featureGroups = new ConcurrentHashMap( + this.featureGroups = new ConcurrentHashMap<>( fr.featureGroups); } if (fr.featureColours != null) { - this.featureColours = new ConcurrentHashMap( + this.featureColours = new ConcurrentHashMap<>( fr.featureColours); } Iterator en = fr.featureColours.keySet().iterator(); @@ -118,7 +129,7 @@ public class FeatureRendererSettings implements Cloneable this.transparency = fr.transparency; if (fr.featureOrder != null) { - this.featureOrder = new ConcurrentHashMap( + this.featureOrder = new ConcurrentHashMap<>( fr.featureOrder); } } -- 1.7.10.2