Interface HasBorder<T>
- Type Parameters:
T- origin class type
- All Known Implementing Classes:
AbstractEnhancedLabel,AbstractItemStyle,AbstractLegend,AbstractLegend.SelectorLabel,AbstractLegend.TextStyle,AxisLabel,BarSeries.BackgroundStyle,BarSeries.ItemStyle,GaugeSeries.AbstractGaugeText,GaugeSeries.Detail,GaugeSeries.Title,HasAxisName.NameTextStyle,ItemStyleWithDecal,Label,Legend,LineSeries.EndLabel,Radar.AxisName,RichStyle,ScrollableLegend,Title
public interface HasBorder<T>
A component that has border.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetBorderColor(Color borderColor) Sets a border color or replaces an existing one.voidsetBorderRadius(Integer borderRadius) Sets a border radius of the text fragment or replaces an existing one.voidsetBorderWidth(Integer borderWidth) Sets a border width or replaces an existing one.default TwithBorderColor(Color borderColor) default TwithBorderRadius(Integer borderRadius) default TwithBorderWidth(Integer borderWidth)
-
Method Details
-
getBorderColor
Color getBorderColor()- Returns:
- border color
-
getBorderWidth
Integer getBorderWidth()- Returns:
- border width in pixels
-
setBorderWidth
Sets a border width or replaces an existing one.- Parameters:
borderWidth- border width in pixels
-
withBorderWidth
- Parameters:
borderWidth- border width in pixels- Returns:
- this
- See Also:
-
getBorderRadius
Integer getBorderRadius()- Returns:
- border radius of the text fragment
-
setBorderRadius
Sets a border radius of the text fragment or replaces an existing one.- Parameters:
borderRadius- border radius to set in pixels
-
withBorderRadius
- Parameters:
borderRadius- border radius to set in pixels- Returns:
- this
- See Also:
-