|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.marker.AbstractMarker
public abstract class AbstractMarker extends java.lang.Object implements Marker, java.io.Serializable
An abstract adapter class for creating markers. The methods in this class are empty.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dirty
Is object dirty |
protected ChartObjectsMap |
map
|
protected MetaDataModel |
metaModel
Meta data model |
protected PaintStyle<AbstractPaintTags> |
paintStyle
Color style object, used to set the entityStyle to the style-sheet |
protected Point2D |
projectedLocation
location point of the marker |
Style |
style
Local style-sheet. |
| Constructor and Description |
|---|
AbstractMarker()
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearChartObjectsMap()
Deprecated. now all maps are cleared before drawing |
void |
dispose()
Disposes object |
void |
draw(AbstractGraphics g,
SeriesPaintTags tag)
Renders the marker on the Graphics context. |
protected void |
finalize()
|
Rectangle2D |
getChartObjectBounds()
Gets bounds of chart object |
MetaDataModel |
getMetaModel()
Returns Meta data model |
PaintStyle<AbstractPaintTags> |
getPaintStyle()
Gets the paint style of the marker |
java.lang.Object |
getParent()
Return the parent chart object |
AbstractStyle |
getStyle(StyleType styleType)
Gets style object for the stylesheet attributes specified by style type. |
int |
getTransparencyValue()
Gets the transparency value for the marker |
boolean |
isVisible()
Specifies if a chart object is drawn |
protected void |
mapChartObject(AbstractPaintTags tag,
java.awt.Shape shape)
Maps the marker & tag to the specified shape. |
void |
prepare(AbstractGraphics g)
Prepares the marker for drawing. |
void |
reset()
Resets 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 npt)
Sets 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 |
void |
setVisible(boolean visible)
Specifies if a chart object is drawn |
| 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 |
|---|
protected boolean dirty
protected MetaDataModel metaModel
public final Style style
protected PaintStyle<AbstractPaintTags> paintStyle
protected Point2D projectedLocation
protected ChartObjectsMap map
| Constructor Detail |
|---|
public AbstractMarker()
| Method Detail |
|---|
public void setEntity(ChartEntity entity)
setEntity in interface Markerentity - the chart entitypublic void prepare(AbstractGraphics g)
prepare in interface Markerg - he Graphics context in which entity will be painted
public void draw(AbstractGraphics g,
SeriesPaintTags tag)
MarkerGraphics object for marker outline. Or Style object colors.
draw in interface Markerg - graphics contexttag - painting tagpublic void reset()
reset in interface Marker
public void setTextAlignment(Alignment hAlign,
Alignment vAlign)
setTextAlignment in interface MarkerhAlign - horizontal alignmentvAlign - vertical alignmentpublic MetaDataModel getMetaModel()
Marker
getMetaModel in interface Markerpublic void setMetaModel(MetaDataModel metaModel)
Marker
setMetaModel in interface MarkermetaModel - meta data modelpublic PaintStyle<AbstractPaintTags> getPaintStyle()
Marker
getPaintStyle in interface Marker
public void setLocation(Projector projector,
GeneralPoint npt)
setLocation in interface Markerprojector - projector used to project the normalized pointnpt - normalized point that specifies marker positionpublic void dispose()
dispose in interface Marker
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void setTransparencyValue(int transparencyValue)
Marker
setTransparencyValue in interface MarkertransparencyValue - Transparency value from 0 to 255public int getTransparencyValue()
Marker
getTransparencyValue in interface Markerpublic AbstractStyle getStyle(StyleType styleType)
StyleEditorEntity
getStyle in interface StyleEditorEntitystyleType - style type attributespublic Rectangle2D getChartObjectBounds()
StyleEditorEntity
getChartObjectBounds in interface StyleEditorEntitypublic java.lang.Object getParent()
StyleEditorEntity
getParent in interface StyleEditorEntitypublic void setChartObjectsMap(ChartObjectsMap map)
Marker
setChartObjectsMap in interface Markermap - of chart objectpublic void clearChartObjectsMap()
clearChartObjectsMap in interface Marker
protected void mapChartObject(AbstractPaintTags tag,
java.awt.Shape shape)
tag - the paint tagshape - the shapepublic boolean isVisible()
isVisible in interface Markerpublic void setVisible(boolean visible)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||