|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.marker.AbstractMarker
lt.monarch.chart.marker.SimpleCachableMarker
lt.monarch.chart.marker.CrossMarker
public class CrossMarker extends SimpleCachableMarker
Renders a cross shaped marker.
| Modifier and Type | Class and Description |
|---|
| Nested classes/interfaces inherited from class lt.monarch.chart.marker.SimpleCachableMarker |
|---|
SimpleCachableMarker.AWTImageFactory, SimpleCachableMarker.BufferedImageFactory, SimpleCachableMarker.ImageFactory |
| Modifier and Type | Field and Description |
|---|
| Fields inherited from class lt.monarch.chart.marker.SimpleCachableMarker |
|---|
cacheImage, cachingEnabled, imageFactory, markerSize |
| Fields inherited from class lt.monarch.chart.marker.AbstractMarker |
|---|
dirty, map, metaModel, paintStyle, projectedLocation, style |
| Constructor and Description |
|---|
CrossMarker()
Default CrossMarker constructor. |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(AbstractGraphics g,
SeriesPaintTags tag,
Style style)
Renders the marker on the Graphics context. |
Rectangle2D |
getBounds()
Gets bounds of this marker. |
protected Polygon2D |
getMarkerPolygon(double centerX,
double centerY)
Returns polygon with points forming cross. |
protected double |
getRotatedX(double x,
double y)
Returns x coordinate rotated clockwise by given angle. |
protected double |
getRotatedY(double x,
double y)
Returns y coordinate rotated clockwise by given angle. |
double |
getRotationAngle()
Returns rotation angle (in radians) of marker. |
void |
setRotationAngle(double rotationAngle)
Sets rotation angle of marker. |
| Methods inherited from class lt.monarch.chart.marker.SimpleCachableMarker |
|---|
dispose, getMarkerSize, isCachingEnabled, resetCache, setCachingEnabled, setMarkerSize, stylesheetChanged, stylesheetKeyChanged |
| Methods inherited from class lt.monarch.chart.marker.AbstractMarker |
|---|
clearChartObjectsMap, draw, finalize, getChartObjectBounds, getMetaModel, getPaintStyle, getParent, getStyle, 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 |
|---|
clearChartObjectsMap, draw, getMetaModel, getPaintStyle, getTransparencyValue, isVisible, prepare, reset, setChartObjectsMap, setEntity, setLocation, setMetaModel, setTextAlignment, setTransparencyValue |
| Methods inherited from interface lt.monarch.chart.engine.StyleEditorEntity |
|---|
getChartObjectBounds, getParent, getStyle |
| Constructor Detail |
|---|
public CrossMarker()
CrossMarker constructor.
| Method Detail |
|---|
public Rectangle2D getBounds()
public void draw(AbstractGraphics g,
SeriesPaintTags tag,
Style style)
Marker
g - graphics contexttag - painting tagstyle - drawing stylepublic double getRotationAngle()
public void setRotationAngle(double rotationAngle)
rotationAngle - Rotation angle of marker
protected double getRotatedX(double x,
double y)
x - Old x coordinatey - Old y coordinategetRotatedY(double, double)
protected double getRotatedY(double x,
double y)
x - Old x coordinatey - Old y coordinategetRotatedX(double, double)
protected Polygon2D getMarkerPolygon(double centerX,
double centerY)
centerX - Center x coordinate of crosscenterY - Center y coordinate of cross
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||