Class AbstractEnhancedLabel<T extends AbstractEnhancedLabel<T>>
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.shared.AbstractText<T>
io.jmix.chartsflowui.kit.component.model.shared.AbstractRichText<T>
io.jmix.chartsflowui.kit.component.model.shared.AbstractEnhancedLabel<T>
- Type Parameters:
T
- origin enhanced label class type
- All Implemented Interfaces:
HasAlign<T>
,HasBorder<T>
,HasShadow<T>
,HasText<T>
,HasPadding<T>
,Serializable
- Direct Known Subclasses:
AbstractLegend.SelectorLabel
,Label
,LineSeries.EndLabel
public abstract class AbstractEnhancedLabel<T extends AbstractEnhancedLabel<T>>
extends AbstractRichText<T>
implements HasShadow<T>, HasBorder<T>, HasAlign<T>, HasPadding<T>
The base class for enhanced label.
- 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 Align
protected Color
protected Color
protected Integer
protected Integer
protected String
protected Integer
protected Integer
protected Integer[]
protected Padding
protected Integer
protected Integer
protected Color
protected Integer
protected Integer
protected Boolean
protected VerticalAlign
Fields inherited from class io.jmix.chartsflowui.kit.component.model.shared.AbstractRichText
richStyles
Fields inherited from class io.jmix.chartsflowui.kit.component.model.shared.AbstractText
color, ellipsis, fontFamily, fontSize, fontStyle, fontWeight, height, lineHeight, overflow, textBorderColor, textBorderDashOffset, textBorderType, textBorderWidth, textShadowBlur, textShadowColor, textShadowOffsetX, textShadowOffsetY, width
Fields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAlign()
Integer[]
getShow()
void
Sets horizontal alignment of component or replaces an existing one.void
setBackgroundColor
(Color backgroundColor) void
setBorderColor
(Color borderColor) Sets a border color or replaces an existing one.void
setBorderDashOffset
(Integer borderDashOffset) 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
setDistance
(Integer distance) void
void
setPadding
(Integer padding) Sets padding on each of the four sides or replaces an existing one.void
setPadding
(Integer vertical, Integer horizontal) Sets the top/bottom and left/right paddings or replaces an existing one.void
setPadding
(Integer top, Integer right, Integer bottom, Integer left) Sets each of the four paddings separately.void
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
setVerticalAlign
(VerticalAlign verticalAlign) Sets vertical alignment of component or replaces an existing one.withBackgroundColor
(Color backgroundColor) withBorderDashOffset
(Integer borderDashOffset) withBorderType
(String borderType) withDistance
(Integer distance) withOffset
(Integer horizontal, Integer vertical) withRotate
(Integer rotate) Methods inherited from class io.jmix.chartsflowui.kit.component.model.shared.AbstractRichText
addRichStyle, getRichStyles, removeRichStyle, withRichStyle
Methods inherited from class io.jmix.chartsflowui.kit.component.model.shared.AbstractText
getColor, getEllipsis, getFontFamily, getFontSize, getFontStyle, getFontWeight, getHeight, getLineHeight, getOverflow, getTextBorderColor, getTextBorderDashOffset, getTextBorderType, getTextBorderWidth, getTextShadowBlur, getTextShadowColor, getTextShadowOffsetX, getTextShadowOffsetY, getWidth, setColor, setEllipsis, setFontFamily, setFontSize, setFontStyle, setFontWeight, setHeight, setLineHeight, setOverflow, setTextBorderColor, setTextBorderDashOffset, setTextBorderType, setTextBorderWidth, setTextShadowBlur, setTextShadowColor, setTextShadowOffsetX, setTextShadowOffsetY, setWidth, withColor, withEllipsis, withFontFamily, withFontSize, withFontStyle, withFontWeight, withHeight, withLineHeight, withOverflow, withWidth
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.HasAlign
withAlign, withVerticalAlign
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.HasBorder
withBorderColor, withBorderRadius, withBorderWidth
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.shared.HasPadding
withPadding, withPadding, withPadding
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.HasShadow
withShadowBlur, withShadowColor, withShadowOffsetX, withShadowOffsetY
Methods inherited from interface io.jmix.chartsflowui.kit.component.model.HasText
withTextBorderColor, withTextBorderDashOffset, withTextBorderType, withTextBorderWidth, withTextShadowBlur, withTextShadowColor, withTextShadowOffsetX, withTextShadowOffsetY
-
Field Details
-
show
-
distance
-
rotate
-
offset
-
align
-
verticalAlign
-
backgroundColor
-
borderColor
-
borderWidth
-
borderType
-
borderDashOffset
-
borderRadius
-
padding
-
shadowColor
-
shadowBlur
-
shadowOffsetX
-
shadowOffsetY
-
-
Constructor Details
-
AbstractEnhancedLabel
public AbstractEnhancedLabel()
-
-
Method Details
-
getShow
-
setShow
-
getDistance
-
setDistance
-
getRotate
-
setRotate
-
getOffset
-
setOffset
-
getAlign
- Specified by:
getAlign
in interfaceHasAlign<T extends AbstractEnhancedLabel<T>>
- Returns:
- horizontal alignment of component
-
getVerticalAlign
- Specified by:
getVerticalAlign
in interfaceHasAlign<T extends AbstractEnhancedLabel<T>>
- Returns:
- vertical alignment of component
-
getBackgroundColor
-
getBorderColor
- Specified by:
getBorderColor
in interfaceHasBorder<T extends AbstractEnhancedLabel<T>>
- Returns:
- border color
-
getBorderWidth
- Specified by:
getBorderWidth
in interfaceHasBorder<T extends AbstractEnhancedLabel<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 AbstractEnhancedLabel<T>>
- Parameters:
borderWidth
- border width in pixels
-
getBorderType
-
setBorderType
-
getBorderDashOffset
-
setBorderDashOffset
-
getBorderRadius
- Specified by:
getBorderRadius
in interfaceHasBorder<T extends AbstractEnhancedLabel<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 AbstractEnhancedLabel<T>>
- Parameters:
borderRadius
- border radius to set in pixels
-
getPadding
- Specified by:
getPadding
in interfaceHasPadding<T extends AbstractEnhancedLabel<T>>
- Returns:
- space around content
-
setPadding
Description copied from interface:HasPadding
Sets padding on each of the four sides or replaces an existing one. The unit is px.- Specified by:
setPadding
in interfaceHasPadding<T extends AbstractEnhancedLabel<T>>
- Parameters:
padding
- padding to set
-
setPadding
Description copied from interface:HasPadding
Sets the top/bottom and left/right paddings or replaces an existing one. The unit is px.- Specified by:
setPadding
in interfaceHasPadding<T extends AbstractEnhancedLabel<T>>
- Parameters:
vertical
- top and bottom padding to sethorizontal
- left and right padding to set
-
setPadding
Description copied from interface:HasPadding
Sets each of the four paddings separately. The unit is px.- Specified by:
setPadding
in interfaceHasPadding<T extends AbstractEnhancedLabel<T>>
- Parameters:
top
- top padding to setright
- right padding to setbottom
- bottom padding to setleft
- left padding to set
-
getShadowColor
- Specified by:
getShadowColor
in interfaceHasShadow<T extends AbstractEnhancedLabel<T>>
- Returns:
- shadow color
-
getShadowBlur
- Specified by:
getShadowBlur
in interfaceHasShadow<T extends AbstractEnhancedLabel<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 AbstractEnhancedLabel<T>>
- Parameters:
shadowBlur
- depth of shadow blur
-
getShadowOffsetX
- Specified by:
getShadowOffsetX
in interfaceHasShadow<T extends AbstractEnhancedLabel<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 AbstractEnhancedLabel<T>>
- Parameters:
shadowOffsetX
- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetY
in interfaceHasShadow<T extends AbstractEnhancedLabel<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 AbstractEnhancedLabel<T>>
- Parameters:
shadowOffsetY
- offset to set in pixels
-
withShow
-
withDistance
-
withRotate
-
withOffset
-
withBorderType
-
withBorderDashOffset
-