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
FieldsModifier 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.ChartObservableObject
children, dirty, listener -
Constructor Summary
Constructors -
Method Summary
Modifier 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.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.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:
getTextBorderColorin interfaceHasText<T extends AbstractText<T>>- Returns:
- stroke color of the text
-
getTextBorderWidth
- Specified by:
getTextBorderWidthin interfaceHasText<T extends AbstractText<T>>- Returns:
- stroke line width of the text in pixels
-
setTextBorderWidth
Description copied from interface:HasTextSets a stroke line width of the text or replaces an existing one.- Specified by:
setTextBorderWidthin interfaceHasText<T extends AbstractText<T>>- Parameters:
textBorderWidth- line width to set in pixels
-
getTextBorderType
- Specified by:
getTextBorderTypein interfaceHasText<T extends AbstractText<T>>- Returns:
- stroke line type of the text
-
setTextBorderType
Description 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 interfaceHasText<T extends AbstractText<T>>- Parameters:
textBorderType- stroke line type to set
-
-
getTextBorderDashOffset
- Specified by:
getTextBorderDashOffsetin interfaceHasText<T extends AbstractText<T>>- Returns:
- offset of the line dash
-
setTextBorderDashOffset
Description copied from interface:HasTextSets offset of the line dash or replaces an existing one.- Specified by:
setTextBorderDashOffsetin interfaceHasText<T extends AbstractText<T>>- Parameters:
textBorderDashOffset- offset of the line dash to set- See Also:
-
getTextShadowColor
- Specified by:
getTextShadowColorin interfaceHasText<T extends AbstractText<T>>- Returns:
- text shadow color
-
getTextShadowBlur
- Specified by:
getTextShadowBlurin interfaceHasText<T extends AbstractText<T>>- Returns:
- shadow blur of the text itself
-
setTextShadowBlur
Description copied from interface:HasTextSets a depth of text shadow blur or replaces an existing one.- Specified by:
setTextShadowBlurin interfaceHasText<T extends AbstractText<T>>- Parameters:
textShadowBlur- depth of text shadow blur
-
getTextShadowOffsetX
- Specified by:
getTextShadowOffsetXin interfaceHasText<T extends AbstractText<T>>- Returns:
- horizontal offset for text shadow in pixels
-
setTextShadowOffsetX
Description copied from interface:HasTextSets horizontal offset for text shadow or replaces an existing one.- Specified by:
setTextShadowOffsetXin interfaceHasText<T extends AbstractText<T>>- Parameters:
textShadowOffsetX- offset to set in pixels
-
getTextShadowOffsetY
- Specified by:
getTextShadowOffsetYin interfaceHasText<T extends AbstractText<T>>- Returns:
- vertical offset for text shadow in pixels
-
setTextShadowOffsetY
Description copied from interface:HasTextSets vertical offset for text shadow or replaces an existing one.- Specified by:
setTextShadowOffsetYin interfaceHasText<T extends AbstractText<T>>- Parameters:
textShadowOffsetY- offset to set in pixels
-
getOverflow
-
getEllipsis
-
setEllipsis
-
withFontWeight
-
withFontFamily
-
withFontSize
-
withLineHeight
-
withWidth
-
withHeight
-
withEllipsis
-