Class AbstractBorderedTextStyle<T extends AbstractBorderedTextStyle<T>>
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.shared.AbstractBorderedTextStyle<T>
- Type Parameters:
T
- origin bordered text style class type
- All Implemented Interfaces:
HasLineStyle<T>
,HasShadow<T>
,Serializable
- Direct Known Subclasses:
Emphasis.IconStyle
,ItemStyle
,LineSeries.ItemStyle
public abstract class AbstractBorderedTextStyle<T extends AbstractBorderedTextStyle<T>>
extends ChartObservableObject
implements HasShadow<T>, HasLineStyle<T>
The base class for text with border.
- 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 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 TypeMethodDescriptiongetCap()
getColor()
getJoin()
void
setBorderColor
(Color borderColor) void
setBorderDashOffset
(Integer borderDashOffset) void
setBorderType
(String borderType) void
setBorderWidth
(Integer borderWidth) void
setCap
(HasLineStyle.Cap borderCap) Sets style for drawing line endpoints or replaces an existing one.void
void
setJoin
(HasLineStyle.Join borderJoin) Sets a style that used to join two line segments where they intersect or replaces an existing one.void
setMiterLimit
(Integer borderMiterLimit) 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.withBorderColor
(Color borderColor) withBorderDashOffset
(Integer borderDashOffset) withBorderType
(String borderType) withBorderWidth
(Integer borderWidth) 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
-
borderColor
-
borderWidth
-
borderType
-
borderDashOffset
-
borderCap
-
borderJoin
-
borderMiterLimit
-
shadowBlur
-
shadowColor
-
shadowOffsetX
-
shadowOffsetY
-
opacity
-
-
Constructor Details
-
AbstractBorderedTextStyle
public AbstractBorderedTextStyle()
-
-
Method Details
-
getColor
-
getBorderColor
-
getBorderWidth
-
setBorderWidth
-
getBorderType
-
setBorderType
-
getBorderDashOffset
-
setBorderDashOffset
-
getCap
- Specified by:
getCap
in interfaceHasLineStyle<T extends AbstractBorderedTextStyle<T>>
- 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<T extends AbstractBorderedTextStyle<T>>
- Parameters:
borderCap
- cap style to set- See Also:
-
getJoin
- Specified by:
getJoin
in interfaceHasLineStyle<T extends AbstractBorderedTextStyle<T>>
- 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<T extends AbstractBorderedTextStyle<T>>
- Parameters:
borderJoin
- style to set- See Also:
-
getMiterLimit
- Specified by:
getMiterLimit
in interfaceHasLineStyle<T extends AbstractBorderedTextStyle<T>>
- 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<T extends AbstractBorderedTextStyle<T>>
- Parameters:
borderMiterLimit
- miter limit to set- See Also:
-
getShadowBlur
- Specified by:
getShadowBlur
in interfaceHasShadow<T extends AbstractBorderedTextStyle<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 AbstractBorderedTextStyle<T>>
- Parameters:
shadowBlur
- depth of shadow blur
-
getShadowColor
- Specified by:
getShadowColor
in interfaceHasShadow<T extends AbstractBorderedTextStyle<T>>
- Returns:
- shadow color
-
getShadowOffsetX
- Specified by:
getShadowOffsetX
in interfaceHasShadow<T extends AbstractBorderedTextStyle<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 AbstractBorderedTextStyle<T>>
- Parameters:
shadowOffsetX
- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetY
in interfaceHasShadow<T extends AbstractBorderedTextStyle<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 AbstractBorderedTextStyle<T>>
- Parameters:
shadowOffsetY
- offset to set in pixels
-
getOpacity
-
setOpacity
-
withBorderWidth
-
withBorderType
-
withBorderDashOffset
-
withOpacity
-