Interface IAxis
public interface IAxis
Minimal axis interface, inspired by org.eclipse.swtchart.IAxis
- Since:
- 6.0
- Author:
- Matthew Khouzam
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetDataCoordinate(int pixelCoordinate) Gets the data coordinate corresponding to the given pixel coordinate on plot area.intgetPixelCoordinate(double dataCoordinate) Gets the pixel coordinate corresponding to the given data coordinate.getRange()Gets the axis range.voidSets the axis range.
-
Method Details
-
getRange
AxisRange getRange()Gets the axis range.- Returns:
- the axis range
-
setRange
Sets the axis range.- Parameters:
range- the axis range
-
getPixelCoordinate
int getPixelCoordinate(double dataCoordinate) Gets the pixel coordinate corresponding to the given data coordinate.- Parameters:
dataCoordinate- the data coordinate- Returns:
- the pixel coordinate on plot area
-
getDataCoordinate
double getDataCoordinate(int pixelCoordinate) Gets the data coordinate corresponding to the given pixel coordinate on plot area.- Parameters:
pixelCoordinate- the pixel coordinate on plot area- Returns:
- the data coordinate
-