*/
public class FeatureColour implements FeatureColourI
{
- static final Color DEFAULT_NO_COLOUR = Color.LIGHT_GRAY;
+ static final Color DEFAULT_NO_COLOUR = null;
private static final String BAR = "|";
private boolean aboveThreshold;
- private boolean thresholdIsMinOrMax;
-
private boolean isHighToLow;
private boolean autoScaled;
updateBounds(min, max);
}
+ /**
+ * Constructor for a graduated colour
+ *
+ * @param low
+ * @param high
+ * @param noValueColour
+ * @param min
+ * @param max
+ */
public FeatureColour(Color low, Color high, Color noValueColour,
float min, float max)
{
}
@Override
- public boolean isThresholdMinMax()
- {
- return thresholdIsMinOrMax;
- }
-
- @Override
- public void setThresholdMinMax(boolean b)
- {
- thresholdIsMinOrMax = b;
- }
-
- @Override
public float getThreshold()
{
return threshold;
/*
* graduated colour case, optionally with threshold
* may be based on feature score on an attribute value
- * Float.NaN is assigned minimum visible score colour
- * no such attribute is assigned the 'no value' colour
+ * Float.NaN, or no value, is assigned the 'no value' colour
*/
float scr = feature.getScore();
if (attributeName != null)