lt.monarch.chart.engine
Interface Marker

All Superinterfaces:
StyleEditorEntity
All Known Subinterfaces:
SymetricMarker
All Known Implementing Classes:
AbstractMarker, AbstractMarker3D, AbstractTextMarker, BaloonLabelMarker, CrossMarker, DiamondMarker, DotMarker, DotMarker3D, EmptyMarker, ImageMarker, LabeledMarker, MiddleLineMarker, NullMarker, PolygonMarker, SimpleCachableMarker, SimpleCrossMarker, SquareMarker, StarMarker

public interface Marker
extends StyleEditorEntity

Marker is a graphics object, used to mark points of interest on the chart.
For example : dots or stars can be used to mark key points on a spline curve.


Method Summary
Modifier and Type Method and Description
 void clearChartObjectsMap()
          Deprecated. now all maps are cleared before drawing
 void dispose()
          Disposes the marker object
 void draw(AbstractGraphics g, SeriesPaintTags tag)
          Renders the marker on the Graphics context.
 void draw(AbstractGraphics g, SeriesPaintTags tag, Style style)
          Renders the marker on the Graphics context.
 Rectangle2D getBounds()
          Returns marker bounds, given a marker point
 MetaDataModel getMetaModel()
          Returns Meta data model
 PaintStyle<AbstractPaintTags> getPaintStyle()
          Gets the paint style of the marker
 int getTransparencyValue()
          Gets the transparency value for the marker
 boolean isVisible()
          Specifies if a marker is drawn
 void prepare(AbstractGraphics g)
          Prepares the marker for drawing
 void reset()
          Resets the marker after use.
 void setChartObjectsMap(ChartObjectsMap map)
          Set chart object map
 void setEntity(ChartEntity entity)
          References the entity object, for which the marker is being painted.
 void setLocation(Projector projector, GeneralPoint pt)
          Sets the location of the marker
 void setMetaModel(MetaDataModel metaModel)
          Sets meta data model
 void setTextAlignment(Alignment hAlign, Alignment vAlign)
          Sets text alignment for labeled marker.
 void setTransparencyValue(int transparencyValue)
          Sets the transparency value for the marker
 
Methods inherited from interface lt.monarch.chart.engine.StyleEditorEntity
getChartObjectBounds, getParent, getStyle
 

Method Detail

reset

void reset()
Resets the marker after use.


setEntity

void setEntity(ChartEntity entity)
References the entity object, for which the marker is being painted.

Parameters:
entity - entity object

setLocation

void setLocation(Projector projector,
                 GeneralPoint pt)
Sets the location of the marker

Parameters:
projector - projector to be used
pt - marker location

prepare

void prepare(AbstractGraphics g)
Prepares the marker for drawing

Parameters:
g - graphics context

draw

void draw(AbstractGraphics g,
          SeriesPaintTags tag,
          Style style)
Renders the marker on the Graphics context. Uses style colors.

Parameters:
g - graphics context
tag - painting tag
style - drawing style

draw

void draw(AbstractGraphics g,
          SeriesPaintTags tag)
Renders the marker on the Graphics context. Uses current color set in the Graphics object for marker outline. Or Style object colors.

Parameters:
g - graphics context
tag - painting tag

getBounds

Rectangle2D getBounds()
Returns marker bounds, given a marker point

Returns:
marker bounding rectangle

setTextAlignment

void setTextAlignment(Alignment hAlign,
                      Alignment vAlign)
Sets text alignment for labeled marker.

Parameters:
hAlign - horizontal alignment
vAlign - vertical alignment

getMetaModel

MetaDataModel getMetaModel()
Returns Meta data model

Returns:
meta data model

setMetaModel

void setMetaModel(MetaDataModel metaModel)
Sets meta data model

Parameters:
metaModel - meta data model

getPaintStyle

PaintStyle<AbstractPaintTags> getPaintStyle()
Gets the paint style of the marker

Returns:
marker color style object, to set the entityStyle there.

getTransparencyValue

int getTransparencyValue()
Gets the transparency value for the marker

Returns:
transparencyValue Transparency value from 0 to 255

setTransparencyValue

void setTransparencyValue(int transparencyValue)
Sets the transparency value for the marker

Parameters:
transparencyValue - Transparency value from 0 to 255

isVisible

boolean isVisible()
Specifies if a marker is drawn


setChartObjectsMap

void setChartObjectsMap(ChartObjectsMap map)
Set chart object map

Parameters:
map - of chart object

clearChartObjectsMap

void clearChartObjectsMap()
Deprecated. now all maps are cleared before drawing

Clear chart object map


dispose

void dispose()
Disposes the marker object