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
FieldsModifier and TypeFieldDescriptionprotected Colorprotected Integerprotected Stringprotected Integerprotected Colorprotected Doubleprotected Integerprotected Colorprotected Integerprotected IntegerFields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()voidsetBorderColor(Color borderColor) Sets a border color or replaces an existing one.voidsetBorderRadius(Integer borderRadius) Sets a border radius of the text fragment or replaces an existing one.voidsetBorderType(String borderType) voidsetBorderWidth(Integer borderWidth) Sets a border width or replaces an existing one.voidvoidsetOpacity(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.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, 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.HasBorder
withBorderColor, withBorderRadius, withBorderWidthMethods 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:
getBorderColorin interfaceHasBorder<T extends AbstractItemStyle<T>>- Returns:
- border color
-
getBorderWidth
- Specified by:
getBorderWidthin interfaceHasBorder<T extends AbstractItemStyle<T>>- Returns:
- border width in pixels
-
setBorderWidth
Description copied from interface:HasBorderSets a border width or replaces an existing one.- Specified by:
setBorderWidthin interfaceHasBorder<T extends AbstractItemStyle<T>>- Parameters:
borderWidth- border width in pixels
-
getBorderType
-
setBorderType
-
getBorderRadius
- Specified by:
getBorderRadiusin interfaceHasBorder<T extends AbstractItemStyle<T>>- Returns:
- border radius of the text fragment
-
setBorderRadius
Description copied from interface:HasBorderSets a border radius of the text fragment or replaces an existing one.- Specified by:
setBorderRadiusin interfaceHasBorder<T extends AbstractItemStyle<T>>- Parameters:
borderRadius- border radius to set in pixels
-
getShadowBlur
- Specified by:
getShadowBlurin interfaceHasShadow<T extends AbstractItemStyle<T>>- Returns:
- depth of shadow blur
-
setShadowBlur
Description copied from interface:HasShadowSets depth of shadow blur or replaces an existing one.- Specified by:
setShadowBlurin interfaceHasShadow<T extends AbstractItemStyle<T>>- Parameters:
shadowBlur- depth of shadow blur
-
getShadowColor
- Specified by:
getShadowColorin interfaceHasShadow<T extends AbstractItemStyle<T>>- Returns:
- shadow color
-
getShadowOffsetX
- Specified by:
getShadowOffsetXin interfaceHasShadow<T extends AbstractItemStyle<T>>- 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<T extends AbstractItemStyle<T>>- Parameters:
shadowOffsetX- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetYin interfaceHasShadow<T extends AbstractItemStyle<T>>- 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<T extends AbstractItemStyle<T>>- Parameters:
shadowOffsetY- offset to set in pixels
-
getOpacity
-
setOpacity
-
withBorderType
-
withOpacity
-