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
FieldsModifier and TypeFieldDescriptionprotected Alignprotected Colorprotected Colorprotected Integerprotected Integerprotected Stringprotected Integerprotected Integerprotected Integer[]protected Paddingprotected Integerprotected Integerprotected Colorprotected Integerprotected Integerprotected Booleanprotected VerticalAlignFields inherited from class io.jmix.chartsflowui.kit.component.model.shared.AbstractRichText
richStylesFields 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, widthFields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Integer[]getShow()voidSets horizontal alignment of component or replaces an existing one.voidsetBackgroundColor(Color backgroundColor) voidsetBorderColor(Color borderColor) Sets a border color or replaces an existing one.voidsetBorderDashOffset(Integer borderDashOffset) 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.voidsetDistance(Integer distance) voidvoidsetPadding(Integer padding) Sets padding on each of the four sides or replaces an existing one.voidsetPadding(Integer vertical, Integer horizontal) Sets the top/bottom and left/right paddings or replaces an existing one.voidsetPadding(Integer top, Integer right, Integer bottom, Integer left) Sets each of the four paddings separately.voidvoidsetShadowBlur(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.voidvoidsetVerticalAlign(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, withRichStyleMethods 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, withWidthMethods 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.HasAlign
withAlign, withVerticalAlignMethods inherited from interface io.jmix.chartsflowui.kit.component.model.HasBorder
withBorderColor, withBorderRadius, withBorderWidthMethods inherited from interface io.jmix.chartsflowui.kit.component.model.shared.HasPadding
withPadding, withPadding, withPaddingMethods inherited from interface io.jmix.chartsflowui.kit.component.model.HasShadow
withShadowBlur, withShadowColor, withShadowOffsetX, withShadowOffsetYMethods 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:
getAlignin interfaceHasAlign<T extends AbstractEnhancedLabel<T>>- Returns:
- horizontal alignment of component
-
getVerticalAlign
- Specified by:
getVerticalAlignin interfaceHasAlign<T extends AbstractEnhancedLabel<T>>- Returns:
- vertical alignment of component
-
getBackgroundColor
-
getBorderColor
- Specified by:
getBorderColorin interfaceHasBorder<T extends AbstractEnhancedLabel<T>>- Returns:
- border color
-
getBorderWidth
- Specified by:
getBorderWidthin interfaceHasBorder<T extends AbstractEnhancedLabel<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 AbstractEnhancedLabel<T>>- Parameters:
borderWidth- border width in pixels
-
getBorderType
-
setBorderType
-
getBorderDashOffset
-
setBorderDashOffset
-
getBorderRadius
- Specified by:
getBorderRadiusin interfaceHasBorder<T extends AbstractEnhancedLabel<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 AbstractEnhancedLabel<T>>- Parameters:
borderRadius- border radius to set in pixels
-
getPadding
- Specified by:
getPaddingin interfaceHasPadding<T extends AbstractEnhancedLabel<T>>- Returns:
- space around content
-
setPadding
Description copied from interface:HasPaddingSets padding on each of the four sides or replaces an existing one. The unit is px.- Specified by:
setPaddingin interfaceHasPadding<T extends AbstractEnhancedLabel<T>>- Parameters:
padding- padding to set
-
setPadding
Description copied from interface:HasPaddingSets the top/bottom and left/right paddings or replaces an existing one. The unit is px.- Specified by:
setPaddingin interfaceHasPadding<T extends AbstractEnhancedLabel<T>>- Parameters:
vertical- top and bottom padding to sethorizontal- left and right padding to set
-
setPadding
Description copied from interface:HasPaddingSets each of the four paddings separately. The unit is px.- Specified by:
setPaddingin 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:
getShadowColorin interfaceHasShadow<T extends AbstractEnhancedLabel<T>>- Returns:
- shadow color
-
getShadowBlur
- Specified by:
getShadowBlurin interfaceHasShadow<T extends AbstractEnhancedLabel<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 AbstractEnhancedLabel<T>>- Parameters:
shadowBlur- depth of shadow blur
-
getShadowOffsetX
- Specified by:
getShadowOffsetXin interfaceHasShadow<T extends AbstractEnhancedLabel<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 AbstractEnhancedLabel<T>>- Parameters:
shadowOffsetX- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetYin interfaceHasShadow<T extends AbstractEnhancedLabel<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 AbstractEnhancedLabel<T>>- Parameters:
shadowOffsetY- offset to set in pixels
-
withShow
-
withDistance
-
withRotate
-
withOffset
-
withBorderType
-
withBorderDashOffset
-