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 TypeMethodDescriptionvoid
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 shadowBlur) Sets a depth of text shadow blur or replaces an existing one.void
setTextShadowColor
(Color shadowColor) Sets a color of the text shadow or replaces an existing one.void
setTextShadowOffsetX
(Integer shadowOffsetX) Sets horizontal offset for text shadow or replaces an existing one.void
setTextShadowOffsetY
(Integer shadowOffsetY) Sets vertical offset for text shadow or replaces an existing one.default T
withTextBorderColor
(Color textBorderColor) default T
withTextBorderDashOffset
(Integer textBorderDashOffset) default T
withTextBorderType
(String textBorderType) default T
withTextBorderWidth
(Double textBorderWidth) default T
withTextShadowBlur
(Integer shadowBlur) default T
withTextShadowColor
(Color shadowColor) default T
withTextShadowOffsetX
(Integer shadowOffsetX) default T
withTextShadowOffsetY
(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:
-