Package jcckit.plot
Class CartesianCoordinateSystem
java.lang.Object
jcckit.plot.CartesianCoordinateSystem
- All Implemented Interfaces:
CoordinateSystem
A Cartesian coordinate system. One or both axes can be logarithmic.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCartesianCoordinateSystem
(GraphPoint origin, AxisParameters xAxisParameters, AxisParameters yAxisParameters) Creates an instance for the specified origin and parameters of both axes.Creates an instance from the specified configuration parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the clipping rectangle of specified by the axis.Returns the transformation of data coordinates into the device-independent coordinates of the axis box.getView()
Returns the graphical representation of the coordinate system.
-
Field Details
-
ORIGIN_KEY
Configuration parameter key.- See Also:
-
X_AXIS_KEY
Configuration parameter key.- See Also:
-
Y_AXIS_KEY
Configuration parameter key.- See Also:
-
-
Constructor Details
-
CartesianCoordinateSystem
Creates an instance from the specified configuration parameters.Key & Default Value Type Mandatory Description origin = 0.15, 0.1 double[] no Position (in device-independent coordinates) of the lower-left corner of the axis box. xAxis ConfigParameters no Parameters defining the x-axis. For definitions and default values see AxisParameters.createXAxis()
.yAxis ConfigParameters no Parameters defining the y-axis. For definitions and default values see AxisParameters.createYAxis()
. -
CartesianCoordinateSystem
public CartesianCoordinateSystem(GraphPoint origin, AxisParameters xAxisParameters, AxisParameters yAxisParameters) Creates an instance for the specified origin and parameters of both axes.- Parameters:
origin
- Position (in device-independent coordinates) of the lower-left corner of the axis box.xAxisParameters
- Parameters of the x-axis.yAxisParameters
- Parameters of the y-axis.
-
-
Method Details
-
getView
Returns the graphical representation of the coordinate system. In each call the same instance is returned.- Specified by:
getView
in interfaceCoordinateSystem
-
getClippingShape
Returns the clipping rectangle of specified by the axis. In each call the same instance is returned.- Specified by:
getClippingShape
in interfaceCoordinateSystem
-
getTransformation
Returns the transformation of data coordinates into the device-independent coordinates of the axis box. In each call the same instance is returned.- Specified by:
getTransformation
in interfaceCoordinateSystem
-