lt.monarch.chart.chart3D.series
Class Surface3DSeries

java.lang.Object
  extended by lt.monarch.chart.engine.AbstractChartObject<Tags>
      extended by lt.monarch.chart.AbstractChartSeries<SurfacePaintTags,Projector3D>
          extended by lt.monarch.chart.chart3D.series.Surface3DSeries
All Implemented Interfaces:
java.io.Serializable, ChartEntity, ChartObject, ChartSeries, StyleEditorEntity

public class Surface3DSeries
extends AbstractChartSeries<SurfacePaintTags,Projector3D>

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  ArrayDataModel markerData
           
 
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
Surface3DSeries(MatrixDataModel data, AxisMapper xMapper, AxisMapper yMapper, AxisMapper zMapper)
           
Surface3DSeries(MatrixDataModel data, AxisMapper xMapper, AxisMapper yMapper, AxisMapper zMapper, PlaneMapper mapper)
           
Surface3DSeries(MatrixDataModel data, MetaDataModel meta, AxisMapper xMapper, AxisMapper yMapper, AxisMapper zMapper)
           
Surface3DSeries(MatrixDataModel data, MetaDataModel meta, AxisMapper xMapper, AxisMapper yMapper, AxisMapper zMapper, PlaneMapper mapper)
           
 
Method Summary
Modifier and Type Method and Description
 LegendEntry[] createLegendEntries()
          Creates an array of legend entries with symbols corresponding the palette.
 LegendEntry[] createLegendEntries(java.lang.String pattern)
          Creates an array of legend entries with symbols corresponding the palette.
 void draw(AbstractGraphics g)
          Renders chart object on the Graphics context.
 java.awt.Color[] getColorPalette()
          Return series fill palette
 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()
           
 SurfaceShadingMode getShadingMode()
          Return shading mode
 AbstractSurface3DStrategy getStrategy()
          Gets surface 3D drawing strategy.
 boolean isSolid()
          Return true if series is solid, otherwise - false
 boolean isWireFrame()
          Return true if series is wire, otherwise - false
 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 setMarkers(Marker marker, ArrayDataModel markerData)
           
 void setShadingMode(SurfaceShadingMode mode)
          Sets shading mode.
 void setSolid(boolean enable)
          Set true is surface is solid
 void setStrategy(Surface3DStrategies strategy)
          Sets surface drawing strategy.
 void setWireFrame(boolean enable)
          Set series wire frame
 
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

markerData

protected ArrayDataModel markerData
Constructor Detail

Surface3DSeries

public Surface3DSeries(MatrixDataModel data,
                       MetaDataModel meta,
                       AxisMapper xMapper,
                       AxisMapper yMapper,
                       AxisMapper zMapper,
                       PlaneMapper mapper)

Surface3DSeries

public Surface3DSeries(MatrixDataModel data,
                       AxisMapper xMapper,
                       AxisMapper yMapper,
                       AxisMapper zMapper)

Surface3DSeries

public Surface3DSeries(MatrixDataModel data,
                       AxisMapper xMapper,
                       AxisMapper yMapper,
                       AxisMapper zMapper,
                       PlaneMapper mapper)

Surface3DSeries

public Surface3DSeries(MatrixDataModel data,
                       MetaDataModel meta,
                       AxisMapper xMapper,
                       AxisMapper yMapper,
                       AxisMapper zMapper)
Method Detail

getPaletteCopy

public java.awt.Color[] getPaletteCopy()

getLegendEntries

public LegendEntry[] getLegendEntries()

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<SurfacePaintTags,Projector3D>
Parameters:
g - graphics context

createLegendEntries

public LegendEntry[] createLegendEntries()
Creates an array of legend entries with symbols corresponding the palette.

Specified by:
createLegendEntries in interface ChartSeries
Overrides:
createLegendEntries in class AbstractChartSeries<SurfacePaintTags,Projector3D>
Returns:
array of legend entries

createLegendEntries

public LegendEntry[] createLegendEntries(java.lang.String pattern)
Creates an array of legend entries with symbols corresponding the palette.

Parameters:
pattern - The number format pattern
Returns:
array of legend entries

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

getColorPalette

public java.awt.Color[] getColorPalette()
Return series fill palette

Returns:
series fill palette

setShadingMode

public void setShadingMode(SurfaceShadingMode mode)
Sets shading mode.

Parameters:
mode - SurfaceShadingMode

getShadingMode

public SurfaceShadingMode getShadingMode()
Return shading mode

Returns:
shading mode

setWireFrame

public void setWireFrame(boolean enable)
Set series wire frame

Parameters:
enable -

isWireFrame

public boolean isWireFrame()
Return true if series is wire, otherwise - false

Returns:
true if series is wire

setSolid

public void setSolid(boolean enable)
Set true is surface is solid

Parameters:
enable -

isSolid

public boolean isSolid()
Return true if series is solid, otherwise - false

Returns:
true if series is solid

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<SurfacePaintTags,Projector3D>
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<SurfacePaintTags,Projector3D>
Parameters:
valType - data value column
Returns:
minimum value needed

setStrategy

public void setStrategy(Surface3DStrategies strategy)
Sets surface drawing strategy. If you want to set your own custom strategy set it directly to the stylesheet, using tag "strategy", e.g. style.setObject("strategy", new MyStrategy());

Parameters:
strategy - drawing strategy

getStrategy

public AbstractSurface3DStrategy getStrategy()
Gets surface 3D drawing strategy.

Returns:
surface drawing strategy

setMarkers

public void setMarkers(Marker marker,
                       ArrayDataModel markerData)