Interface Axis
- All Known Implementing Classes:
DirectionlessAxis
,HorizontalAxis
,VerticalAxis
public interface Axis
Interface for classes representing chart axes.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setLabeler
(Function<Double, String> labeler) Set labeler, which transforms values to labels.void
setOffsets
(double xOffset, double yOffset) Set offsets within the container.void
setPositioningScale
(FunctionScale positioningScale) Set scale for positioning labels.void
Update axis labels.
-
Method Details
-
updateLabels
void updateLabels()Update axis labels. -
setOffsets
void setOffsets(double xOffset, double yOffset) Set offsets within the container.- Parameters:
xOffset
- x offsetyOffset
- y offset
-
setPositioningScale
Set scale for positioning labels.- Parameters:
positioningScale
- positioning scale
-
setLabeler
Set labeler, which transforms values to labels.- Parameters:
labeler
- labeler function
-