edu.swri.swiftvis.plot.styles
Class AveragedSurface

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

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

See Also:
Serialized Form

Field Summary
private  double[][] bounds
           
private  double cellWidth
           
private  boolean[] colorDensity
           
private  DataFormula[] colorFormula
           
private  ColorGradient[] colorGradients
           
private  DataFormula columnMatchFormula
           
private  boolean drawResonances
           
private  boolean drawSynodicPeriodBounds
           
private  java.lang.String name
           
private  PlotArea2D plotArea
           
private  javax.swing.JPanel propPanel
           
private static long serialVersionUID
           
private  DataFormula[] xFormula
           
private  DataFormula[] yFormula
           
 
Constructor Summary
private AveragedSurface(AveragedSurface c, PlotArea2D pa)
           
  AveragedSurface(PlotArea2D pa)
           
 
Method Summary
 void applyGradient(ColorGradient cg)
           
 AveragedSurface 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()
           
static java.lang.String getTypeDescription()
           
private  void orbitChecked(java.awt.AWTEvent e)
           
 void redoBounds()
           
private  void resonanceChecked(java.awt.AWTEvent e)
           
private  void setCellWidth(java.awt.AWTEvent e)
           
private  void setColorFormula(java.awt.AWTEvent e, int n)
           
private  void setColumnMatchFormula(java.awt.AWTEvent e)
           
private  void setXFormula(java.awt.AWTEvent e, int n)
           
private  void setYFormula(java.awt.AWTEvent e, int n)
           
 java.lang.String toString()
           
private  void useDensity(java.awt.AWTEvent e, int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

bounds

private double[][] bounds

plotArea

private PlotArea2D plotArea

columnMatchFormula

private DataFormula columnMatchFormula

xFormula

private DataFormula[] xFormula

yFormula

private DataFormula[] yFormula

colorFormula

private DataFormula[] colorFormula

colorDensity

private boolean[] colorDensity

colorGradients

private ColorGradient[] colorGradients

cellWidth

private double cellWidth

drawResonances

private boolean drawResonances

drawSynodicPeriodBounds

private boolean drawSynodicPeriodBounds

propPanel

private transient javax.swing.JPanel propPanel

serialVersionUID

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

AveragedSurface

public AveragedSurface(PlotArea2D pa)

AveragedSurface

private AveragedSurface(AveragedSurface 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()

redoBounds

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

drawToGraphics

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

Specified by:
drawToGraphics 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.

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

copy

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

applyGradient

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

setXFormula

private void setXFormula(java.awt.AWTEvent e,
                         int n)

setYFormula

private void setYFormula(java.awt.AWTEvent e,
                         int n)

setCellWidth

private void setCellWidth(java.awt.AWTEvent e)

resonanceChecked

private void resonanceChecked(java.awt.AWTEvent e)

orbitChecked

private void orbitChecked(java.awt.AWTEvent e)

setColorFormula

private void setColorFormula(java.awt.AWTEvent e,
                             int n)

useDensity

private void useDensity(java.awt.AWTEvent e,
                        int n)

setColumnMatchFormula

private void setColumnMatchFormula(java.awt.AWTEvent e)