Class LineStyle
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.shared.LineStyle
- All Implemented Interfaces:
HasLineStyle<LineStyle>,HasShadow<LineStyle>,Serializable
public class LineStyle
extends ChartObservableObject
implements HasShadow<LineStyle>, HasLineStyle<LineStyle>
Common style for the line.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
ChartObservableObject.ObjectChangeEventNested classes/interfaces inherited from interface io.jmix.chartsflowui.kit.component.model.HasLineStyle
HasLineStyle.Cap, HasLineStyle.Join -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HasLineStyle.Capprotected Colorprotected Integerprotected HasLineStyle.Joinprotected Integerprotected Doubleprotected Integerprotected Colorprotected Integerprotected Integerprotected Stringprotected IntegerFields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCap()getColor()getJoin()getType()getWidth()voidsetCap(HasLineStyle.Cap cap) Sets style for drawing line endpoints or replaces an existing one.voidvoidsetDashOffset(Integer dashOffset) 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.voidsetOpacity(Double opacity) voidsetShadowBlur(Integer shadowBlur) Sets depth of shadow blur or replaces an existing one.voidsetShadowColor(Color shadowColor) Sets a color for shadow or replaces an existing one.voidsetShadowOffsetX(Integer shadowOffsetX) Sets horizontal offset for shadow or replaces an existing one.voidsetShadowOffsetY(Integer shadowOffsetY) Sets vertical offset for shadow or replaces an existing one.voidvoidwithDashOffset(Integer dashOffset) withOpacity(Double opacity) Methods inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
addChild, fireChangeEvent, getChildren, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setChartObjectChangeListener, unmarkDirtyInDepthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.chartsflowui.kit.component.model.HasLineStyle
withCap, withJoin, withMiterLimitMethods inherited from interface io.jmix.chartsflowui.kit.component.model.HasShadow
withShadowBlur, withShadowColor, withShadowOffsetX, withShadowOffsetY
-
Field Details
-
color
-
width
-
type
-
dashOffset
-
cap
-
join
-
miterLimit
-
shadowBlur
-
shadowColor
-
shadowOffsetX
-
shadowOffsetY
-
opacity
-
-
Constructor Details
-
LineStyle
public LineStyle()
-
-
Method Details
-
getColor
-
getWidth
-
setWidth
-
getType
-
setType
-
getDashOffset
-
setDashOffset
-
getCap
- Specified by:
getCapin interfaceHasLineStyle<LineStyle>- Returns:
- Style for drawing line endpoints
-
setCap
Description copied from interface:HasLineStyleSets style for drawing line endpoints or replaces an existing one. More detailed information is provided in the documentation.- Specified by:
setCapin interfaceHasLineStyle<LineStyle>- Parameters:
cap- cap style to set- See Also:
-
getJoin
- Specified by:
getJoinin interfaceHasLineStyle<LineStyle>- Returns:
- style that used to join two line segments where they intersect
-
setJoin
Description copied from interface:HasLineStyleSets 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.- Specified by:
setJoinin interfaceHasLineStyle<LineStyle>- Parameters:
join- style to set- See Also:
-
getMiterLimit
- Specified by:
getMiterLimitin interfaceHasLineStyle<LineStyle>- Returns:
- miter limit ratio
-
setMiterLimit
Description copied from interface:HasLineStyleSets miter limit ratio or replaces an existing one. Only works whenHasLineStyle.Joinis set asHasLineStyle.Join.MITER. More detailed information is provided in the documentation.- Specified by:
setMiterLimitin interfaceHasLineStyle<LineStyle>- Parameters:
miterLimit- miter limit to set- See Also:
-
getShadowBlur
- Specified by:
getShadowBlurin interfaceHasShadow<LineStyle>- Returns:
- depth of shadow blur
-
setShadowBlur
Description copied from interface:HasShadowSets depth of shadow blur or replaces an existing one.- Specified by:
setShadowBlurin interfaceHasShadow<LineStyle>- Parameters:
shadowBlur- depth of shadow blur
-
getShadowColor
- Specified by:
getShadowColorin interfaceHasShadow<LineStyle>- Returns:
- shadow color
-
getShadowOffsetX
- Specified by:
getShadowOffsetXin interfaceHasShadow<LineStyle>- Returns:
- horizontal offset for shadow in pixels
-
setShadowOffsetX
Description copied from interface:HasShadowSets horizontal offset for shadow or replaces an existing one.- Specified by:
setShadowOffsetXin interfaceHasShadow<LineStyle>- Parameters:
shadowOffsetX- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetYin interfaceHasShadow<LineStyle>- Returns:
- vertical offset for shadow in pixels
-
setShadowOffsetY
Description copied from interface:HasShadowSets vertical offset for shadow or replaces an existing one.- Specified by:
setShadowOffsetYin interfaceHasShadow<LineStyle>- Parameters:
shadowOffsetY- offset to set in pixels
-
getOpacity
-
setOpacity
-
withWidth
-
withType
-
withDashOffset
-
withOpacity
-