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.ObjectChangeEvent
Nested classes/interfaces inherited from interface io.jmix.chartsflowui.kit.component.model.HasLineStyle
HasLineStyle.Cap, HasLineStyle.Join
-
Field Summary
Modifier and TypeFieldDescriptionprotected HasLineStyle.Cap
protected Color
protected Integer
protected HasLineStyle.Join
protected Integer
protected Double
protected Integer
protected Color
protected Integer
protected Integer
protected String
protected Integer
Fields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCap()
getColor()
getJoin()
getType()
getWidth()
void
setCap
(HasLineStyle.Cap cap) Sets style for drawing line endpoints or replaces an existing one.void
void
setDashOffset
(Integer dashOffset) 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.void
setOpacity
(Double opacity) void
setShadowBlur
(Integer shadowBlur) Sets depth of shadow blur or replaces an existing one.void
setShadowColor
(Color shadowColor) Sets a color for shadow or replaces an existing one.void
setShadowOffsetX
(Integer shadowOffsetX) Sets horizontal offset for shadow or replaces an existing one.void
setShadowOffsetY
(Integer shadowOffsetY) Sets vertical offset for shadow or replaces an existing one.void
void
withDashOffset
(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, unmarkDirtyInDepth
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.HasLineStyle
withCap, withJoin, withMiterLimit
Methods 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:
getCap
in interfaceHasLineStyle<LineStyle>
- Returns:
- Style for drawing line endpoints
-
setCap
Description copied from interface:HasLineStyle
Sets style for drawing line endpoints or replaces an existing one. More detailed information is provided in the documentation.- Specified by:
setCap
in interfaceHasLineStyle<LineStyle>
- Parameters:
cap
- cap style to set- See Also:
-
getJoin
- Specified by:
getJoin
in interfaceHasLineStyle<LineStyle>
- Returns:
- style that used to join two line segments where they intersect
-
setJoin
Description copied from interface:HasLineStyle
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.- Specified by:
setJoin
in interfaceHasLineStyle<LineStyle>
- Parameters:
join
- style to set- See Also:
-
getMiterLimit
- Specified by:
getMiterLimit
in interfaceHasLineStyle<LineStyle>
- Returns:
- miter limit ratio
-
setMiterLimit
Description copied from interface:HasLineStyle
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.- Specified by:
setMiterLimit
in interfaceHasLineStyle<LineStyle>
- Parameters:
miterLimit
- miter limit to set- See Also:
-
getShadowBlur
- Specified by:
getShadowBlur
in interfaceHasShadow<LineStyle>
- Returns:
- depth of shadow blur
-
setShadowBlur
Description copied from interface:HasShadow
Sets depth of shadow blur or replaces an existing one.- Specified by:
setShadowBlur
in interfaceHasShadow<LineStyle>
- Parameters:
shadowBlur
- depth of shadow blur
-
getShadowColor
- Specified by:
getShadowColor
in interfaceHasShadow<LineStyle>
- Returns:
- shadow color
-
getShadowOffsetX
- Specified by:
getShadowOffsetX
in interfaceHasShadow<LineStyle>
- Returns:
- horizontal offset for shadow in pixels
-
setShadowOffsetX
Description copied from interface:HasShadow
Sets horizontal offset for shadow or replaces an existing one.- Specified by:
setShadowOffsetX
in interfaceHasShadow<LineStyle>
- Parameters:
shadowOffsetX
- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetY
in interfaceHasShadow<LineStyle>
- Returns:
- vertical offset for shadow in pixels
-
setShadowOffsetY
Description copied from interface:HasShadow
Sets vertical offset for shadow or replaces an existing one.- Specified by:
setShadowOffsetY
in interfaceHasShadow<LineStyle>
- Parameters:
shadowOffsetY
- offset to set in pixels
-
getOpacity
-
setOpacity
-
withWidth
-
withType
-
withDashOffset
-
withOpacity
-