X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FFeatureColourChooser.java;h=b27328d2c947af7f9acb948143d4870736eb6ea6;hb=refs%2Fheads%2Ffeatures%2FJAL-2446NCList;hp=192fd23d32964224a2378565c31aeefa4ae08aa7;hpb=d1bb7a31fc091606aedbc255a5766ac79e36fa91;p=jalview.git diff --git a/src/jalview/gui/FeatureColourChooser.java b/src/jalview/gui/FeatureColourChooser.java index 192fd23..b27328d 100644 --- a/src/jalview/gui/FeatureColourChooser.java +++ b/src/jalview/gui/FeatureColourChooser.java @@ -119,8 +119,9 @@ public class FeatureColourChooser extends JalviewDialog this.fr = frender; this.type = theType; ap = fr.ap; - String title = MessageManager.formatMessage( - "label.graduated_color_for_params", new String[] { theType }); + String title = MessageManager + .formatMessage("label.graduated_color_for_params", new String[] + { theType }); initDialogFrame(this, true, blocking, title, 480, 185); slider.addChangeListener(new ChangeListener() @@ -207,7 +208,8 @@ public class FeatureColourChooser extends JalviewDialog slider.setEnabled(true); slider.setValue((int) (cs.getThreshold() * scaleFactor)); thresholdValue.setEnabled(true); - threshline = new GraphLine((max - min) / 2f, "Threshold", Color.black); + threshline = new GraphLine((max - min) / 2f, "Threshold", + Color.black); threshline.value = cs.getThreshold(); } @@ -302,14 +304,14 @@ public class FeatureColourChooser extends JalviewDialog slider.setEnabled(false); slider.setOpaque(false); slider.setPreferredSize(new Dimension(100, 32)); - slider.setToolTipText(MessageManager - .getString("label.adjust_threshold")); + slider.setToolTipText( + MessageManager.getString("label.adjust_threshold")); thresholdValue.setEnabled(false); thresholdValue.setColumns(7); jPanel3.setBackground(Color.white); thresholdIsMin.setBackground(Color.white); - thresholdIsMin.setText(MessageManager - .getString("label.threshold_minmax")); + thresholdIsMin + .setText(MessageManager.getString("label.threshold_minmax")); thresholdIsMin.setToolTipText(MessageManager .getString("label.toggle_absolute_relative_display_threshold")); thresholdIsMin.addActionListener(new ActionListener() @@ -323,9 +325,8 @@ public class FeatureColourChooser extends JalviewDialog colourByLabel.setBackground(Color.white); colourByLabel .setText(MessageManager.getString("label.colour_by_label")); - colourByLabel - .setToolTipText(MessageManager - .getString("label.display_features_same_type_different_label_using_different_colour")); + colourByLabel.setToolTipText(MessageManager.getString( + "label.display_features_same_type_different_label_using_different_colour")); colourByLabel.addActionListener(new ActionListener() { @Override @@ -443,7 +444,8 @@ public class FeatureColourChooser extends JalviewDialog /* * todo not yet implemented: visual indication of feature threshold */ - threshline = new GraphLine((max - min) / 2f, "Threshold", Color.black); + threshline = new GraphLine((max - min) / 2f, "Threshold", + Color.black); } if (hasThreshold) @@ -606,8 +608,8 @@ public class FeatureColourChooser extends JalviewDialog { if (colourEditor != null) { - System.err - .println("IMPLEMENTATION ISSUE: overwriting action listener for FeatureColourChooser"); + System.err.println( + "IMPLEMENTATION ISSUE: overwriting action listener for FeatureColourChooser"); } colourEditor = graduatedColorEditor; }