Package com.storedobject.chart
Class ArcPart
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.Shape
com.storedobject.chart.CirclePart
com.storedobject.chart.ArcPart
- All Implemented Interfaces:
Component,ComponentPart,ComponentProperty,HasPosition,VisibleProperty
Shape that partially defines an arc.
Note: Angle increases in the clockwise direction and zero angle lies on the normal X-axis direction (i.e., on the horizontal line).
- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.chart.Shape
Shape.Point, Shape.Style -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidEncode shape details.final NumberGet the ending angle.final NumberGet radius of the hole.Get the starting angle.final booleanSee whether this will be drawn clockwise or not.voidsetClockwise(boolean clockwise) Set whether this should drawn clockwise or not.voidsetEndAngle(Number endAngle) Set the ending angle.voidsetHoleRadius(Number holeRadius) Set radius of the hole.voidsetStartAngle(Number startAngle) Set the starting angle.Methods inherited from class com.storedobject.chart.CirclePart
encodeJSON, getCenter, getRadius, setCenter, setRadiusMethods inherited from class com.storedobject.chart.Shape
encode, encodePoint, encodePoint, getPosition, getStyle, getType, isDraggable, isVisible, setDraggable, setPosition, setPosition, setPosition, setStyle, setVisible, validateMethods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getName, getSerial, getZ, hashCode, hasId, setSerial, setZMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.chart.ComponentPart
className, getId, getName, getRenderingIndex, getSerial, setName, setRenderingIndex, setSerialMethods inherited from interface com.storedobject.chart.VisibleProperty
hide, show
-
Constructor Details
-
ArcPart
-
-
Method Details
-
encodeShape
Description copied from class:ShapeEncode shape details.- Overrides:
encodeShapein classCirclePart- Parameters:
sb- Encoded JSON string to be appended to this.
-
getStartAngle
-
setStartAngle
Set the starting angle.- Parameters:
startAngle- Starting angle in degrees.
-
getEndAngle
-
setEndAngle
Set the ending angle.- Parameters:
endAngle- Ending angle in degrees.
-
isClockwise
public final boolean isClockwise()See whether this will be drawn clockwise or not.- Returns:
- True for clockwise.
-
setClockwise
public void setClockwise(boolean clockwise) Set whether this should drawn clockwise or not.- Parameters:
clockwise- True for clockwise.
-
getHoleRadius
-
setHoleRadius
Set radius of the hole.- Parameters:
holeRadius- Radius of the hole.
-