Interface HasText<T>
- Type Parameters:
T- origin class type
- All Known Implementing Classes:
AbstractEnhancedLabel,AbstractLegend.SelectorLabel,AbstractLegend.TextStyle,AbstractRichText,AbstractText,AxisLabel,GaugeSeries.AbstractGaugeText,GaugeSeries.Detail,GaugeSeries.Title,HasAxisName.NameTextStyle,Label,Label,LineSeries.EndLabel,Radar.AxisName,RichStyle,TextStyle,Title.SubtextStyle,Title.TextStyle
public interface HasText<T>
A component that has text.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetTextBorderColor(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 shadowBlur) Sets a depth of text shadow blur or replaces an existing one.voidsetTextShadowColor(Color shadowColor) Sets a color of the text shadow or replaces an existing one.voidsetTextShadowOffsetX(Integer shadowOffsetX) Sets horizontal offset for text shadow or replaces an existing one.voidsetTextShadowOffsetY(Integer shadowOffsetY) Sets vertical offset for text shadow or replaces an existing one.default TwithTextBorderColor(Color textBorderColor) default TwithTextBorderDashOffset(Integer textBorderDashOffset) default TwithTextBorderType(String textBorderType) default TwithTextBorderWidth(Double textBorderWidth) default TwithTextShadowBlur(Integer shadowBlur) default TwithTextShadowColor(Color shadowColor) default TwithTextShadowOffsetX(Integer shadowOffsetX) default TwithTextShadowOffsetY(Integer shadowOffsetY)
-
Method Details
-
getTextBorderColor
Color getTextBorderColor()- Returns:
- stroke color of the text
-
getTextBorderWidth
Double getTextBorderWidth()- Returns:
- stroke line width of the text in pixels
-
setTextBorderWidth
Sets a stroke line width of the text or replaces an existing one.- Parameters:
textBorderWidth- line width to set in pixels
-
withTextBorderWidth
- Parameters:
textBorderWidth- line width to set in pixels- Returns:
- this
- See Also:
-
getTextBorderType
String getTextBorderType()- Returns:
- stroke line type of the text
-
setTextBorderType
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).- Parameters:
textBorderType- stroke line type to set
-
-
withTextBorderType
- Parameters:
textBorderType- stroke line type to set- Returns:
- this
- See Also:
-
getTextBorderDashOffset
Integer getTextBorderDashOffset()- Returns:
- offset of the line dash
-
setTextBorderDashOffset
Sets offset of the line dash or replaces an existing one.- Parameters:
textBorderDashOffset- offset of the line dash to set- See Also:
-
withTextBorderDashOffset
- Parameters:
textBorderDashOffset- offset of the line dash to set- Returns:
- this
- See Also:
-
getTextShadowBlur
Integer getTextShadowBlur()- Returns:
- shadow blur of the text itself
-
setTextShadowBlur
Sets a depth of text shadow blur or replaces an existing one.- Parameters:
shadowBlur- depth of text shadow blur
-
withTextShadowBlur
- Parameters:
shadowBlur- depth of text shadow blur- Returns:
- this
- See Also:
-
getTextShadowColor
Color getTextShadowColor()- Returns:
- text shadow color
-
getTextShadowOffsetX
Integer getTextShadowOffsetX()- Returns:
- horizontal offset for text shadow in pixels
-
setTextShadowOffsetX
Sets horizontal offset for text shadow or replaces an existing one.- Parameters:
shadowOffsetX- offset to set in pixels
-
withTextShadowOffsetX
- Parameters:
shadowOffsetX- offset to set in pixels- Returns:
- this
- See Also:
-
getTextShadowOffsetY
Integer getTextShadowOffsetY()- Returns:
- vertical offset for text shadow in pixels
-
setTextShadowOffsetY
Sets vertical offset for text shadow or replaces an existing one.- Parameters:
shadowOffsetY- offset to set in pixels
-
withTextShadowOffsetY
- Parameters:
shadowOffsetY- offset to set in pixels- Returns:
- this
- See Also:
-