Package com.storedobject.chart
Class Border
java.lang.Object
com.storedobject.chart.AbstractStyle
com.storedobject.chart.TextBorder
com.storedobject.chart.Border
- All Implemented Interfaces:
ComponentProperty
Represents a border. Several other properties or parts have border as an additional property.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.final AbstractColorGet background color.voidsetBackground(AbstractColor background) Set background color.voidsetRadius(int radius) Set the radius of the border corners (all corners) (in degrees).voidsetRadius(int index, int radius) Set the radius at the given corner.Methods inherited from class com.storedobject.chart.TextBorder
getType, getWidth, setType, setWidthMethods inherited from class com.storedobject.chart.AbstractStyle
getColor, getOpacity, getShadow, setColor, setOpacity, setShadow
-
Constructor Details
-
Border
public Border()Constructor.
-
-
Method Details
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classTextBorder- Parameters:
sb- Encoded JSON string to be appended to this.
-
getBackground
-
setBackground
Set background color.- Parameters:
background- Background color.
-
setRadius
public void setRadius(int radius) Set the radius of the border corners (all corners) (in degrees).- Parameters:
radius- Radius of the corner.
-
setRadius
public void setRadius(int index, int radius) Set the radius at the given corner. (Corner index: Top-left corner is 0, Top-right corner is 1, Bottom-right corner is 2, Bottom-left corner is 3).- Parameters:
index- Corner index.radius- Radius to set in degrees.
-