|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
| 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 |
|---|
void reset()
void setEntity(ChartEntity entity)
entity - entity object
void setLocation(Projector projector,
GeneralPoint pt)
projector - projector to be usedpt - marker locationvoid prepare(AbstractGraphics g)
g - graphics context
void draw(AbstractGraphics g,
SeriesPaintTags tag,
Style style)
g - graphics contexttag - painting tagstyle - drawing style
void draw(AbstractGraphics g,
SeriesPaintTags tag)
Graphics object for marker outline. Or Style object colors.
g - graphics contexttag - painting tagRectangle2D getBounds()
void setTextAlignment(Alignment hAlign,
Alignment vAlign)
hAlign - horizontal alignmentvAlign - vertical alignmentMetaDataModel getMetaModel()
void setMetaModel(MetaDataModel metaModel)
metaModel - meta data modelPaintStyle<AbstractPaintTags> getPaintStyle()
int getTransparencyValue()
void setTransparencyValue(int transparencyValue)
transparencyValue - Transparency value from 0 to 255boolean isVisible()
void setChartObjectsMap(ChartObjectsMap map)
map - of chart objectvoid clearChartObjectsMap()
void dispose()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||