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
Modifier and TypeClassDescriptionstatic class
Font style forsubtext
.static enum
static enum
static class
Font style fortext
.static enum
Nested classes/interfaces inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
ChartObservableObject.ObjectChangeEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected Color
protected Color
protected Integer
protected Integer
protected String
protected String
protected Integer
protected String
protected String
protected Padding
protected String
protected Integer
protected Color
protected Integer
protected Integer
protected Boolean
protected String
protected Title.Target
protected String
protected Title.SubtextStyle
protected Title.Target
protected String
protected Title.TextAlign
protected Title.TextStyle
protected Title.TextVerticalAlign
protected String
protected Boolean
protected Integer
protected Integer
Fields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
getLeft()
getLink()
getRight()
getText()
getTop()
getZ()
isShow()
void
setBackgroundColor
(Color backgroundColor) void
setBorderColor
(Color borderColor) Sets a border color or replaces an existing one.void
setBorderRadius
(Integer borderRadius) Sets a border radius of the text fragment or replaces an existing one.void
setBorderWidth
(Integer borderWidth) Sets a border width or replaces an existing one.void
Sets a distance between component and the bottom side of the container.
Possible values are: A pixel value like"20"
.void
void
setItemGap
(Integer itemGap) void
Sets a distance between component and the left side of the container.
Possible values are: A pixel value like"20"
.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
Sets a distance between component and the right side of the container.
Possible values are: A pixel value like"20"
.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
setSublink
(String sublink) void
setSubtarget
(Title.Target subtarget) void
setSubtext
(String subtext) void
setSubtextStyle
(Title.SubtextStyle subtextStyle) void
setTarget
(Title.Target target) void
void
setTextAlign
(Title.TextAlign textAlign) void
setTextStyle
(Title.TextStyle textStyle) void
setTextVerticalAlign
(Title.TextVerticalAlign textVerticalAlign) void
Sets a distance between component and the top side of the container.
Possible values are: A pixel value like"20"
.void
setTriggerEvent
(Boolean triggerEvent) void
void
withBackgroundColor
(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, 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.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.HasPosition
withBottom, withLeft, withRight, withTop
Methods 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:
getPadding
in interfaceHasPadding<Title>
- 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<Title>
- 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<Title>
- 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<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:
getLeft
in interfaceHasPosition<Title>
- Returns:
- distance between component and the left side of the container
-
setLeft
Description copied from interface:HasPosition
Sets 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:
setLeft
in interfaceHasPosition<Title>
- Parameters:
left
- distance to set
-
A pixel value like
-
getTop
- Specified by:
getTop
in interfaceHasPosition<Title>
- Returns:
- distance between component and the top side of the container
-
setTop
Description copied from interface:HasPosition
Sets 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:
setTop
in interfaceHasPosition<Title>
- Parameters:
top
- distance to set
-
A pixel value like
-
getRight
- Specified by:
getRight
in interfaceHasPosition<Title>
- Returns:
- distance between component and the right side of the container
-
setRight
Description copied from interface:HasPosition
Sets 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:
setRight
in interfaceHasPosition<Title>
- Parameters:
right
- distance to set
-
A pixel value like
-
getBottom
- Specified by:
getBottom
in interfaceHasPosition<Title>
- Returns:
- distance between component and the bottom side of the container
-
setBottom
Description copied from interface:HasPosition
Sets 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:
setBottom
in interfaceHasPosition<Title>
- Parameters:
bottom
- distance to set
-
A pixel value like
-
getBackgroundColor
-
getBorderColor
- Specified by:
getBorderColor
in interfaceHasBorder<Title>
- Returns:
- border color
-
getBorderWidth
- Specified by:
getBorderWidth
in interfaceHasBorder<Title>
- 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<Title>
- Parameters:
borderWidth
- border width in pixels
-
getBorderRadius
- Specified by:
getBorderRadius
in interfaceHasBorder<Title>
- 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<Title>
- Parameters:
borderRadius
- border radius to set in pixels
-
getShadowBlur
- Specified by:
getShadowBlur
in interfaceHasShadow<Title>
- 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<Title>
- Parameters:
shadowBlur
- depth of shadow blur
-
getShadowColor
- Specified by:
getShadowColor
in interfaceHasShadow<Title>
- Returns:
- shadow color
-
getShadowOffsetX
- Specified by:
getShadowOffsetX
in interfaceHasShadow<Title>
- 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<Title>
- Parameters:
shadowOffsetX
- offset to set in pixels
-
getShadowOffsetY
- Specified by:
getShadowOffsetY
in interfaceHasShadow<Title>
- 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<Title>
- Parameters:
shadowOffsetY
- offset to set in pixels
-
withId
-
withShow
-
withText
-
withLink
-
withTarget
-
withTextStyle
-
withSubtext
-
withSublink
-
withSubtarget
-
withSubtextStyle
-
withTextAlign
-
withTextVerticalAlign
-
withTriggerEvent
-
withItemGap
-
withZLevel
-
withZ
-