Package com.storedobject.chart
Class TextBorder
java.lang.Object
com.storedobject.chart.AbstractStyle
com.storedobject.chart.TextBorder
- All Implemented Interfaces:
ComponentProperty
- Direct Known Subclasses:
Border
Represents text-border. Text can be drawn with borders and the width and color of the border can be set.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.final LineStyle.TypegetType()Get the line-type.final intgetWidth()Get the width of the border (in pixels).voidsetType(LineStyle.Type type) Set the line-type.voidsetWidth(int width) Set the width of the border (in pixels).Methods inherited from class com.storedobject.chart.AbstractStyle
getColor, getOpacity, getShadow, setColor, setOpacity, setShadow
-
Constructor Details
-
TextBorder
public TextBorder()Constructor.
-
-
Method Details
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classAbstractStyle- Parameters:
sb- Encoded JSON string to be appended to this.
-
getWidth
public final int getWidth()Get the width of the border (in pixels).- Returns:
- Width of the border.
-
setWidth
public void setWidth(int width) Set the width of the border (in pixels).
Note: Corner radius is not applicable for text borders.
- Parameters:
width- Width of the border.
-
getType
-
setType
-