|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart3djava.ChartObj
com.quinncurtis.chart3djava.UserCoordinates
com.quinncurtis.chart3djava.WorldCoordinates
com.quinncurtis.chart3djava.WorkingCoordinates
com.quinncurtis.chart3djava.PhysicalCoordinates
com.quinncurtis.chart3djava.CartesianCoordinates
public class CartesianCoordinates
The CartesianCoordinates class extends the PhysicalCoordinates class to support linear-linear, linear-log, log-linear and log-log coordinate systems in an xy coordinate plane.
Field Summary |
---|
Constructor Summary | |
---|---|
CartesianCoordinates()
The default CartesianCoordinates constructor. |
|
CartesianCoordinates(double rX1,
double rY1,
double rX2,
double rY2)
This constructor creates a new CartesianCoordinates object using the specified minimum and maximum values for the x- and y-coordinate systems. |
|
CartesianCoordinates(double rX1,
double rY1,
double rZ1,
double rX2,
double rY2,
double rZ2)
This constructor creates a new CartesianCoordinates object using the specified minimum and maximum values for the x- and y-coordinate systems. |
|
CartesianCoordinates(int xscale,
int yscale)
This constructor creates a new CartesianCoordinates object, specifying either a linear or a logarithmic scale for both x- and y-coordinates. |
|
CartesianCoordinates(int xscale,
int yscale,
int zscale)
This constructor creates a new CartesianCoordinates object, specifying either a linear or a logarithmic scale for both x- and y-coordinates. |
Method Summary | |
---|---|
void |
autoScale(ChartDataset dataset)
This method initializes an CartesianCoordinates object based on the range ofx-, y- and z-values in the supplied dataset. |
void |
autoScale(ChartDataset[] datasets)
This method initializes an CartesianCoordinates object based on the range ofx-, y- and z-values in an array of datasets. |
void |
autoScale(ChartDataset[] datasets,
int nroundmodeX,
int nroundmodeY)
This method initializes an CartesianCoordinates object based on the range ofx-, y- and z-values in an array of datasets. |
void |
autoScale(ChartDataset[] datasets,
int nroundmodeX,
int nroundmodeY,
int nroundmodeZ)
This method initializes an CartesianCoordinates object based on the range ofx-, y- and z-values in an array of datasets. |
void |
autoScale(ChartDataset dataset,
int nroundmodeX,
int nroundmodeY)
This method initializes an CartesianCoordinates object based on the range ofx-, y- and z-values in the supplied dataset. |
void |
autoScale(ChartDataset dataset,
int nroundmodeX,
int nroundmodeY,
int nroundmodeZ)
This method initializes an CartesianCoordinates object based on the range ofx-, y- and z-values in the supplied dataset. |
void |
autoScale(int nroundmodeX,
int nroundmodeY)
This method initializes an CartesianCoordinates object, running the auto-axis algorithm on the current minimum and maximum scaling values. |
void |
autoScale(int nroundmodeX,
int nroundmodeY,
int nroundmodeZ)
This method initializes an CartesianCoordinates object, running the auto-axis algorithm on the current minimum and maximum scaling values. |
boolean |
checkValidPoint(double x,
double y)
This method checks the validity of the x-, y-values of a data point. |
boolean |
checkValidPoint(double x,
double y,
double z)
This method checks the validity of thex-, y- and z-values of a data point. |
java.lang.Object |
clone()
Returns an object that is a clone of this CartesianCoordinates object. |
void |
copy(CartesianCoordinates source)
Copies the source scale. |
void |
copy(java.lang.Object source)
Copies the source scale. |
int |
errorCheck(int nerror)
Checks the current coordinate system object for common errors. |
Axis |
getCompatibleAxis(int axis)
This method returns either a linear or a logarithmic axis object, compatible with the specified coordinate system (x, y, z). |
void |
setCartesianScaleTransforms(int xscale,
int yscale)
This method specifies either a linear or a logarithmic scale for both x- and y-coordinates. |
void |
setCartesianScaleTransforms(int xscale,
int yscale,
int zscale)
This method specifies either a linear or a logarithmic scale for both x- and y-coordinates. |
void |
setCartesianXScaleTransform(int xscale)
Sets the x-coordinate system to either linear or logarithmic. |
void |
setCartesianYScaleTransform(int yscale)
Sets the y-coordinate system to either linear or logarithmic. |
void |
setCartesianZScaleTransform(int zscale)
Sets the z-coordinate system to either linear or logarithmic. |
Methods inherited from class com.quinncurtis.chart3djava.WorldCoordinates |
---|
copy, GetWorldCurrentPos, getWorldX1, getWorldX2, getWorldY1, getWorldY2, getWorldZ1, getWorldZ2, setWorldScale, setWorldScale, userToWorld, userToWorld, userToWorld, userToWorld, userToWorldAbsX, userToWorldAbsY, userToWorldAbsZ, userToWorldRelX, userToWorldRelY, userToWorldRelZ, worldToUser, WorldToUser, worldToUser, worldToUserAbsX, worldToUserAbsY, worldToUserAbsZ, worldToUserRelX, worldToUserRelY, worldToUserRelZ |
Methods inherited from class com.quinncurtis.chart3djava.ChartObj |
---|
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CartesianCoordinates()
public CartesianCoordinates(int xscale, int yscale)
xscale
- Sets the x-coordinate system to either linear or logarithmic scaling. Use one of the
scaling constants: LINEAR_SCALE or LOG_SCALE.yscale
- Sets the y-coordinate system to either linear or logarithmic scaling. Use one of the
scaling constants: LINEAR_SCALE or LOG_SCALE.public CartesianCoordinates(int xscale, int yscale, int zscale)
xscale
- Sets the x-coordinate system to either linear or logarithmic scaling. Use one of the
scaling constants: LINEAR_SCALE or LOG_SCALE.yscale
- Sets the y-coordinate system to either linear or logarithmic scaling. Use one of the
scaling constants: LINEAR_SCALE or LOG_SCALE.zscale
- Sets the z-coordinate system to either linear or logarithmic scaling. Use one of the
scaling constants: LINEAR_SCALE or LOG_SCALE.public CartesianCoordinates(double rX1, double rY1, double rZ1, double rX2, double rY2, double rZ2)
rX1
- Sets the lower left x-value for the plotting area physical coordinate system.rY1
- Sets the lower left y-value for the plotting area physical coordinate system.rZ1
- Sets the lower left z-value for the plotting area physical coordinate system.rX2
- Sets the upper right x-value for the plotting area physical coordinate system.rY2
- Sets the upper right y-value for the plotting area physical coordinate system.rZ2
- Sets the upper right z-value for the plotting area physical coordinate system.public CartesianCoordinates(double rX1, double rY1, double rX2, double rY2)
rX1
- Sets the lower left x-value for the plotting area physical coordinate system.rY1
- Sets the lower left y-value for the plotting area physical coordinate system.rX2
- Sets the upper right x-value for the plotting area physical coordinate system.rY2
- Sets the upper right y-value for the plotting area physical coordinate system.Method Detail |
---|
public int errorCheck(int nerror)
errorCheck
in class PhysicalCoordinates
nerror
- Current error state.
public void copy(CartesianCoordinates source)
source
- The source coordinate system object.public void copy(java.lang.Object source)
copy
in class PhysicalCoordinates
source
- The source coordinate system object.public java.lang.Object clone()
clone
in class WorkingCoordinates
public void setCartesianXScaleTransform(int xscale)
xscale
- Sets the x-coordinate system to either linear or logarithmic scaling. Use one of the
scaling constants: LINEAR_SCALE or LOG_SCALE.public void setCartesianYScaleTransform(int yscale)
yscale
- Sets the y-coordinate system to either linear or logarithmic scaling. Use one
of the scaling constants: LINEAR_SCALE or LOG_SCALE.public void setCartesianZScaleTransform(int zscale)
zscale
- Sets the z-coordinate system to either linear or logarithmic scaling. Use one
of the scaling constants: LINEAR_SCALE or LOG_SCALE.public void setCartesianScaleTransforms(int xscale, int yscale, int zscale)
xscale
- Sets the x-coordinate system to either linear or logarithmic scaling. Use one
of the scaling constants: LINEAR_SCALE or LOG_SCALE.yscale
- Sets the y-coordinate system to either linear or logarithmic scaling. Use one
of the scaling constants: LINEAR_SCALE or LOG_SCALE.zscale
- Sets the z-coordinate system to either linear or logarithmic scaling. Use one
of the scaling constants: LINEAR_SCALE or LOG_SCALE.public void setCartesianScaleTransforms(int xscale, int yscale)
xscale
- Sets the x-coordinate system to either linear or logarithmic scaling. Use one
of the scaling constants: LINEAR_SCALE or LOG_SCALE.yscale
- Sets the y-coordinate system to either linear or logarithmic scaling. Use one
of the scaling constants: LINEAR_SCALE or LOG_SCALE.public Axis getCompatibleAxis(int axis)
getCompatibleAxis
in class PhysicalCoordinates
axis
- Specify the coordinate direction, either x, y or z, using one of the axis constants:
X_AXIS, Y_AXIS or Z_AXIS.
public void autoScale(int nroundmodeX, int nroundmodeY, int nroundmodeZ)
autoScale
in class PhysicalCoordinates
nroundmodeX
- Sets the auto-scale mode for the x-coordinate. Use one of the
auto-scale rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.nroundmodeY
- Sets the auto-scale mode for the y-coordinate. Use one of the
auto-scale rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.nroundmodeZ
- Sets the auto-scale mode for the z-coordinate. Use one of the
auto-scale rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.public void autoScale(int nroundmodeX, int nroundmodeY)
autoScale
in class PhysicalCoordinates
nroundmodeX
- Sets the auto-scale mode for the x-coordinate. Use one of the
auto-scale rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.nroundmodeY
- Sets the auto-scale mode for the y-coordinate. Use one of the
auto-scale rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.public void autoScale(ChartDataset dataset, int nroundmodeX, int nroundmodeY, int nroundmodeZ)
autoScale
in class PhysicalCoordinates
dataset
- The dataset used as the basis for the new coordinate system.nroundmodeX
- Sets the auto-scale mode for the x-coordinate. Use one of the auto-scale
rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.nroundmodeY
- Sets the auto-scale mode for the y-coordinate. Use one of the auto-scale
rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.nroundmodeZ
- Sets the auto-scale mode for the z-coordinate. Use one of the auto-scale
rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.public void autoScale(ChartDataset dataset, int nroundmodeX, int nroundmodeY)
autoScale
in class PhysicalCoordinates
dataset
- The dataset used as the basis for the new coordinate system.nroundmodeX
- Sets the auto-scale mode for the x-coordinate. Use one of the auto-scale
rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.nroundmodeY
- Sets the auto-scale mode for the y-coordinate. Use one of the auto-scale
rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.public void autoScale(ChartDataset dataset)
autoScale
in class PhysicalCoordinates
dataset
- The dataset used as the basis for the new coordinate system.public void autoScale(ChartDataset[] datasets, int nroundmodeX, int nroundmodeY, int nroundmodeZ)
autoScale
in class PhysicalCoordinates
datasets
- The array of dataset used as the basis for the new coordinate system.nroundmodeX
- Sets the auto-scale mode for the x-coordinate. Use one of the auto-scale
rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.nroundmodeY
- Sets the auto-scale mode for the y-coordinate. Use one of the auto-scale
rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.nroundmodeZ
- Sets the auto-scale mode for the z-coordinate. Use one of the auto-scale
rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.public void autoScale(ChartDataset[] datasets, int nroundmodeX, int nroundmodeY)
autoScale
in class PhysicalCoordinates
datasets
- The array of dataset used as the basis for the new coordinate system.nroundmodeX
- Sets the auto-scale mode for the x-coordinate. Use one of the auto-scale
rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.nroundmodeY
- Sets the auto-scale mode for the y-coordinate. Use one of the auto-scale
rounding mode constants:AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT.public void autoScale(ChartDataset[] datasets)
autoScale
in class PhysicalCoordinates
datasets
- The datasets array.public boolean checkValidPoint(double x, double y, double z)
checkValidPoint
in class PhysicalCoordinates
x
- The x-value of the data point that is checked.y
- The y-value of the data point that is checked.z
- The z-value of the data point that is checked.
public boolean checkValidPoint(double x, double y)
checkValidPoint
in class PhysicalCoordinates
x
- The x-value of the data point that is checked.y
- The y-value of the data point that is checked.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |