Class Shape

java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.Shape
All Implemented Interfaces:
Component, ComponentPart, ComponentProperty, HasPosition
Direct Known Subclasses:
BezierCurve, CirclePart, Image, Line, Polyline, Rectangle, ShapeGroup, Text

public abstract class Shape extends AbstractPart implements Component, HasPosition
Shape class that can be added to SOChart. Positioning of the Shape on the screen is relative to its parent. The parent could be an instance of the SOChart if this was added to that instance directly, or it could be a ShapeGroup class if this was added to a ShapeGroup instance. Positioning can be done by setting appropriate values on the Position instance of this shape or by setting shape-specific parameters like center coordinate for the CirclePart shape. When both are specified, values set on the Position will be used.

Note: Unless otherwise specified, all measurements used in this class are in pixels. Sub-pixels are supported.

Author:
Syam