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 SummaryNested classes/interfaces inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObjectChartObservableObject.ObjectChangeEvent
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Colorprotected Stringprotected Stringprotected Integerprotected FontStyleprotected Stringprotected Integerprotected Integerprotected Overflowprotected Colorprotected Integerprotected Stringprotected Doubleprotected Integerprotected Colorprotected Integerprotected Integerprotected IntegerFields inherited from class io.jmix.chartsflowui.kit.component.model.ChartObservableObjectchildren, dirty, listener
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetColor()getWidth()voidvoidsetEllipsis(String ellipsis) voidsetFontFamily(String fontFamily) voidsetFontSize(Integer fontSize) voidsetFontStyle(FontStyle fontStyle) voidsetFontWeight(String fontWeight) voidvoidsetLineHeight(Integer lineHeight) voidsetOverflow(Overflow overflow) voidsetTextBorderColor(Color textBorderColor) Sets a stroke color of the text or replaces an existing one.voidsetTextBorderDashOffset(Integer textBorderDashOffset) Sets offset of the line dash or replaces an existing one.voidsetTextBorderType(String textBorderType) Sets a stroke line type of the text or replaces an existing one.
 Possible values are:soliddasheddottedSincev5.0.0, it can also be a number.voidsetTextBorderWidth(Double textBorderWidth) Sets a stroke line width of the text or replaces an existing one.voidsetTextShadowBlur(Integer textShadowBlur) Sets a depth of text shadow blur or replaces an existing one.voidsetTextShadowColor(Color textShadowColor) Sets a color of the text shadow or replaces an existing one.voidsetTextShadowOffsetX(Integer textShadowOffsetX) Sets horizontal offset for text shadow or replaces an existing one.voidsetTextShadowOffsetY(Integer textShadowOffsetY) Sets vertical offset for text shadow or replaces an existing one.voidwithEllipsis(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.ChartObservableObjectaddChild, fireChangeEvent, getChildren, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setChartObjectChangeListener, unmarkDirtyInDepthMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.chartsflowui.kit.component.model.HasTextwithTextBorderColor, 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- 
AbstractTextpublic AbstractText()
 
- 
- 
Method Details- 
getColor
- 
getFontStyle
- 
getFontWeight
- 
setFontWeight
- 
getFontFamily
- 
setFontFamily
- 
getFontSize
- 
setFontSize
- 
getLineHeight
- 
setLineHeight
- 
getWidth
- 
setWidth
- 
getHeight
- 
setHeight
- 
getTextBorderColor- Specified by:
- getTextBorderColorin interface- HasText<T extends AbstractText<T>>
- Returns:
- stroke color of the text
 
- 
getTextBorderWidth- Specified by:
- getTextBorderWidthin interface- HasText<T extends AbstractText<T>>
- Returns:
- stroke line width of the text in pixels
 
- 
setTextBorderWidthDescription copied from interface:HasTextSets a stroke line width of the text or replaces an existing one.- Specified by:
- setTextBorderWidthin interface- HasText<T extends AbstractText<T>>
- Parameters:
- textBorderWidth- line width to set in pixels
 
- 
getTextBorderType- Specified by:
- getTextBorderTypein interface- HasText<T extends AbstractText<T>>
- Returns:
- stroke line type of the text
 
- 
setTextBorderTypeDescription copied from interface:HasTextSets 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:
- setTextBorderTypein interface- HasText<T extends AbstractText<T>>
- Parameters:
- textBorderType- stroke line type to set
 
-  
- 
getTextBorderDashOffset- Specified by:
- getTextBorderDashOffsetin interface- HasText<T extends AbstractText<T>>
- Returns:
- offset of the line dash
 
- 
setTextBorderDashOffsetDescription copied from interface:HasTextSets offset of the line dash or replaces an existing one.- Specified by:
- setTextBorderDashOffsetin interface- HasText<T extends AbstractText<T>>
- Parameters:
- textBorderDashOffset- offset of the line dash to set
- See Also:
 
- 
getTextShadowColor- Specified by:
- getTextShadowColorin interface- HasText<T extends AbstractText<T>>
- Returns:
- text shadow color
 
- 
getTextShadowBlur- Specified by:
- getTextShadowBlurin interface- HasText<T extends AbstractText<T>>
- Returns:
- shadow blur of the text itself
 
- 
setTextShadowBlurDescription copied from interface:HasTextSets a depth of text shadow blur or replaces an existing one.- Specified by:
- setTextShadowBlurin interface- HasText<T extends AbstractText<T>>
- Parameters:
- textShadowBlur- depth of text shadow blur
 
- 
getTextShadowOffsetX- Specified by:
- getTextShadowOffsetXin interface- HasText<T extends AbstractText<T>>
- Returns:
- horizontal offset for text shadow in pixels
 
- 
setTextShadowOffsetXDescription copied from interface:HasTextSets horizontal offset for text shadow or replaces an existing one.- Specified by:
- setTextShadowOffsetXin interface- HasText<T extends AbstractText<T>>
- Parameters:
- textShadowOffsetX- offset to set in pixels
 
- 
getTextShadowOffsetY- Specified by:
- getTextShadowOffsetYin interface- HasText<T extends AbstractText<T>>
- Returns:
- vertical offset for text shadow in pixels
 
- 
setTextShadowOffsetYDescription copied from interface:HasTextSets vertical offset for text shadow or replaces an existing one.- Specified by:
- setTextShadowOffsetYin interface- HasText<T extends AbstractText<T>>
- Parameters:
- textShadowOffsetY- offset to set in pixels
 
- 
getOverflow
- 
getEllipsis
- 
setEllipsis
- 
withFontWeight
- 
withFontFamily
- 
withFontSize
- 
withLineHeight
- 
withWidth
- 
withHeight
- 
withEllipsis
 
-