public class CartesianCoordinateSystem extends Object implements CoordinateSystem
| Modifier and Type | Field and Description |
|---|---|
static String |
ORIGIN_KEY
Configuration parameter key.
|
static String |
X_AXIS_KEY
Configuration parameter key.
|
static String |
Y_AXIS_KEY
Configuration parameter key.
|
| Constructor and Description |
|---|
CartesianCoordinateSystem(ConfigParameters config)
Creates an instance from the specified configuration parameters.
|
CartesianCoordinateSystem(GraphPoint origin,
AxisParameters xAxisParameters,
AxisParameters yAxisParameters)
Creates an instance for the specified origin and parameters
of both axes.
|
| Modifier and Type | Method and Description |
|---|---|
ClippingShape |
getClippingShape()
Returns the clipping rectangle of specified by the axis.
|
Transformation |
getTransformation()
Returns the transformation of data coordinates into the device-independent
coordinates of the axis box.
|
GraphicalElement |
getView()
Returns the graphical representation of the coordinate system.
|
public static final String ORIGIN_KEY
public static final String X_AXIS_KEY
public static final String Y_AXIS_KEY
public CartesianCoordinateSystem(ConfigParameters config)
| 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(). |
public CartesianCoordinateSystem(GraphPoint origin, AxisParameters xAxisParameters, AxisParameters yAxisParameters)
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.public GraphicalElement getView()
getView in interface CoordinateSystempublic ClippingShape getClippingShape()
getClippingShape in interface CoordinateSystempublic Transformation getTransformation()
getTransformation in interface CoordinateSystemCopyright © 2016. All Rights Reserved.