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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumPredefined location for axis name.static classFont text style of axis name. -
Method Summary
Modifier and TypeMethodDescription@Nullable Boolean@Nullable StringgetName()@Nullable Integer@Nullable HasAxisName.NameLocation@Nullable Integer@Nullable HasAxisName.NameTextStylevoidsetInverse(Boolean inverse) Sets the inversion for the axis or replaces an existing one.voidSets an axis name or replaces an existing one.voidsetNameGap(Integer nameGap) Sets gap between axis name and axis line or replaces an existing one.voidsetNameLocation(HasAxisName.NameLocation nameLocation) Sets a location of axis name or replaces an existing one.voidsetNameRotate(Integer nameRotate) Sets a rotate degree of axis name or replaces an existing one.voidsetNameTextStyle(HasAxisName.NameTextStyle nameTextStyle) Sets a font text style of axis name or replaces an existing one.default TwithInverse(Boolean inverse) default Tdefault TwithNameGap(Integer nameGap) default TwithNameLocation(HasAxisName.NameLocation nameLocation) default TwithNameRotate(Integer nameRotate) default TwithNameTextStyle(HasAxisName.NameTextStyle nameTextStyle)
-
Method Details
-
getName
@Nullable String getName()- Returns:
- axis name
-
setName
Sets an axis name or replaces an existing one.- Parameters:
name- axis name to set
-
getNameLocation
@Nullable HasAxisName.NameLocation getNameLocation()- Returns:
- location of axis name
-
setNameLocation
Sets a location of axis name or replaces an existing one.- Parameters:
nameLocation- location to set
-
getNameTextStyle
@Nullable HasAxisName.NameTextStyle getNameTextStyle()- Returns:
- font text style of axis name
-
setNameTextStyle
Sets a font text style of axis name or replaces an existing one.- Parameters:
nameTextStyle- text style to set
-
getNameGap
@Nullable Integer getNameGap()- Returns:
- gap between axis name and axis line. The unit is pixels.
-
setNameGap
Sets gap between axis name and axis line or replaces an existing one.- Parameters:
nameGap- gap to set in pixels
-
getNameRotate
@Nullable Integer getNameRotate()- Returns:
- rotate degree of axis name
-
setNameRotate
Sets a rotate degree of axis name or replaces an existing one.- Parameters:
nameRotate- rotate degree to set
-
getInverse
@Nullable Boolean getInverse()- Returns:
trueif the axis is inverted,falseotherwise
-
setInverse
Sets the inversion for the axis or replaces an existing one.- Parameters:
inverse- whether to inverse axis
-
withName
- Parameters:
name- axis name to set- Returns:
- this
- See Also:
-
withNameLocation
- Parameters:
nameLocation- location to set- Returns:
- this
- See Also:
-
withNameTextStyle
- Parameters:
nameTextStyle- text style to set- Returns:
- this
- See Also:
-
withNameGap
- Parameters:
nameGap- gap to set in pixels- Returns:
- this
- See Also:
-
withNameRotate
- Parameters:
nameRotate- rotate degree to set- Returns:
- this
- See Also:
-
withInverse
- Parameters:
inverse- whether to inverse axis- Returns:
- this
- See Also:
-