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
Modifier and TypeInterfaceDescriptionstatic enum
Predefined location for axis name.static class
Font text style of axis name. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
void
setInverse
(Boolean inverse) Sets the inversion for the axis or replaces an existing one.void
Sets an axis name or replaces an existing one.void
setNameGap
(Integer nameGap) Sets gap between axis name and axis line or replaces an existing one.void
setNameLocation
(HasAxisName.NameLocation nameLocation) Sets a location of axis name or replaces an existing one.void
setNameRotate
(Integer nameRotate) Sets a rotate degree of axis name or replaces an existing one.void
setNameTextStyle
(HasAxisName.NameTextStyle nameTextStyle) Sets a font text style of axis name or replaces an existing one.default T
withInverse
(Boolean inverse) default T
default T
withNameGap
(Integer nameGap) default T
withNameLocation
(HasAxisName.NameLocation nameLocation) default T
withNameRotate
(Integer nameRotate) default T
withNameTextStyle
(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:
true
if the axis is inverted,false
otherwise
-
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:
-