boolean useLegacy = Cache.getDefault(Preferences.USE_LEGACY_GAP, false);
Color gapCol = Cache.getDefaultColour(Preferences.GAP_COLOUR,
- Preferences.OVERVIEW_DEFAULT_GAP);
+ jalview.renderer.OverviewResColourFinder.OVERVIEW_DEFAULT_GAP);
Color hiddenCol = Cache.getDefaultColour(Preferences.HIDDEN_COLOUR,
- Preferences.OVERVIEW_DEFAULT_HIDDEN);
+ jalview.renderer.OverviewResColourFinder.OVERVIEW_DEFAULT_HIDDEN);
cf = new OverviewResColourFinder(useLegacy, gapCol, hiddenCol);
setSize(od.getWidth(), od.getHeight());
private static final int MAX_FONT_SIZE = 30;
- public static final Color OVERVIEW_DEFAULT_GAP = Color.lightGray;
-
- public static final Color OVERVIEW_DEFAULT_LEGACY_GAP = Color.white;
-
- public static final Color OVERVIEW_DEFAULT_HIDDEN = Color.darkGray
- .darker();
-
/**
* Holds name and link separated with | character. Sequence ID must be
* $SEQUENCE_ID$ or $SEQUENCE_ID=/.possible | chars ./=$
* Set overview panel defaults
*/
gapColour.setBackground(
- Cache.getDefaultColour(GAP_COLOUR, OVERVIEW_DEFAULT_GAP));
+ Cache.getDefaultColour(GAP_COLOUR,
+ jalview.renderer.OverviewResColourFinder.OVERVIEW_DEFAULT_GAP));
hiddenColour.setBackground(
Cache.getDefaultColour(HIDDEN_COLOUR,
- OVERVIEW_DEFAULT_HIDDEN));
+ jalview.renderer.OverviewResColourFinder.OVERVIEW_DEFAULT_HIDDEN));
useLegacyGap.setSelected(Cache.getDefault(USE_LEGACY_GAP, false));
gapLabel.setEnabled(!useLegacyGap.isSelected());
gapColour.setEnabled(!useLegacyGap.isSelected());
boolean enabled = useLegacyGap.isSelected();
if (enabled)
{
- gapColour.setBackground(OVERVIEW_DEFAULT_LEGACY_GAP);
+ gapColour.setBackground(
+ jalview.renderer.OverviewResColourFinder.OVERVIEW_DEFAULT_LEGACY_GAP);
}
else
{
- gapColour.setBackground(OVERVIEW_DEFAULT_GAP);
+ gapColour.setBackground(
+ jalview.renderer.OverviewResColourFinder.OVERVIEW_DEFAULT_GAP);
}
gapColour.setEnabled(!enabled);
gapLabel.setEnabled(!enabled);
useLegacyGap.setSelected(false);
useLegacyGaps_actionPerformed(null);
showHiddenAtStart.setSelected(true);
- hiddenColour.setBackground(OVERVIEW_DEFAULT_HIDDEN);
+ hiddenColour.setBackground(
+ jalview.renderer.OverviewResColourFinder.OVERVIEW_DEFAULT_HIDDEN);
}
@Override
import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
-import jalview.gui.Preferences;
import jalview.util.Comparison;
import java.awt.Color;
boolean useLegacy = false;
+ public static final Color OVERVIEW_DEFAULT_GAP = Color.lightGray;
+
+ public static final Color OVERVIEW_DEFAULT_LEGACY_GAP = Color.white;
+
+ public static final Color OVERVIEW_DEFAULT_HIDDEN = Color.darkGray
+ .darker();
+
/**
* Constructor without colour settings (used by applet)
*/
public OverviewResColourFinder()
{
- this(false, Preferences.OVERVIEW_DEFAULT_GAP,
- Preferences.OVERVIEW_DEFAULT_HIDDEN);
+ this(false, OVERVIEW_DEFAULT_GAP, OVERVIEW_DEFAULT_HIDDEN);
}
/**
import jalview.datamodel.SequenceI;
import jalview.gui.AlignViewport;
import jalview.gui.JvOptionPane;
-import jalview.gui.Preferences;
import jalview.schemes.ColourSchemeI;
import jalview.schemes.UserColourScheme;
import jalview.schemes.ZappoColourScheme;
// gaps gap colour
c = rcf.getBoxColour(shader, seq, 3);
- assertEquals(Preferences.OVERVIEW_DEFAULT_GAP, c);
+ assertEquals(
+ jalview.renderer.OverviewResColourFinder.OVERVIEW_DEFAULT_GAP,
+ c);
// legacy colouring set explicitly via constructor
rcf = new OverviewResColourFinder(true, Color.blue, Color.red);
// gaps gap colour
c = rcf.getBoxColour(shader, seq, 3);
- assertEquals(Preferences.OVERVIEW_DEFAULT_GAP, c);
+ assertEquals(
+ jalview.renderer.OverviewResColourFinder.OVERVIEW_DEFAULT_GAP,
+ c);
// non legacy colouring with colour scheme
rcf = new OverviewResColourFinder(false, Color.blue, Color.red);