lt.monarch.chart
Class AbstractChartMarker

java.lang.Object
  extended by lt.monarch.chart.engine.AbstractChartObject<MarkerPaintTags>
      extended by lt.monarch.chart.AbstractChartMarker
All Implemented Interfaces:
java.io.Serializable, ChartObject, StyleEditorEntity
Direct Known Subclasses:
MarkerLine, MarkerRange

public abstract class AbstractChartMarker
extends AbstractChartObject<MarkerPaintTags>

Abstract chart marker class, which encompasses marker line and marker range classes.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  AxisMapper axisMapper
          axis mapper used to map level object
protected  java.lang.String label
          The marker line label
protected  TextStyle<MarkerTextPaintTags> textStyle
          Text style object
 
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
AbstractChartMarker(AxisMapper axisMapper)
           
 
Method Summary
Modifier and Type Method and Description
 AxisMapper getAxisMapper()
          Gets axis mapper used for mapping marker
 java.lang.String getLabel()
          Get marker range label
 PaintMode getPaintMode()
          Returns the paint mode of the grid
 java.lang.Object getParent()
          Return the parent chart object
 int getSortPosition()
          Returns chart object paint order index.
 AbstractStyle getStyle(StyleType styleType)
          Gets style object for the stylesheet attributes specified by style type.
 TextStyle<MarkerTextPaintTags> getTextStyle()
          Returns text style object
protected  boolean isLabelEmpty()
          Checks if label is empty and if yes it won't be drawn
 void setLabel(java.lang.String label)
          Sets the label of the marker line.
 void setPaintMode(PaintMode paintMode)
          Sets grid painting mode.
 
Methods inherited from class lt.monarch.chart.engine.AbstractChartObject
activate, chart, copy, deactivate, dispose, finalize, getChart, getChartObjectBounds, getPaintStyle, 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
draw
 

Field Detail

axisMapper

protected final AxisMapper axisMapper
axis mapper used to map level object


label

protected java.lang.String label
The marker line label


textStyle

protected TextStyle<MarkerTextPaintTags> textStyle
Text style object

Constructor Detail

AbstractChartMarker

public AbstractChartMarker(AxisMapper axisMapper)
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 AbstractChartObject<MarkerPaintTags>
Returns:
object paint order index

setLabel

public void setLabel(java.lang.String label)
Sets the label of the marker line.

Parameters:
label - label

getTextStyle

public TextStyle<MarkerTextPaintTags> getTextStyle()
Returns text style object

Returns:
text style object

getLabel

public java.lang.String getLabel()
Get marker range label

Returns:
the label

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.

isLabelEmpty

protected boolean isLabelEmpty()
Checks if label is empty and if yes it won't be drawn

Returns:
true if empty

getAxisMapper

public AxisMapper getAxisMapper()
Gets axis mapper used for mapping marker

Returns:
axis mapper

getStyle

public AbstractStyle getStyle(StyleType styleType)
Description copied from interface: ChartObject
Gets style object for the stylesheet attributes specified by style type.

Specified by:
getStyle in interface ChartObject
Specified by:
getStyle in interface StyleEditorEntity
Overrides:
getStyle in class AbstractChartObject<MarkerPaintTags>
Parameters:
styleType - style type attributes
Returns:
the style object

getParent

public java.lang.Object getParent()
Description copied from interface: StyleEditorEntity
Return the parent chart object

Specified by:
getParent in interface StyleEditorEntity
Overrides:
getParent in class AbstractChartObject<MarkerPaintTags>
Returns:
the parent