Class AbstractLegend<T extends AbstractLegend<T>>
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.legend.AbstractLegend<T>
- Type Parameters:
T- origin legend class type
- All Implemented Interfaces:
HasBorder<T>,HasPosition<T>,HasShadow<T>,HasPadding<T>,Serializable
- Direct Known Subclasses:
Legend,ScrollableLegend
public abstract class AbstractLegend<T extends AbstractLegend<T>>
extends ChartObservableObject
implements HasShadow<T>, HasPosition<T>, HasBorder<T>, HasPadding<T>
Base class for legend component.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLegend marker and text aligning.static classComponent to configure the emphasis state.static enumThe position of the selector button, which can be placed at the end or start of the legend component.static classThe text label style of the selector button, which is displayed by default.static classText font style for legend component.Nested classes/interfaces inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
ChartObservableObject.ObjectChangeEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractLegend.Alignprotected Colorprotected Colorprotected Integerprotected Integerprotected Stringprotected AbstractLegend.Emphasisprotected Stringprotected JsFunctionprotected Stringprotected Stringprotected Stringprotected Colorprotected Integerprotected Colorprotected Integerprotected Integerprotected ItemStyleprotected Integerprotected Stringprotected LineStyleprotected Orientationprotected Paddingprotected Stringprotected SelectedModeprotected Booleanprotected Integerprotected Integerprotected AbstractLegend.SelectorLabelprotected AbstractLegend.Positionprotected Integerprotected Colorprotected Integerprotected Integerprotected Booleanprotected Integerprotected AbstractLegend.TextStyleprotected Tooltipprotected Stringprotected final LegendTypeprotected Stringprotected Integerprotected IntegerFields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSelectedSeries(String seriesName, Boolean select) getAlign()getIcon()getId()getLeft()getRight()getShow()getTop()getType()getWidth()getZ()voidremoveSelectedSeries(String seriesName) voidsetAlign(AbstractLegend.Align align) voidsetBackgroundColor(Color backgroundColor) 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.voidsetBorderWidth(Integer borderWidth) Sets a border width or replaces an existing one.voidSets a distance between component and the bottom side of the container.
Possible values are: A pixel value like"20".voidsetEmphasis(AbstractLegend.Emphasis emphasis) voidsetFormatter(String formatter) voidsetFormatterFunction(JsFunction formatterFunction) voidsetFormatterFunction(String formatterFunction) voidvoidvoidvoidsetInactiveBorderColor(Color inactiveBorderColor) voidsetInactiveBorderWidth(Integer inactiveBorderWidth) voidsetInactiveColor(Color inactiveColor) voidsetItemGap(Integer itemGap) voidsetItemHeight(Integer itemHeight) voidsetItemStyle(ItemStyle itemStyle) voidsetItemWidth(Integer itemWidth) voidSets a distance between component and the left side of the container.
Possible values are: A pixel value like"20".voidsetLineStyle(LineStyle lineStyle) voidsetOrientation(Orientation orientation) voidsetPadding(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.voidSets a distance between component and the right side of the container.
Possible values are: A pixel value like"20".voidsetSelectedMode(SelectedMode selectedMode) voidsetSelectedSeries(Map<String, Boolean> selectedSeries) voidsetSelector(Boolean selector) voidsetSelectorButtonGap(Integer selectorButtonGap) voidsetSelectorItemGap(Integer selectorItemGap) voidsetSelectorLabel(AbstractLegend.SelectorLabel selectorLabel) voidsetSelectorPosition(AbstractLegend.Position selectorPosition) 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.voidvoidsetSymbolRotate(Integer symbolRotate) voidsetTextStyle(AbstractLegend.TextStyle textStyle) voidsetTooltip(Tooltip tooltip) voidSets a distance between component and the top side of the container.
Possible values are: A pixel value like"20".voidvoidvoidwithAlign(AbstractLegend.Align align) withBackgroundColor(Color backgroundColor) withEmphasis(AbstractLegend.Emphasis emphasis) withFormatter(String formatter) withFormatterFunction(JsFunction formatterFunction) withFormatterFunction(String formatterFunction) withHeight(String height) withInactiveBorderColor(Color inactiveBorderColor) withInactiveBorderWidth(Integer inactiveBorderWidth) withInactiveColor(Color inactiveColor) withItemGap(Integer itemGap) withItemHeight(Integer itemHeight) withItemStyle(ItemStyle itemStyle) withItemWidth(Integer itemWidth) withLineStyle(LineStyle lineStyle) withOrientation(Orientation orientation) withSelectedMode(SelectedMode selectedMode) withSelectedSeries(String seriesName, Boolean select) withSelectedSeries(Map<String, Boolean> selectedSeries) withSelector(Boolean selector) withSelectorButtonGap(Integer selectorButtonGap) withSelectorItemGap(Integer selectorItemGap) withSelectorLabel(AbstractLegend.SelectorLabel selectorLabel) withSelectorPosition(AbstractLegend.Position selectorPosition) withSymbolRotate(Integer symbolRotate) withTextStyle(AbstractLegend.TextStyle textStyle) withTooltip(Tooltip tooltip) withZLevel(Integer zLevel) 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.shared.HasPadding
withPadding, withPadding, withPaddingMethods inherited from interface io.jmix.chartsflowui.kit.component.model.HasPosition
withBottom, withLeft, withRight, withTopMethods inherited from interface io.jmix.chartsflowui.kit.component.model.HasShadow
withShadowBlur, withShadowColor, withShadowOffsetX, withShadowOffsetY
-
Field Details
-
type
-
id
-
show
-
zLevel
-
z
-
left
-
top
-
right
-
bottom
-
width
-
height
-
orientation
-
align
-
padding
-
itemGap
-
itemWidth
-
itemHeight
-
itemStyle
-
lineStyle
-
symbolRotate
-
formatter
-
formatterFunction
-
selectedMode
-
inactiveColor
-
inactiveBorderColor
-
inactiveBorderWidth
-
selectedSeries
-
textStyle
-
tooltip
-
icon
-
backgroundColor
-
borderColor
-
borderWidth
-
borderRadius
-
shadowBlur
-
shadowColor
-
shadowOffsetX
-
shadowOffsetY
-
emphasis
-
selector
-
selectorLabel
-
selectorPosition
-
selectorItemGap
-
selectorButtonGap
-
-
Constructor Details
-
AbstractLegend
-
-
Method Details
-
getType
-
getId
-
setId
-
withId
-
getShow
-
setShow
-
withShow
-
getZLevel
-
setZLevel
-
withZLevel
-
getZ
-
setZ
-
withZ
-
getLeft
- Specified by:
getLeftin interfaceHasPosition<T extends AbstractLegend<T>>- Returns:
- distance between component and the left side of the container
-
setLeft
Description copied from interface:HasPositionSets a distance between component and the left side of the container.
Possible values are:-
A pixel value like
"20". -
Percentage value relative to container width like
"20%". -
Predefined values like
"left","center","right".
- Specified by:
setLeftin interfaceHasPosition<T extends AbstractLegend<T>>- Parameters:
left- distance to set
-
A pixel value like
-
getTop
- Specified by:
getTopin interfaceHasPosition<T extends AbstractLegend<T>>- Returns:
- distance between component and the top side of the container
-
setTop
Description copied from interface:HasPositionSets a distance between component and the top side of the container.
Possible values are:-
A pixel value like
"20". -
Percentage value relative to container width like
"20%". -
Predefined values like
"top","middle","bottom".
- Specified by:
setTopin interfaceHasPosition<T extends AbstractLegend<T>>- Parameters:
top- distance to set
-
A pixel value like
-
getRight
- Specified by:
getRightin interfaceHasPosition<T extends AbstractLegend<T>>- Returns:
- distance between component and the right side of the container
-
setRight
Description copied from interface:HasPositionSets a distance between component and the right side of the container.
Possible values are:-
A pixel value like
"20". -
Percentage value relative to container width like
"20%".
- Specified by:
setRightin interfaceHasPosition<T extends AbstractLegend<T>>- Parameters:
right- distance to set
-
A pixel value like
-
getBottom
- Specified by:
getBottomin interfaceHasPosition<T extends AbstractLegend<T>>- Returns:
- distance between component and the bottom side of the container
-
setBottom
Description copied from interface:HasPositionSets a distance between component and the bottom side of the container.
Possible values are:-
A pixel value like
"20". -
Percentage value relative to container width like
"20%".
- Specified by:
setBottomin interfaceHasPosition<T extends AbstractLegend<T>>- Parameters:
bottom- distance to set
-
A pixel value like
-
getWidth
-
setWidth
-
withWidth
-
getHeight
-
setHeight
-
withHeight
-
getOrientation
-
getAlign
-
setAlign
-
withAlign
-
getPadding
- Specified by:
getPaddingin interfaceHasPadding<T extends AbstractLegend<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 AbstractLegend<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 AbstractLegend<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 AbstractLegend<T>>- Parameters:
top- top padding to setright- right padding to setbottom- bottom padding to setleft- left padding to set
-
getItemGap
-
setItemGap
-
withItemGap
-
getItemWidth
-
setItemWidth
-
withItemWidth
-
getItemHeight
-
setItemHeight
-
withItemHeight
-
getItemStyle
-
getLineStyle
-
getSymbolRotate
-
setSymbolRotate
-
withSymbolRotate
-
getFormatter
-
setFormatter
-
withFormatter
-
getFormatterFunction
-
setFormatterFunction
-
withFormatterFunction
-
getSelectedMode
-
getInactiveColor
-
getInactiveBorderColor
-
getInactiveBorderWidth
-
setInactiveBorderWidth
-
withInactiveBorderWidth
-
getSelectedSeries
-
setSelectedSeries
-
addSelectedSeries
-
removeSelectedSeries
-
withSelectedSeries
-
withSelectedSeries
-
getTextStyle
-
setTextStyle
-
withTextStyle
-
getTooltip
-
setTooltip
-
withTooltip
-
getIcon
-
setIcon
-
withIcon
-
getBackgroundColor
-
getBorderColor
- Specified by:
getBorderColorin interfaceHasBorder<T extends AbstractLegend<T>>- Returns:
- border color
-
getBorderWidth
- Specified by:
getBorderWidthin interfaceHasBorder<T extends AbstractLegend<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 AbstractLegend<T>>- Parameters:
borderWidth- border width in pixels
-
getBorderRadius
- Specified by:
getBorderRadiusin interfaceHasBorder<T extends AbstractLegend<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 AbstractLegend<T>>- Parameters:
borderRadius- border radius to set in pixels
-
getShadowBlur
- Specified by:
getShadowBlurin interfaceHasShadow<T extends AbstractLegend<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 AbstractLegend<T>>- Parameters:
shadowBlur- depth of shadow blur
-
getShadowColor
- Specified by:
getShadowColorin interfaceHasShadow<T extends AbstractLegend<T>>- Returns:
- shadow color
-
getShadowOffsetX
- Specified by:
getShadowOffsetXin interfaceHasShadow<T extends AbstractLegend<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 AbstractLegend<T>>- Parameters:
shadowOffsetX- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetYin interfaceHasShadow<T extends AbstractLegend<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 AbstractLegend<T>>- Parameters:
shadowOffsetY- offset to set in pixels
-
getEmphasis
-
setEmphasis
-
withEmphasis
-
getSelector
-
setSelector
-
withSelector
-
getSelectorLabel
-
setSelectorLabel
-
withSelectorLabel
-
getSelectorPosition
-
setSelectorPosition
-
withSelectorPosition
-
getSelectorItemGap
-
setSelectorItemGap
-
withSelectorItemGap
-
getSelectorButtonGap
-
setSelectorButtonGap
-
withSelectorButtonGap
-