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 TypeMethodDescriptionvoid
setBorderColor
(Color borderColor) Sets a border color or replaces an existing one.void
setBorderRadius
(Integer borderRadius) Sets a border radius of the text fragment or replaces an existing one.void
setBorderWidth
(Integer borderWidth) Sets a border width or replaces an existing one.default T
withBorderColor
(Color borderColor) default T
withBorderRadius
(Integer borderRadius) default T
withBorderWidth
(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:
-