lt.monarch.chart.engine
Class ChartElementEntity

java.lang.Object
  extended by lt.monarch.chart.engine.ChartElementEntity
All Implemented Interfaces:
StyleEditorEntity

public class ChartElementEntity
extends java.lang.Object
implements StyleEditorEntity


Constructor Summary
Constructor and Description
ChartElementEntity()
           
ChartElementEntity(java.lang.Object parentEntity, Rectangle2D bounds, PaintStyle paintStyle)
           
ChartElementEntity(java.lang.Object parentEntity, Rectangle2D bounds, PaintStyle paintStyle, TextStyle textStyle)
           
 
Method Summary
Modifier and Type Method and Description
 Rectangle2D getChartObjectBounds()
          Gets bounds of chart object
 java.lang.Object getParent()
          Return the parent chart object
 AbstractStyle getStyle(StyleType styleType)
          Gets style object for the stylesheet attributes specified by style type.
 void refreshEntity(java.lang.Object parentEntity, Rectangle2D bounds, PaintStyle<?> paintStyle, TextStyle<?> textStyle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartElementEntity

public ChartElementEntity(java.lang.Object parentEntity,
                          Rectangle2D bounds,
                          PaintStyle paintStyle,
                          TextStyle textStyle)

ChartElementEntity

public ChartElementEntity(java.lang.Object parentEntity,
                          Rectangle2D bounds,
                          PaintStyle paintStyle)

ChartElementEntity

public ChartElementEntity()
Method Detail

refreshEntity

public void refreshEntity(java.lang.Object parentEntity,
                          Rectangle2D bounds,
                          PaintStyle<?> paintStyle,
                          TextStyle<?> textStyle)

getChartObjectBounds

public Rectangle2D getChartObjectBounds()
Description copied from interface: StyleEditorEntity
Gets bounds of chart object

Specified by:
getChartObjectBounds in interface StyleEditorEntity
Returns:
A rectangle indicating this chart object bounds

getParent

public java.lang.Object getParent()
Description copied from interface: StyleEditorEntity
Return the parent chart object

Specified by:
getParent in interface StyleEditorEntity
Returns:
the parent

getStyle

public AbstractStyle getStyle(StyleType styleType)
Description copied from interface: StyleEditorEntity
Gets style object for the stylesheet attributes specified by style type.

Specified by:
getStyle in interface StyleEditorEntity
Parameters:
styleType - style type attributes
Returns:
the style object