lt.monarch.chart.marker
Class AbstractTextMarker

java.lang.Object
  extended by lt.monarch.chart.marker.AbstractMarker
      extended by lt.monarch.chart.marker.AbstractTextMarker
All Implemented Interfaces:
java.io.Serializable, Marker, StyleEditorEntity
Direct Known Subclasses:
BaloonLabelMarker, LabeledMarker

public abstract class AbstractTextMarker
extends AbstractMarker

An abstract adapter class for creating text/labeled markers.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
protected  Chart<Projector2D> chart
          Chart pointer
protected static java.awt.Color defaultBackground
           
protected  AbstractTextPainter painter
          Text3D painter
protected  TextStyle<MarkerTextPaintTags> textStyle
          Text3D style
 
Fields inherited from class lt.monarch.chart.marker.AbstractMarker
dirty, map, metaModel, paintStyle, projectedLocation, style
 
Constructor Summary
Constructor and Description
AbstractTextMarker()
          Default constructor.
 
Method Summary
Modifier and Type Method and Description
 void applyConstraints(MarkerConstraints[] mc, AbstractGraphics g, Projector projector)
          Apply marker constraints
 AbstractTextPainter getPainter()
          Gets text painter.
 java.lang.Object getParent()
          Return the parent chart object
 AbstractStyle getStyle(StyleType styleType)
          Gets style object for the stylesheet attributes specified by style type.
 TextStyle<MarkerTextPaintTags> getTextStyle()
          Gets text style object.
 boolean isAdjustingForNonFittingBars()
          Get if non fitting centered markers should be placed on top of bars
 void setAdjustingForNonFittingBars(boolean value)
          Set if non fitting centered markers should be placed on top of bars
 
Methods inherited from class lt.monarch.chart.marker.AbstractMarker
clearChartObjectsMap, dispose, draw, finalize, getChartObjectBounds, getMetaModel, getPaintStyle, getTransparencyValue, isVisible, mapChartObject, prepare, reset, setChartObjectsMap, setEntity, setLocation, setMetaModel, setTextAlignment, setTransparencyValue, 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.Marker
draw, getBounds
 

Field Detail

defaultBackground

protected static final java.awt.Color defaultBackground

textStyle

protected TextStyle<MarkerTextPaintTags> textStyle
Text3D style


painter

protected AbstractTextPainter painter
Text3D painter


chart

protected Chart<Projector2D> chart
Chart pointer

Constructor Detail

AbstractTextMarker

public AbstractTextMarker()
Default constructor.

Method Detail

getTextStyle

public TextStyle<MarkerTextPaintTags> getTextStyle()
Gets text style object.

Returns:
the text style from the style-sheet

getPainter

public AbstractTextPainter getPainter()
Gets text painter.

Returns:
the text painter

getStyle

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

Specified by:
getStyle in interface StyleEditorEntity
Overrides:
getStyle in class AbstractMarker
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 AbstractMarker
Returns:
the parent

applyConstraints

public void applyConstraints(MarkerConstraints[] mc,
                             AbstractGraphics g,
                             Projector projector)
Apply marker constraints

Parameters:
mc - marker constraints
g - graphics
projector - projector

isAdjustingForNonFittingBars

public boolean isAdjustingForNonFittingBars()
Get if non fitting centered markers should be placed on top of bars


setAdjustingForNonFittingBars

public void setAdjustingForNonFittingBars(boolean value)
Set if non fitting centered markers should be placed on top of bars