Package com.storedobject.chart
Class Shape.Style
java.lang.Object
com.storedobject.chart.Shape.Style
- All Implemented Interfaces:
ComponentProperty
- Enclosing class:
Shape
Class to specify the style of a
Shape instance.- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.final AbstractColorGet the fill color.final NumberGet the line width.final ShadowgetShadow(boolean create) Get the shadow.final AbstractColorGet the stroke color.voidsetFillColor(AbstractColor fillColor) Set the fill color.voidsetLineWidth(Number lineWidth) Set the line width.voidSet the shadow.voidsetStrokeColor(AbstractColor strokeColor) Set the stroke color.
-
Constructor Details
-
Style
public Style()
-
-
Method Details
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Parameters:
sb- Encoded JSON string to be appended to this.
-
getFillColor
-
setFillColor
Set the fill color.- Parameters:
fillColor- Fill color.
-
getStrokeColor
-
setStrokeColor
Set the stroke color.- Parameters:
strokeColor- Stroke color.
-
getLineWidth
-
setLineWidth
-
getShadow
Get the shadow.- Parameters:
create- Whether to create if not exists or not.- Returns:
- Shadow.
-
setShadow
-