Class Title
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.Title
- All Implemented Interfaces:
HasBorder<Title>,HasPosition<Title>,HasShadow<Title>,HasPadding<Title>,Serializable
public class Title
extends ChartObservableObject
implements HasShadow<Title>, HasPosition<Title>, HasPadding<Title>, HasBorder<Title>
Title component, including main title and subtitle. More detailed information is provided in the documentation.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFont style forsubtext.static enumstatic enumstatic classFont style fortext.static enumNested classes/interfaces inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
ChartObservableObject.ObjectChangeEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Colorprotected Colorprotected Integerprotected Integerprotected Stringprotected Stringprotected Integerprotected Stringprotected Stringprotected Paddingprotected Stringprotected Integerprotected Colorprotected Integerprotected Integerprotected Booleanprotected Stringprotected Title.Targetprotected Stringprotected Title.SubtextStyleprotected Title.Targetprotected Stringprotected Title.TextAlignprotected Title.TextStyleprotected Title.TextVerticalAlignprotected Stringprotected Booleanprotected Integerprotected IntegerFields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getLeft()getLink()getRight()getText()getTop()getZ()isShow()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".voidvoidsetItemGap(Integer itemGap) voidSets a distance between component and the left side of the container.
Possible values are: A pixel value like"20".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.voidSets a distance between component and the right side of the container.
Possible values are: A pixel value like"20".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.voidvoidsetSublink(String sublink) voidsetSubtarget(Title.Target subtarget) voidsetSubtext(String subtext) voidsetSubtextStyle(Title.SubtextStyle subtextStyle) voidsetTarget(Title.Target target) voidvoidsetTextAlign(Title.TextAlign textAlign) voidsetTextStyle(Title.TextStyle textStyle) voidsetTextVerticalAlign(Title.TextVerticalAlign textVerticalAlign) voidSets a distance between component and the top side of the container.
Possible values are: A pixel value like"20".voidsetTriggerEvent(Boolean triggerEvent) voidvoidwithBackgroundColor(Color backgroundColor) withItemGap(Integer itemGap) withSublink(String sublink) withSubtarget(Title.Target subtarget) withSubtext(String subtext) withSubtextStyle(Title.SubtextStyle subtextStyle) withTarget(Title.Target target) withTextAlign(Title.TextAlign textAlign) withTextStyle(Title.TextStyle textStyle) withTextVerticalAlign(Title.TextVerticalAlign textVerticalAlign) withTriggerEvent(Boolean triggerEvent) 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
-
id
-
show
-
text
-
link
-
target
-
textStyle
-
subtext
-
sublink
-
subtarget
-
subtextStyle
-
textAlign
-
textVerticalAlign
-
triggerEvent
-
padding
-
itemGap
-
zLevel
-
z
-
left
-
top
-
right
-
bottom
-
backgroundColor
-
borderColor
-
borderWidth
-
borderRadius
-
shadowBlur
-
shadowColor
-
shadowOffsetX
-
shadowOffsetY
-
-
Constructor Details
-
Title
public Title()
-
-
Method Details
-
getId
-
setId
-
isShow
-
setShow
-
getText
-
setText
-
getLink
-
setLink
-
getTarget
-
setTarget
-
getTextStyle
-
setTextStyle
-
getSubtext
-
setSubtext
-
getSublink
-
setSublink
-
getSubtarget
-
setSubtarget
-
getSubtextStyle
-
setSubtextStyle
-
getTextAlign
-
setTextAlign
-
getTextVerticalAlign
-
setTextVerticalAlign
-
isTriggerEvent
-
setTriggerEvent
-
getPadding
- Specified by:
getPaddingin interfaceHasPadding<Title>- 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<Title>- 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<Title>- 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<Title>- Parameters:
top- top padding to setright- right padding to setbottom- bottom padding to setleft- left padding to set
-
getItemGap
-
setItemGap
-
getZLevel
-
setZLevel
-
getZ
-
setZ
-
getLeft
- Specified by:
getLeftin interfaceHasPosition<Title>- 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<Title>- Parameters:
left- distance to set
-
A pixel value like
-
getTop
- Specified by:
getTopin interfaceHasPosition<Title>- 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<Title>- Parameters:
top- distance to set
-
A pixel value like
-
getRight
- Specified by:
getRightin interfaceHasPosition<Title>- 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<Title>- Parameters:
right- distance to set
-
A pixel value like
-
getBottom
- Specified by:
getBottomin interfaceHasPosition<Title>- 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<Title>- Parameters:
bottom- distance to set
-
A pixel value like
-
getBackgroundColor
-
getBorderColor
- Specified by:
getBorderColorin interfaceHasBorder<Title>- Returns:
- border color
-
getBorderWidth
- Specified by:
getBorderWidthin interfaceHasBorder<Title>- Returns:
- border width in pixels
-
setBorderWidth
Description copied from interface:HasBorderSets a border width or replaces an existing one.- Specified by:
setBorderWidthin interfaceHasBorder<Title>- Parameters:
borderWidth- border width in pixels
-
getBorderRadius
- Specified by:
getBorderRadiusin interfaceHasBorder<Title>- 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<Title>- Parameters:
borderRadius- border radius to set in pixels
-
getShadowBlur
- Specified by:
getShadowBlurin interfaceHasShadow<Title>- Returns:
- depth of shadow blur
-
setShadowBlur
Description copied from interface:HasShadowSets depth of shadow blur or replaces an existing one.- Specified by:
setShadowBlurin interfaceHasShadow<Title>- Parameters:
shadowBlur- depth of shadow blur
-
getShadowColor
- Specified by:
getShadowColorin interfaceHasShadow<Title>- Returns:
- shadow color
-
getShadowOffsetX
- Specified by:
getShadowOffsetXin interfaceHasShadow<Title>- 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<Title>- Parameters:
shadowOffsetX- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetYin interfaceHasShadow<Title>- 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<Title>- Parameters:
shadowOffsetY- offset to set in pixels
-
withId
-
withShow
-
withText
-
withLink
-
withTarget
-
withTextStyle
-
withSubtext
-
withSublink
-
withSubtarget
-
withSubtextStyle
-
withTextAlign
-
withTextVerticalAlign
-
withTriggerEvent
-
withItemGap
-
withZLevel
-
withZ
-