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 Details

    • getTextBorderColor

      Color getTextBorderColor()
      Returns:
      stroke color of the text
    • setTextBorderColor

      void setTextBorderColor(Color textBorderColor)
      Sets a stroke color of the text or replaces an existing one.
      Parameters:
      textBorderColor - color to set
    • withTextBorderColor

      default T withTextBorderColor(Color textBorderColor)
      Parameters:
      textBorderColor - color to set
      Returns:
      this
      See Also:
    • getTextBorderWidth

      Double getTextBorderWidth()
      Returns:
      stroke line width of the text in pixels
    • setTextBorderWidth

      void setTextBorderWidth(Double textBorderWidth)
      Sets a stroke line width of the text or replaces an existing one.
      Parameters:
      textBorderWidth - line width to set in pixels
    • withTextBorderWidth

      default T withTextBorderWidth(Double textBorderWidth)
      Parameters:
      textBorderWidth - line width to set in pixels
      Returns:
      this
      See Also:
    • getTextBorderType

      String getTextBorderType()
      Returns:
      stroke line type of the text
    • setTextBorderType

      void setTextBorderType(String textBorderType)
      Sets a stroke line type of the text or replaces an existing one.
      Possible values are:
      • solid
      • dashed
      • dotted
      Since v5.0.0, it can also be a number. For more flexible customization use JmixChart.setNativeJson(String).
      Parameters:
      textBorderType - stroke line type to set
    • withTextBorderType

      default T withTextBorderType(String textBorderType)
      Parameters:
      textBorderType - stroke line type to set
      Returns:
      this
      See Also:
    • getTextBorderDashOffset

      Integer getTextBorderDashOffset()
      Returns:
      offset of the line dash
    • setTextBorderDashOffset

      void setTextBorderDashOffset(Integer textBorderDashOffset)
      Sets offset of the line dash or replaces an existing one.
      Parameters:
      textBorderDashOffset - offset of the line dash to set
      See Also:
    • withTextBorderDashOffset

      default T withTextBorderDashOffset(Integer textBorderDashOffset)
      Parameters:
      textBorderDashOffset - offset of the line dash to set
      Returns:
      this
      See Also:
    • getTextShadowBlur

      Integer getTextShadowBlur()
      Returns:
      shadow blur of the text itself
    • setTextShadowBlur

      void setTextShadowBlur(Integer shadowBlur)
      Sets a depth of text shadow blur or replaces an existing one.
      Parameters:
      shadowBlur - depth of text shadow blur
    • withTextShadowBlur

      default T withTextShadowBlur(Integer shadowBlur)
      Parameters:
      shadowBlur - depth of text shadow blur
      Returns:
      this
      See Also:
    • getTextShadowColor

      Color getTextShadowColor()
      Returns:
      text shadow color
    • setTextShadowColor

      void setTextShadowColor(Color shadowColor)
      Sets a color of the text shadow or replaces an existing one.
      Parameters:
      shadowColor - text shadow color to set
    • withTextShadowColor

      default T withTextShadowColor(Color shadowColor)
      Parameters:
      shadowColor - text shadow color to set
      Returns:
      this
      See Also:
    • getTextShadowOffsetX

      Integer getTextShadowOffsetX()
      Returns:
      horizontal offset for text shadow in pixels
    • setTextShadowOffsetX

      void setTextShadowOffsetX(Integer shadowOffsetX)
      Sets horizontal offset for text shadow or replaces an existing one.
      Parameters:
      shadowOffsetX - offset to set in pixels
    • withTextShadowOffsetX

      default T withTextShadowOffsetX(Integer shadowOffsetX)
      Parameters:
      shadowOffsetX - offset to set in pixels
      Returns:
      this
      See Also:
    • getTextShadowOffsetY

      Integer getTextShadowOffsetY()
      Returns:
      vertical offset for text shadow in pixels
    • setTextShadowOffsetY

      void setTextShadowOffsetY(Integer shadowOffsetY)
      Sets vertical offset for text shadow or replaces an existing one.
      Parameters:
      shadowOffsetY - offset to set in pixels
    • withTextShadowOffsetY

      default T withTextShadowOffsetY(Integer shadowOffsetY)
      Parameters:
      shadowOffsetY - offset to set in pixels
      Returns:
      this
      See Also: