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 TypeMethodDescriptiongetName()voidsetInverse(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
String getName()- Returns:
- axis name
-
setName
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
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
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
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
Sets a rotate degree of axis name or replaces an existing one.- Parameters:
nameRotate- rotate degree to set
-
getInverse
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:
-