|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.engine.AbstractChartObject<E>
public abstract class AbstractChartObject<E extends AbstractPaintTags> extends java.lang.Object implements ChartObject, StyleEditorEntity, java.io.Serializable
Base implementation of the ChartObject interface.
ChartObject,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
AXIS_SORT_POSITION
|
static int |
BREAK_LINE_POSITION
|
static int |
DEFAULT_SORT_POSITION
|
static int |
GRID_SORT_POSITION
|
static int |
MARKER_SERIES_SORT_POSITION
|
static int |
MARKERS_SORT_POSITION
|
protected PaintStyle<E> |
paintStyle
Color style object for getting and setting entityStyle to stylesheet |
static int |
SERIES_SORT_POSITION
|
protected int |
sortPosition
|
Style |
style
Local stylesheet. |
| Constructor and Description |
|---|
AbstractChartObject()
Sole constructor. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate()
Prepares the chart object, when it is added to a chart |
Chart |
chart()
Deprecated. use getChart(); |
void |
copy(AbstractChartObject src)
Copies chart object settings from source chart object (style) |
protected void |
deactivate()
Cleanups the chart object, when it is removed from the chart |
void |
dispose()
Cleanups this chart object. |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
Chart<? extends Projector> |
getChart()
Returns chart associated with this chart object. |
Rectangle2D |
getChartObjectBounds()
Gets bounds of chart object |
PaintStyle<E> |
getPaintStyle()
Gets series paint style object |
java.lang.Object |
getParent()
Return the parent chart object |
int |
getSortPosition()
Returns chart object paint order index. |
Style |
getStyle()
Local stylesheet. |
AbstractStyle |
getStyle(StyleType styleType)
Gets style object for the stylesheet attributes specified by style type. |
void |
invalidate()
Calls chart's invalidate method, if it is set for this chart object. |
boolean |
isVisible()
Specifies if a chart object is drawn |
void |
layout(AbstractGraphics g)
Dummy ChartObject interface's layout method implementation. |
void |
repaint()
If chart for this object is set, clears chart from HotSpotMap and calls it's
repaint method. |
void |
repaint(Rectangle2D r)
If chart for this object is set, clears chart from HotSpotMap and calls it's
repaint(Rectangle r) method. |
void |
setChart(Chart chart)
Associates this object with a chart. |
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.ChartObject |
|---|
draw |
| Field Detail |
|---|
public static final int GRID_SORT_POSITION
public static final int SERIES_SORT_POSITION
public static final int MARKERS_SORT_POSITION
public static final int DEFAULT_SORT_POSITION
public static final int MARKER_SERIES_SORT_POSITION
public static final int AXIS_SORT_POSITION
public static final int BREAK_LINE_POSITION
public final Style style
protected final int sortPosition
protected PaintStyle<E extends AbstractPaintTags> paintStyle
| Constructor Detail |
|---|
public AbstractChartObject()
| Method Detail |
|---|
public boolean isVisible()
isVisible in interface ChartObjectpublic void setVisible(boolean visible)
public int getSortPosition()
ChartObject
getSortPosition in interface ChartObjectpublic void layout(AbstractGraphics g)
ChartObject interface's layout method implementation.
layout in interface ChartObjectg - the Graphics context in which chart object will be paintedChartObject.layout(lt.monarch.chart.engine.AbstractGraphics)public void invalidate()
invalidate method, if it is set for this chart object.
invalidate in interface ChartObjectChartObject.invalidate()public void repaint()
HotSpotMap and calls it's
repaint method.
repaint in interface ChartObjectpublic void repaint(Rectangle2D r)
HotSpotMap and calls it's
repaint(Rectangle r) method.
repaint in interface ChartObjectr - chart object region to repaintpublic void setChart(Chart chart)
setChart in interface ChartObjectchart - chartpublic Chart<? extends Projector> getChart()
getChart in interface ChartObject@Deprecated public Chart chart()
protected void activate()
protected void deactivate()
public void dispose()
dispose in interface ChartObject
protected void finalize()
throws java.lang.Throwable
cleanup method if it isn't called
yet.
finalize in class java.lang.Objectjava.lang.Throwable - the Exception raised by this methodpublic PaintStyle<E> getPaintStyle()
public AbstractStyle getStyle(StyleType styleType)
ChartObject
getStyle in interface ChartObjectgetStyle in interface StyleEditorEntitystyleType - style type attributespublic java.lang.Object getParent()
StyleEditorEntity
getParent in interface StyleEditorEntitypublic Rectangle2D getChartObjectBounds()
StyleEditorEntity
getChartObjectBounds in interface StyleEditorEntitypublic Style getStyle()
getStyle in interface ChartObjectpublic void copy(AbstractChartObject src)
src - source chart object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||