lt.monarch.chart.chart2D.series
Class ContourSeries

java.lang.Object
  extended by lt.monarch.chart.engine.AbstractChartObject<Tags>
      extended by lt.monarch.chart.AbstractChartSeries<SeriesPaintTags,Projector2D>
          extended by lt.monarch.chart.chart2D.series.ContourSeries
All Implemented Interfaces:
java.io.Serializable, ChartEntity, ChartObject, ChartSeries, StyleEditorEntity

public class ContourSeries
extends AbstractChartSeries<SeriesPaintTags,Projector2D>
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected static double aspectGold
           
protected  AspectRatio aspectRatio
           
protected static double aspectSquare43
           
protected  java.awt.Color[] color
           
protected  double[] contourLevels
           
protected  PlaneMapper mapper
          The plane mapper
protected  ArrayDataModel markerData
           
protected  java.lang.Double orgXextent
           
protected  java.lang.Double orgYextent
           
protected  ColorPalette palette
           
protected  ContourStrategy<Projector2D> strategy
           
protected  boolean wireFrame
           
 
Fields inherited from class lt.monarch.chart.AbstractChartSeries
metaModel, model, modelValidator, seriesName, seriesTransform, showLegend, showNullValues, symbol, xMapper, yMapper, zMapper
 
Fields inherited from class lt.monarch.chart.engine.AbstractChartObject
AXIS_SORT_POSITION, BREAK_LINE_POSITION, DEFAULT_SORT_POSITION, GRID_SORT_POSITION, MARKER_SERIES_SORT_POSITION, MARKERS_SORT_POSITION, paintStyle, SERIES_SORT_POSITION, sortPosition, style
 
Constructor Summary
Constructor and Description
ContourSeries(MatrixDataModel model, AxisMapper xMapper, AxisMapper yMapper)
           
ContourSeries(MatrixDataModel model, AxisMapper xMapper, AxisMapper yMapper, AxisMapper zMapper)
           
ContourSeries(MatrixDataModel model, AxisMapper xMapper, AxisMapper yMapper, AxisMapper zMapper, PlaneMapper mapper)
           
ContourSeries(MatrixDataModel model, AxisMapper xMapper, AxisMapper yMapper, PlaneMapper mapper)
           
ContourSeries(MatrixDataModel model, MetaDataModel metaModel, AxisMapper xMapper, AxisMapper yMapper)
           
ContourSeries(MatrixDataModel model, MetaDataModel metaModel, AxisMapper xMapper, AxisMapper yMapper, AxisMapper zMapper)
           
ContourSeries(MatrixDataModel model, MetaDataModel metaModel, AxisMapper xMapper, AxisMapper yMapper, AxisMapper zMapper, PlaneMapper mapper)
           
 
Method Summary
Modifier and Type Method and Description
protected  void adjustAspectRatio(java.awt.Rectangle screen, double xExtent, double yExtent)
           
 LegendEntry[] createLegendEntries()
          Creates legend entries for the series.
 void draw(AbstractGraphics g)
          Renders chart object on the Graphics context.
 AspectRatio getAspectRatio()
           
 java.awt.Color[] getColorPalette()
           
 double[] getContourLevels()
           
 LegendEntry[] getLegendEntries()
           
 java.lang.Object getMaxValue(DataColumnType valType)
          Note: internal use only! Gets maximum value that is used by series to fit into the chart
 java.lang.Object getMinValue(DataColumnType valType)
          Note: internal use only! Gets minimum value that is used by series to fit into the chart
 java.awt.Color[] getPaletteCopy()
           
 boolean isWireFrame()
           
 void setAspectRatio(AspectRatio aspectRatio)
           
 void setColorPalette(java.awt.Color[] colors)
          Sets a image palette.
 void setColorPalette(ColorPalette palette, int levelCount)
          Sets a image palette.
 void setColorPallete(int levelCount)
           
 void setContourCount(int count)
           
 void setContourLevels(double[] levels)
           
 void setMarkers(Marker marker, ArrayDataModel markerData)
           
 void setNormContourLevels(double[] levels)
           
 void setWireFrame(boolean enable)
           
 
Methods inherited from class lt.monarch.chart.AbstractChartSeries
activate, checkDataModelRequirements, createLegendEntry, createLegendSymbol, deactivate, fillEntitySheet, getChartObjectBounds, getDataModel, getDescription, getMetaDataModel, getModelValidator, getName, getNearestChildEntity, getParentEntity, getProjector, getSeriesColor, getShortDescription, getShowNullValues, getSortPosition, getXMapper, getYMapper, getZMapper, handleDataModelChangeEvent, setLegendSymbol, setName, setShowNullValues, setValidateData, showLegend, updateClippingToProjector
 
Methods inherited from class lt.monarch.chart.engine.AbstractChartObject
chart, copy, dispose, finalize, getChart, getPaintStyle, getParent, getStyle, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lt.monarch.chart.engine.ChartObject
dispose, getChart, getStyle, getStyle, invalidate, isVisible, layout, repaint, repaint, setChart
 
Methods inherited from interface lt.monarch.chart.engine.StyleEditorEntity
getParent, getStyle
 

Field Detail

mapper

protected PlaneMapper mapper
The plane mapper


strategy

protected ContourStrategy<Projector2D> strategy

contourLevels

protected double[] contourLevels

palette

protected ColorPalette palette

color

protected java.awt.Color[] color

wireFrame

protected boolean wireFrame

markerData

protected ArrayDataModel markerData

aspectRatio

protected AspectRatio aspectRatio

aspectSquare43

protected static final double aspectSquare43
See Also:
Constant Field Values

aspectGold

protected static final double aspectGold

orgXextent

protected java.lang.Double orgXextent

orgYextent

protected java.lang.Double orgYextent
Constructor Detail

ContourSeries

public ContourSeries(MatrixDataModel model,
                     MetaDataModel metaModel,
                     AxisMapper xMapper,
                     AxisMapper yMapper,
                     AxisMapper zMapper,
                     PlaneMapper mapper)

ContourSeries

public ContourSeries(MatrixDataModel model,
                     AxisMapper xMapper,
                     AxisMapper yMapper,
                     PlaneMapper mapper)

ContourSeries

public ContourSeries(MatrixDataModel model,
                     MetaDataModel metaModel,
                     AxisMapper xMapper,
                     AxisMapper yMapper)

ContourSeries

public ContourSeries(MatrixDataModel model,
                     AxisMapper xMapper,
                     AxisMapper yMapper)

ContourSeries

public ContourSeries(MatrixDataModel model,
                     AxisMapper xMapper,
                     AxisMapper yMapper,
                     AxisMapper zMapper,
                     PlaneMapper mapper)

ContourSeries

public ContourSeries(MatrixDataModel model,
                     MetaDataModel metaModel,
                     AxisMapper xMapper,
                     AxisMapper yMapper,
                     AxisMapper zMapper)

ContourSeries

public ContourSeries(MatrixDataModel model,
                     AxisMapper xMapper,
                     AxisMapper yMapper,
                     AxisMapper zMapper)
Method Detail

getLegendEntries

public LegendEntry[] getLegendEntries()

getPaletteCopy

public java.awt.Color[] getPaletteCopy()

draw

public void draw(AbstractGraphics g)
Description copied from interface: ChartObject
Renders chart object on the Graphics context.

Specified by:
draw in interface ChartObject
Overrides:
draw in class AbstractChartSeries<SeriesPaintTags,Projector2D>
Parameters:
g - graphics context

adjustAspectRatio

protected void adjustAspectRatio(java.awt.Rectangle screen,
                                 double xExtent,
                                 double yExtent)

setContourCount

public void setContourCount(int count)

setContourLevels

public void setContourLevels(double[] levels)

setNormContourLevels

public void setNormContourLevels(double[] levels)

setColorPalette

public void setColorPalette(java.awt.Color[] colors)
Sets a image palette.

Parameters:
palette - fill palette

setColorPallete

public void setColorPallete(int levelCount)

setColorPalette

public void setColorPalette(ColorPalette palette,
                            int levelCount)
Sets a image palette.

Parameters:
palette - fill palette
levelCount - level count in the palette

setWireFrame

public void setWireFrame(boolean enable)

isWireFrame

public boolean isWireFrame()

getContourLevels

public double[] getContourLevels()

getColorPalette

public java.awt.Color[] getColorPalette()

createLegendEntries

public LegendEntry[] createLegendEntries()
Description copied from class: AbstractChartSeries
Creates legend entries for the series.

Specified by:
createLegendEntries in interface ChartSeries
Overrides:
createLegendEntries in class AbstractChartSeries<SeriesPaintTags,Projector2D>
Returns:
legend entries

getMaxValue

public java.lang.Object getMaxValue(DataColumnType valType)
Description copied from class: AbstractChartSeries
Note: internal use only! Gets maximum value that is used by series to fit into the chart

Specified by:
getMaxValue in class AbstractChartSeries<SeriesPaintTags,Projector2D>
Parameters:
valType - data value column
Returns:
maximum value needed

getMinValue

public java.lang.Object getMinValue(DataColumnType valType)
Description copied from class: AbstractChartSeries
Note: internal use only! Gets minimum value that is used by series to fit into the chart

Specified by:
getMinValue in class AbstractChartSeries<SeriesPaintTags,Projector2D>
Parameters:
valType - data value column
Returns:
minimum value needed

setMarkers

public void setMarkers(Marker marker,
                       ArrayDataModel markerData)

getAspectRatio

public AspectRatio getAspectRatio()

setAspectRatio

public void setAspectRatio(AspectRatio aspectRatio)