Interface HasLineStyle<T>
- Type Parameters:
T
- origin class type
- All Known Implementing Classes:
AbstractBorderedTextStyle
,Emphasis.IconStyle
,ItemStyle
,LineSeries.ItemStyle
,LineStyle
public interface HasLineStyle<T>
A component that has line style.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Style for drawing line endpoints.static enum
Style for joining two line segments where they intersect. -
Method Summary
Modifier and TypeMethodDescriptiongetCap()
getJoin()
void
setCap
(HasLineStyle.Cap cap) Sets style for drawing line endpoints or replaces an existing one.void
setJoin
(HasLineStyle.Join join) Sets a style that used to join two line segments where they intersect or replaces an existing one.void
setMiterLimit
(Integer miterLimit) Sets miter limit ratio or replaces an existing one.default T
withCap
(HasLineStyle.Cap cap) default T
withJoin
(HasLineStyle.Join join) default T
withMiterLimit
(Integer miterLimit)
-
Method Details
-
getCap
HasLineStyle.Cap getCap()- Returns:
- Style for drawing line endpoints
-
setCap
Sets style for drawing line endpoints or replaces an existing one. More detailed information is provided in the documentation.- Parameters:
cap
- cap style to set- See Also:
-
withCap
- Parameters:
cap
- style to set- Returns:
- this
- See Also:
-
getJoin
HasLineStyle.Join getJoin()- Returns:
- style that used to join two line segments where they intersect
-
setJoin
Sets a style that used to join two line segments where they intersect or replaces an existing one. More detailed information is provided in the documentation.- Parameters:
join
- style to set- See Also:
-
withJoin
- Parameters:
join
- join style to set- Returns:
- this
- See Also:
-
getMiterLimit
Integer getMiterLimit()- Returns:
- miter limit ratio
-
setMiterLimit
Sets miter limit ratio or replaces an existing one. Only works whenHasLineStyle.Join
is set asHasLineStyle.Join.MITER
. More detailed information is provided in the documentation.- Parameters:
miterLimit
- miter limit to set- See Also:
-
withMiterLimit
- Parameters:
miterLimit
- miter limit to set- Returns:
- this
- See Also:
-