lt.monarch.chart.engine
Interface ChartObject

All Known Subinterfaces:
AbstractBarSeries<ChartProjector>, ChartSeries
All Known Implementing Classes:
AbstractChartMarker, AbstractChartObject, AbstractChartSeries, AbstractChartSeriesEx, AbstractGrid, AbstractLineSeries, Axis, Axis2D, Axis2DRadar, Axis2DX, Axis2DY, Axis3D, Axis3DX, Axis3DY, Axis3DZ, AxisTitle, Bar3DSeries, BarSeries, BoxMarker, BoxWhiskerSeries, BubbleSeries, ChartBreakLine, ContourSeries, Grid, Grid3D, GridCircle, GridRegularPolygon, HorizontalMarkerLine, HorizontalMarkerRange, Line3DSeries, LineSeries, MarkerDecorableSeries, MarkerDecorableSeries3D, MarkerLine, MarkerRange, Pie3DSeries, PieSeries, RadarAxisSet, RadarSeries, StockSeries, SupplementalPieSeries, Surface3DSeries, SurfaceSeries, TextMarker, Vector3DSeries, VectorSeries, VerticalMarkerLine, VerticalMarkerRange

public interface ChartObject

Base interface for all chart objects.


Method Summary
Modifier and Type Method and Description
 void dispose()
          Cleans this chart object.
 void draw(AbstractGraphics g)
          Renders chart object on the Graphics context.
 Chart<? extends Projector> getChart()
          Returns chart associated with this chart object.
 int getSortPosition()
          Returns chart object paint order index.
 Style getStyle()
           
 AbstractStyle getStyle(StyleType styleType)
          Gets style object for the stylesheet attributes specified by style type.
 void invalidate()
          Invalidates the chart object.
 boolean isVisible()
          Specifies if a chart object is drawn
 void layout(AbstractGraphics g)
          Prepares chart object for rendering.
 void repaint()
          Requests chart object repaint.
 void repaint(Rectangle2D r)
          Requests a repaint of the object region
 void setChart(Chart chart)
          Associates this object with a chart.
 

Method Detail

setChart

void setChart(Chart chart)
Associates this object with a chart. This method is called automatically by a Chart object.

Parameters:
chart - the chart

getChart

Chart<? extends Projector> getChart()
Returns chart associated with this chart object.

Returns:
chart associated with this chart object

draw

void draw(AbstractGraphics g)
Renders chart object on the Graphics context.

Parameters:
g - graphics context

layout

void layout(AbstractGraphics g)
Prepares chart object for rendering. When this method is called chart has already been sized and positioned. Chart projector is fully initialized.

Parameters:
g - graphics context

invalidate

void invalidate()
Invalidates the chart object. Invalidation usually results in the entire chart invalidation.


repaint

void repaint()
Requests chart object repaint. This usually results in the entire chart repaint.


repaint

void repaint(Rectangle2D r)
Requests a repaint of the object region

Parameters:
r - repaint region

isVisible

boolean isVisible()
Specifies if a chart object is drawn


dispose

void dispose()
Cleans this chart object.


getStyle

AbstractStyle getStyle(StyleType styleType)
Gets style object for the stylesheet attributes specified by style type.

Parameters:
styleType - style type attributes
Returns:
the style object

getStyle

Style getStyle()

getSortPosition

int getSortPosition()
Returns chart object paint order index.

Returns:
object paint order index