edu.swri.swiftvis.plot
Interface DataPlotStyle

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AveragedStreamlines, AveragedSurface, BarStyle, ImageAdder, OrbitStyle, RectangleGridSurface, ScatterStyle, VectorFieldStyle

public interface DataPlotStyle
extends java.io.Serializable


Method Summary
 DataPlotStyle copy(PlotArea2D pa)
           
 void drawToGraphics(java.awt.Graphics2D g, double xSize, double ySize)
          This draws the plot into the specified Graphics object.
 double[][] getBounds()
          Returns the min and max values for each dimension that this style supports.
 PlotLegend getLegendInformation()
          This method should return the legend information for this plot style.
 javax.swing.JComponent getPropertiesPanel()
           
 void redoBounds()
           
 

Method Detail

getBounds

double[][] getBounds()
Returns the min and max values for each dimension that this style supports. The first index tells which dimension we are looking at and the second index is 0 for min and 1 for max.

Returns:
The bounds for this data.

redoBounds

void redoBounds()

getPropertiesPanel

javax.swing.JComponent getPropertiesPanel()

getLegendInformation

PlotLegend getLegendInformation()
This method should return the legend information for this plot style. If there is no legend information for this type of plot, then it should return null.

Returns:
The legend information or null if none.

drawToGraphics

void drawToGraphics(java.awt.Graphics2D g,
                    double xSize,
                    double ySize)
This draws the plot into the specified Graphics object. It assumes that the transform and clipping for that Graphics object have all been set up so that the markers can be drawn at their normal locations. The xSize and ySize are passed in so that it can figure out how large to make the markers if needed.


copy

DataPlotStyle copy(PlotArea2D pa)