edu.swri.swiftvis.plot.styles
Class ScatterStyle

java.lang.Object
  extended by edu.swri.swiftvis.plot.styles.ScatterStyle
All Implemented Interfaces:
DataPlotStyle, GradientUser, java.io.Serializable

public class ScatterStyle
extends java.lang.Object
implements DataPlotStyle, GradientUser

See Also:
Serialized Form

Nested Class Summary
private  class ScatterStyle.ScatterLegend
           
 
Field Summary
private  double[][] bounds
           
private  DataFormula colorFormula
           
private  DataFormula connectSelector
           
private  EditableBoolean drawLines
           
private  ColorGradient gradient
           
private  BooleanFormula highlightFormula
           
private  ColorGradient highlightGradient
           
private  PlotLegend legendInfo
           
private  EditableDouble lineScaleFactor
           
private  EditableString name
           
private  PlotArea2D plotArea
           
private  DataFormula primaryFormula
           
private  javax.swing.JPanel propPanel
           
private  DataFormula secondaryFormula
           
private static long serialVersionUID
           
private  DataFormula sizeFormula
           
private  ShapeCreator symbolShape
           
 
Constructor Summary
  ScatterStyle(PlotArea2D pa)
           
private ScatterStyle(ScatterStyle c, PlotArea2D pa)
           
 
Method Summary
 void applyGradient(ColorGradient cg)
           
 ScatterStyle copy(PlotArea2D pa)
           
 void drawToGraphics(java.awt.Graphics2D g, double xSize, double ySize)
          This draws the plot into the specified Graphics object.
 java.awt.geom.Rectangle2D getBoundingBox()
           
 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()
           
static java.lang.String getTypeDescription()
           
 void redoBounds()
           
private  void setPrimaryBounds()
           
private  void setSecondaryBounds()
           
private  void symbolShapeSelected(java.awt.event.ActionEvent e)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

plotArea

private PlotArea2D plotArea

primaryFormula

private DataFormula primaryFormula

secondaryFormula

private DataFormula secondaryFormula

sizeFormula

private DataFormula sizeFormula

colorFormula

private DataFormula colorFormula

gradient

private ColorGradient gradient

name

private EditableString name

symbolShape

private ShapeCreator symbolShape

lineScaleFactor

private EditableDouble lineScaleFactor

drawLines

private EditableBoolean drawLines

connectSelector

private DataFormula connectSelector

highlightFormula

private BooleanFormula highlightFormula

highlightGradient

private ColorGradient highlightGradient

legendInfo

private PlotLegend legendInfo

bounds

private transient double[][] bounds

propPanel

private transient javax.swing.JPanel propPanel

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ScatterStyle

public ScatterStyle(PlotArea2D pa)

ScatterStyle

private ScatterStyle(ScatterStyle c,
                     PlotArea2D pa)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTypeDescription

public static java.lang.String getTypeDescription()

getLegendInformation

public PlotLegend getLegendInformation()
Description copied from interface: DataPlotStyle
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.

Specified by:
getLegendInformation in interface DataPlotStyle
Returns:
The legend information or null if none.

getPropertiesPanel

public javax.swing.JComponent getPropertiesPanel()
Specified by:
getPropertiesPanel in interface DataPlotStyle

getBounds

public 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.

Specified by:
getBounds in interface DataPlotStyle
Returns:
The bounds for this data.

drawToGraphics

public void drawToGraphics(java.awt.Graphics2D g,
                           double xSize,
                           double ySize)
Description copied from interface: DataPlotStyle
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.

Specified by:
drawToGraphics in interface DataPlotStyle

redoBounds

public void redoBounds()
Specified by:
redoBounds in interface DataPlotStyle

getBoundingBox

public java.awt.geom.Rectangle2D getBoundingBox()

copy

public ScatterStyle copy(PlotArea2D pa)
Specified by:
copy in interface DataPlotStyle

applyGradient

public void applyGradient(ColorGradient cg)
Specified by:
applyGradient in interface GradientUser

setPrimaryBounds

private void setPrimaryBounds()

setSecondaryBounds

private void setSecondaryBounds()

symbolShapeSelected

private void symbolShapeSelected(java.awt.event.ActionEvent e)