HiRISE

HiRISE.HiReport.util
Class SpectrumDrawingSupplier

java.lang.Object
  extended by org.jfree.chart.plot.DefaultDrawingSupplier
      extended by HiRISE.HiReport.util.SpectrumDrawingSupplier
All Implemented Interfaces:
Serializable, Cloneable, DrawingSupplier, PublicCloneable

public class SpectrumDrawingSupplier
extends DefaultDrawingSupplier

Drawing supplier that produces colors from a spectrum gradient. By default, the colors are produced randomly; however, if constructed with a fixed count of items, they will be assigned in order, linearly along the gradient.

See Also:
Serialized Form

Field Summary
static String ID
          CVS ID
 
Fields inherited from class org.jfree.chart.plot.DefaultDrawingSupplier
DEFAULT_FILL_PAINT_SEQUENCE, DEFAULT_OUTLINE_PAINT_SEQUENCE, DEFAULT_OUTLINE_STROKE_SEQUENCE, DEFAULT_PAINT_SEQUENCE, DEFAULT_SHAPE_SEQUENCE, DEFAULT_STROKE_SEQUENCE
 
Constructor Summary
SpectrumDrawingSupplier()
          No limit to the number of colors, draw randomly.
SpectrumDrawingSupplier(int items)
          Produce colors non-randomly from low to high.
 
Method Summary
 boolean equals(Object o)
           
 Paint getNextOutlinePaint()
           
 Paint getNextPaint()
           
 
Methods inherited from class org.jfree.chart.plot.DefaultDrawingSupplier
clone, createStandardSeriesShapes, getNextFillPaint, getNextOutlineStroke, getNextShape, getNextStroke
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values
Constructor Detail

SpectrumDrawingSupplier

public SpectrumDrawingSupplier()
No limit to the number of colors, draw randomly.


SpectrumDrawingSupplier

public SpectrumDrawingSupplier(int items)
Produce colors non-randomly from low to high.

Parameters:
items - Maximum number of colors.
Method Detail

getNextOutlinePaint

public Paint getNextOutlinePaint()
Specified by:
getNextOutlinePaint in interface DrawingSupplier
Overrides:
getNextOutlinePaint in class DefaultDrawingSupplier

getNextPaint

public Paint getNextPaint()
Specified by:
getNextPaint in interface DrawingSupplier
Overrides:
getNextPaint in class DefaultDrawingSupplier

equals

public boolean equals(Object o)
Overrides:
equals in class DefaultDrawingSupplier

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona