lt.monarch.chart.chart3D.series
Class MarkerDecorableSeries3D<Tags extends AbstractPaintTags,ChartProjector extends Projector>

java.lang.Object
  extended by lt.monarch.chart.engine.AbstractChartObject<Tags>
      extended by lt.monarch.chart.AbstractChartSeries<Tags,ChartProjector>
          extended by lt.monarch.chart.chart3D.series.MarkerDecorableSeries3D<Tags,ChartProjector>
All Implemented Interfaces:
java.io.Serializable, AbstractMarkerSeries, ChartEntity, ChartObject, ChartSeries, StyleEditorEntity
Direct Known Subclasses:
Bar3DSeries, Line3DSeries, Vector3DSeries

public abstract class MarkerDecorableSeries3D<Tags extends AbstractPaintTags,ChartProjector extends Projector>
extends AbstractChartSeries<Tags,ChartProjector>
implements AbstractMarkerSeries

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  java.lang.Object baseValue
          Base value
protected  ColorMapper colorMapper
          Color mapper, which maps bars and marker values to color
protected  MarkerPainter markerPainter
          Marker painter
protected  java.util.Map<AlignmentEntry,MarkerEntry> markers
          Marker list
protected  ArrayDataModel model
          Chart 2D data model
protected  PseudoArrayDataModel3D pseudoModel
          Pseudo model, for null value calculation
 
Fields inherited from class lt.monarch.chart.AbstractChartSeries
metaModel, 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
MarkerDecorableSeries3D()
          Default marker decorable series
MarkerDecorableSeries3D(DataModel model, MetaDataModel metaModel, AxisMapper xMapper, AxisMapper yMapper, AxisMapper zMapper)
          Marker decorable series
 
Method Summary
Modifier and Type Method and Description
 void addMarker(Marker marker)
          Adds Marker to the series.
 void addMarker(Marker marker, Alignment alignment)
          Adds marker to the series.
 void addMarker(Marker marker, Alignment verticalAlignment, Alignment horizontalAlignment)
          Adds marker to the BAR SERIES.
 void draw(AbstractGraphics g)
          Renders chart object on the Graphics context.
 void drawMarkers(AbstractGraphics g)
          Draws markers according to default layouting
 void drawMarkers(AbstractGraphics g, MarkerConstraints[] mConstraints)
          Sets values to marker from marker constraints and draws markers with MarkerPainter
 java.lang.Object getBaseValue()
          Gets the base value of the series
 ColorMapper getColorMapper()
          Gets color mapper
 DataColumnType getKeyType()
          Gets the key value type, which is determined automatically
abstract  MarkerConstraints[] getMarkerConstraints()
          Returns series marker constraints.
 PaintMode getPaintMode()
          Returns the paint mode of the grid
 int getSortPosition()
          Returns chart object paint order index.
 void setBaseValue(java.lang.Object baseValue)
          Sets the base value of the series
 void setColorMapper(ColorMapper colorMapper)
          Sets color mapper
 void setPaintMode(PaintMode paintMode)
          Sets grid painting mode.
 
Methods inherited from class lt.monarch.chart.AbstractChartSeries
activate, checkDataModelRequirements, createLegendEntries, createLegendEntry, createLegendSymbol, deactivate, fillEntitySheet, getChartObjectBounds, getDataModel, getDescription, getMaxValue, getMetaDataModel, getMinValue, getModelValidator, getName, getNearestChildEntity, getParentEntity, getProjector, getSeriesColor, getShortDescription, getShowNullValues, 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

markerPainter

protected MarkerPainter markerPainter
Marker painter


model

protected ArrayDataModel model
Chart 2D data model


baseValue

protected java.lang.Object baseValue
Base value


pseudoModel

protected PseudoArrayDataModel3D pseudoModel
Pseudo model, for null value calculation


colorMapper

protected ColorMapper colorMapper
Color mapper, which maps bars and marker values to color


markers

protected java.util.Map<AlignmentEntry,MarkerEntry> markers
Marker list

Constructor Detail

MarkerDecorableSeries3D

public MarkerDecorableSeries3D()
Default marker decorable series


MarkerDecorableSeries3D

public MarkerDecorableSeries3D(DataModel model,
                               MetaDataModel metaModel,
                               AxisMapper xMapper,
                               AxisMapper yMapper,
                               AxisMapper zMapper)
Marker decorable series

Parameters:
model - data model
metaModel - meta data model
xMapper - x axis mapper
yMapper - y axis mapper
zMapper - z axis mapper
Method Detail

getSortPosition

public int getSortPosition()
Description copied from interface: ChartObject
Returns chart object paint order index.

Specified by:
getSortPosition in interface ChartObject
Overrides:
getSortPosition in class AbstractChartSeries<Tags extends AbstractPaintTags,ChartProjector extends Projector>
Returns:
object paint order index

getMarkerConstraints

public abstract MarkerConstraints[] getMarkerConstraints()
Returns series marker constraints.

Returns:
Series marker constraints.

drawMarkers

public void drawMarkers(AbstractGraphics g,
                        MarkerConstraints[] mConstraints)
Sets values to marker from marker constraints and draws markers with MarkerPainter

Parameters:
g - the Graphics context in which to paint markers
mConstraints - array of marker constraints

drawMarkers

public void drawMarkers(AbstractGraphics g)
Draws markers according to default layouting

Specified by:
drawMarkers in interface AbstractMarkerSeries
Parameters:
g - graphics context

addMarker

public void addMarker(Marker marker,
                      Alignment verticalAlignment,
                      Alignment horizontalAlignment)
Adds marker to the BAR SERIES. It is aligned as specified. Only one instance of the marker with the same alignment combination can be added. If second marker is added with the same alignment, then the old one will be overwritten.

Parameters:
marker - marker to add
verticalAlignment - vertical alignment of the marker
horizontalAlignment - horizontal alignment of the marker

addMarker

public void addMarker(Marker marker,
                      Alignment alignment)
Adds marker to the series. It is aligned as specified. Only one instance of the marker with the same alignment can be added. If second marker is added with the same alignment, then the old one will be overwritten.

Parameters:
marker - marker to add
alignment - alignment of the marker

addMarker

public void addMarker(Marker marker)
Adds Marker to the series. It is aligned to the top of the series data point. Only one instance of the marker will be added. If another one is added, then the old one is overwritten.

Parameters:
marker - marker to add

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<Tags extends AbstractPaintTags,ChartProjector extends Projector>
Parameters:
g - graphics context

getBaseValue

public java.lang.Object getBaseValue()
Gets the base value of the series

Returns:
the baseValue

setBaseValue

public void setBaseValue(java.lang.Object baseValue)
Sets the base value of the series

Parameters:
baseValue - the baseValue to set

getColorMapper

public ColorMapper getColorMapper()
Gets color mapper

Returns:
the colorMapper object

setColorMapper

public void setColorMapper(ColorMapper colorMapper)
Sets color mapper

Parameters:
colorMapper - the colorMapper class

getKeyType

public DataColumnType getKeyType()
Gets the key value type, which is determined automatically

Returns:
key data value type

setPaintMode

public final void setPaintMode(PaintMode paintMode)
Sets grid painting mode. Possible values are: FILL_PAINT, HATCH_PAINT and GRADIENT_PAINT. FILL_PAINT for single color toFill-painting. GRADIENT_PAINT for cyclic (from start color to center color and from center color to start color) or acyclic (from start color to end color) gradient panel painting. By default the paint mode is set to FILL_PAINT.

Parameters:
paintMode - The paintMode to set.

getPaintMode

public final PaintMode getPaintMode()
Returns the paint mode of the grid

Returns:
Returns the paintMode.