static { Jet = new InterpolatePaintScale(0, 1); Jet.add(0.00, new Color(0.0f, 0.0f, 1.0f)); Jet.add(0.16, new Color(0.0f, 0.5f, 1.0f)); Jet.add(0.33, new Color(0.0f, 1.0f, 1.0f)); Jet.add(0.50, new Color(0.5f, 1.0f, 0.5f)); Jet.add(0.66, new Color(1.0f, 1.0f, 0.0f)); Jet.add(0.83, new Color(1.0f, 0.5f, 0.0f)); Jet.add(1.00, new Color(1.0f, 0.0f, 0.0f)); }
public InterpolatePaintScale clone() { InterpolatePaintScale ips = new InterpolatePaintScale(lowerBound, upperBound); for (double key : colors.keySet()) ips.add(key, colors.get(key)); return ips; }