ucar.visad
Interface Plotter.Plottable

All Known Implementing Classes:
VectorGraphicsRenderer
Enclosing class:
Plotter

public static interface Plotter.Plottable

Interface for classes which create charts capable of being plotted via a third party rendering library to a vector based graphics format


Method Summary
 Color[] getColours()
          Get a list of the colours used in the chart This may be necessary if the chart is being plotted to a medium with limited colours, eg.
 int[] getSize()
          Get the size_
 void plot(Graphics2D graphics)
          This will plot the chart to a vector graphics file Don't use this method directly.
 

Method Detail

plot

void plot(Graphics2D graphics)
This will plot the chart to a vector graphics file Don't use this method directly. It is called by the Plotter class

Parameters:
graphics - the graphics

getColours

Color[] getColours()
Get a list of the colours used in the chart This may be necessary if the chart is being plotted to a medium with limited colours, eg. 8 bit PNG. The antialiasing and gradient fill used in some charts can easily grab all the available colours By taking the ones used specifically by the chart, the important colours can be reserved in the colour table ensuring that any colour loss has only minimal cosmetic effect

Returns:
The colours used by this chart

getSize

int[] getSize()
Get the size_

Returns:
size