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
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumStyle for drawing line endpoints.static enumStyle for joining two line segments where they intersect. -
Method Summary
Modifier and TypeMethodDescriptiongetCap()getJoin()voidsetCap(HasLineStyle.Cap cap) Sets style for drawing line endpoints or replaces an existing one.voidsetJoin(HasLineStyle.Join join) Sets a style that used to join two line segments where they intersect or replaces an existing one.voidsetMiterLimit(Integer miterLimit) Sets miter limit ratio or replaces an existing one.default TwithCap(HasLineStyle.Cap cap) default TwithJoin(HasLineStyle.Join join) default TwithMiterLimit(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.Joinis 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:
-