Class AbstractItemStyle<T extends AbstractItemStyle<T>>
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.series.AbstractItemStyle<T>
- Type Parameters:
T
- origin class type
- All Implemented Interfaces:
HasBorder<T>
,HasShadow<T>
,Serializable
- Direct Known Subclasses:
BarSeries.ItemStyle
,ItemStyleWithDecal
public abstract class AbstractItemStyle<T extends AbstractItemStyle<T>>
extends ChartObservableObject
implements HasBorder<T>, HasShadow<T>
The base class for series item style.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
ChartObservableObject.ObjectChangeEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected Color
protected Integer
protected String
protected Integer
protected Color
protected Double
protected Integer
protected Color
protected Integer
protected Integer
Fields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
void
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
setBorderType
(String borderType) void
setBorderWidth
(Integer borderWidth) Sets a border width or replaces an existing one.void
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.withBorderType
(String borderType) 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.HasBorder
withBorderColor, withBorderRadius, withBorderWidth
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.HasShadow
withShadowBlur, withShadowColor, withShadowOffsetX, withShadowOffsetY
-
Field Details
-
color
-
borderColor
-
borderWidth
-
borderType
-
borderRadius
-
shadowBlur
-
shadowColor
-
shadowOffsetX
-
shadowOffsetY
-
opacity
-
-
Constructor Details
-
AbstractItemStyle
public AbstractItemStyle()
-
-
Method Details
-
getColor
-
getBorderColor
- Specified by:
getBorderColor
in interfaceHasBorder<T extends AbstractItemStyle<T>>
- Returns:
- border color
-
getBorderWidth
- Specified by:
getBorderWidth
in interfaceHasBorder<T extends AbstractItemStyle<T>>
- Returns:
- border width in pixels
-
setBorderWidth
Description copied from interface:HasBorder
Sets a border width or replaces an existing one.- Specified by:
setBorderWidth
in interfaceHasBorder<T extends AbstractItemStyle<T>>
- Parameters:
borderWidth
- border width in pixels
-
getBorderType
-
setBorderType
-
getBorderRadius
- Specified by:
getBorderRadius
in interfaceHasBorder<T extends AbstractItemStyle<T>>
- Returns:
- border radius of the text fragment
-
setBorderRadius
Description copied from interface:HasBorder
Sets a border radius of the text fragment or replaces an existing one.- Specified by:
setBorderRadius
in interfaceHasBorder<T extends AbstractItemStyle<T>>
- Parameters:
borderRadius
- border radius to set in pixels
-
getShadowBlur
- Specified by:
getShadowBlur
in interfaceHasShadow<T extends AbstractItemStyle<T>>
- 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<T extends AbstractItemStyle<T>>
- Parameters:
shadowBlur
- depth of shadow blur
-
getShadowColor
- Specified by:
getShadowColor
in interfaceHasShadow<T extends AbstractItemStyle<T>>
- Returns:
- shadow color
-
getShadowOffsetX
- Specified by:
getShadowOffsetX
in interfaceHasShadow<T extends AbstractItemStyle<T>>
- 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<T extends AbstractItemStyle<T>>
- Parameters:
shadowOffsetX
- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetY
in interfaceHasShadow<T extends AbstractItemStyle<T>>
- 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<T extends AbstractItemStyle<T>>
- Parameters:
shadowOffsetY
- offset to set in pixels
-
getOpacity
-
setOpacity
-
withBorderType
-
withOpacity
-