Interface HasAxisName<T>

Type Parameters:
T - origin class type
All Known Implementing Classes:
AbstractCartesianAxis, RadiusAxis, XAxis, YAxis

public interface HasAxisName<T>
An axis that has name.
  • Method Details

    • getName

      String getName()
      Returns:
      axis name
    • setName

      void setName(String name)
      Sets an axis name or replaces an existing one.
      Parameters:
      name - axis name to set
    • getNameLocation

      HasAxisName.NameLocation getNameLocation()
      Returns:
      location of axis name
    • setNameLocation

      void setNameLocation(HasAxisName.NameLocation nameLocation)
      Sets a location of axis name or replaces an existing one.
      Parameters:
      nameLocation - location to set
    • getNameTextStyle

      HasAxisName.NameTextStyle getNameTextStyle()
      Returns:
      font text style of axis name
    • setNameTextStyle

      void setNameTextStyle(HasAxisName.NameTextStyle nameTextStyle)
      Sets a font text style of axis name or replaces an existing one.
      Parameters:
      nameTextStyle - text style to set
    • getNameGap

      Integer getNameGap()
      Returns:
      gap between axis name and axis line. The unit is pixels.
    • setNameGap

      void setNameGap(Integer nameGap)
      Sets gap between axis name and axis line or replaces an existing one.
      Parameters:
      nameGap - gap to set in pixels
    • getNameRotate

      Integer getNameRotate()
      Returns:
      rotate degree of axis name
    • setNameRotate

      void setNameRotate(Integer nameRotate)
      Sets a rotate degree of axis name or replaces an existing one.
      Parameters:
      nameRotate - rotate degree to set
    • getInverse

      Boolean getInverse()
      Returns:
      true if the axis is inverted, false otherwise
    • setInverse

      void setInverse(Boolean inverse)
      Sets the inversion for the axis or replaces an existing one.
      Parameters:
      inverse - whether to inverse axis
    • withName

      default T withName(String name)
      Parameters:
      name - axis name to set
      Returns:
      this
      See Also:
    • withNameLocation

      default T withNameLocation(HasAxisName.NameLocation nameLocation)
      Parameters:
      nameLocation - location to set
      Returns:
      this
      See Also:
    • withNameTextStyle

      default T withNameTextStyle(HasAxisName.NameTextStyle nameTextStyle)
      Parameters:
      nameTextStyle - text style to set
      Returns:
      this
      See Also:
    • withNameGap

      default T withNameGap(Integer nameGap)
      Parameters:
      nameGap - gap to set in pixels
      Returns:
      this
      See Also:
    • withNameRotate

      default T withNameRotate(Integer nameRotate)
      Parameters:
      nameRotate - rotate degree to set
      Returns:
      this
      See Also:
    • withInverse

      default T withInverse(Boolean inverse)
      Parameters:
      inverse - whether to inverse axis
      Returns:
      this
      See Also: