Class AbstractText<T extends AbstractText<T>>
java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.shared.AbstractText<T>
- Type Parameters:
T
- origin text class type
- All Implemented Interfaces:
HasText<T>
,Serializable
- Direct Known Subclasses:
AbstractRichText
,Label
,TextStyle
public abstract class AbstractText<T extends AbstractText<T>>
extends ChartObservableObject
implements HasText<T>
The base class for text components.
- 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 Color
protected String
protected String
protected Integer
protected FontStyle
protected String
protected Integer
protected Integer
protected Overflow
protected Color
protected Integer
protected String
protected Double
protected Integer
protected Color
protected Integer
protected Integer
protected Integer
Fields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObject
children, dirty, listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
getWidth()
void
void
setEllipsis
(String ellipsis) void
setFontFamily
(String fontFamily) void
setFontSize
(Integer fontSize) void
setFontStyle
(FontStyle fontStyle) void
setFontWeight
(String fontWeight) void
void
setLineHeight
(Integer lineHeight) void
setOverflow
(Overflow overflow) void
setTextBorderColor
(Color textBorderColor) Sets a stroke color of the text or replaces an existing one.void
setTextBorderDashOffset
(Integer textBorderDashOffset) Sets offset of the line dash or replaces an existing one.void
setTextBorderType
(String textBorderType) Sets a stroke line type of the text or replaces an existing one.
Possible values are:solid
dashed
dotted
Sincev5.0.0
, it can also be a number.void
setTextBorderWidth
(Double textBorderWidth) Sets a stroke line width of the text or replaces an existing one.void
setTextShadowBlur
(Integer textShadowBlur) Sets a depth of text shadow blur or replaces an existing one.void
setTextShadowColor
(Color textShadowColor) Sets a color of the text shadow or replaces an existing one.void
setTextShadowOffsetX
(Integer textShadowOffsetX) Sets horizontal offset for text shadow or replaces an existing one.void
setTextShadowOffsetY
(Integer textShadowOffsetY) Sets vertical offset for text shadow or replaces an existing one.void
withEllipsis
(String ellipsis) withFontFamily
(String fontFamily) withFontSize
(Integer fontSize) withFontStyle
(FontStyle fontStyle) withFontWeight
(String fontWeight) withHeight
(Integer height) withLineHeight
(Integer lineHeight) withOverflow
(Overflow overflow) 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.HasText
withTextBorderColor, withTextBorderDashOffset, withTextBorderType, withTextBorderWidth, withTextShadowBlur, withTextShadowColor, withTextShadowOffsetX, withTextShadowOffsetY
-
Field Details
-
color
-
fontStyle
-
fontWeight
-
fontFamily
-
fontSize
-
lineHeight
-
width
-
height
-
textBorderColor
-
textBorderWidth
-
textBorderType
-
textBorderDashOffset
-
textShadowColor
-
textShadowBlur
-
textShadowOffsetX
-
textShadowOffsetY
-
overflow
-
ellipsis
-
-
Constructor Details
-
AbstractText
public AbstractText()
-
-
Method Details
-
getColor
-
getFontStyle
-
getFontWeight
-
setFontWeight
-
getFontFamily
-
setFontFamily
-
getFontSize
-
setFontSize
-
getLineHeight
-
setLineHeight
-
getWidth
-
setWidth
-
getHeight
-
setHeight
-
getTextBorderColor
- Specified by:
getTextBorderColor
in interfaceHasText<T extends AbstractText<T>>
- Returns:
- stroke color of the text
-
getTextBorderWidth
- Specified by:
getTextBorderWidth
in interfaceHasText<T extends AbstractText<T>>
- Returns:
- stroke line width of the text in pixels
-
setTextBorderWidth
Description copied from interface:HasText
Sets a stroke line width of the text or replaces an existing one.- Specified by:
setTextBorderWidth
in interfaceHasText<T extends AbstractText<T>>
- Parameters:
textBorderWidth
- line width to set in pixels
-
getTextBorderType
- Specified by:
getTextBorderType
in interfaceHasText<T extends AbstractText<T>>
- Returns:
- stroke line type of the text
-
setTextBorderType
Description copied from interface:HasText
Sets a stroke line type of the text or replaces an existing one.
Possible values are:-
solid
-
dashed
-
dotted
v5.0.0
, it can also be a number. For more flexible customization useJmixChart.setNativeJson(String)
.- Specified by:
setTextBorderType
in interfaceHasText<T extends AbstractText<T>>
- Parameters:
textBorderType
- stroke line type to set
-
-
getTextBorderDashOffset
- Specified by:
getTextBorderDashOffset
in interfaceHasText<T extends AbstractText<T>>
- Returns:
- offset of the line dash
-
setTextBorderDashOffset
Description copied from interface:HasText
Sets offset of the line dash or replaces an existing one.- Specified by:
setTextBorderDashOffset
in interfaceHasText<T extends AbstractText<T>>
- Parameters:
textBorderDashOffset
- offset of the line dash to set- See Also:
-
getTextShadowColor
- Specified by:
getTextShadowColor
in interfaceHasText<T extends AbstractText<T>>
- Returns:
- text shadow color
-
getTextShadowBlur
- Specified by:
getTextShadowBlur
in interfaceHasText<T extends AbstractText<T>>
- Returns:
- shadow blur of the text itself
-
setTextShadowBlur
Description copied from interface:HasText
Sets a depth of text shadow blur or replaces an existing one.- Specified by:
setTextShadowBlur
in interfaceHasText<T extends AbstractText<T>>
- Parameters:
textShadowBlur
- depth of text shadow blur
-
getTextShadowOffsetX
- Specified by:
getTextShadowOffsetX
in interfaceHasText<T extends AbstractText<T>>
- Returns:
- horizontal offset for text shadow in pixels
-
setTextShadowOffsetX
Description copied from interface:HasText
Sets horizontal offset for text shadow or replaces an existing one.- Specified by:
setTextShadowOffsetX
in interfaceHasText<T extends AbstractText<T>>
- Parameters:
textShadowOffsetX
- offset to set in pixels
-
getTextShadowOffsetY
- Specified by:
getTextShadowOffsetY
in interfaceHasText<T extends AbstractText<T>>
- Returns:
- vertical offset for text shadow in pixels
-
setTextShadowOffsetY
Description copied from interface:HasText
Sets vertical offset for text shadow or replaces an existing one.- Specified by:
setTextShadowOffsetY
in interfaceHasText<T extends AbstractText<T>>
- Parameters:
textShadowOffsetY
- offset to set in pixels
-
getOverflow
-
getEllipsis
-
setEllipsis
-
withFontWeight
-
withFontFamily
-
withFontSize
-
withLineHeight
-
withWidth
-
withHeight
-
withEllipsis
-