|
|||||||||
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
public abstract class PhysicalCoordinates
The PhysicalCoordinates class is the abstract base class for all physical coordinate systems used to plot objects in a graph. It uses installable scale objects for x- and y-coordinates scales, so that the x and y coordinate systems do not have to be the same.
Field Summary |
---|
Constructor Summary | |
---|---|
PhysicalCoordinates()
The default PhysicalCoordinates constructor. |
|
PhysicalCoordinates(ChartScale xscale,
ChartScale yscale)
This constructor creates a new PhysicalCoordinates object, specifying the ChartScale objects used to transform x- and y-values to/from physical to working coordinates. |
|
PhysicalCoordinates(ChartScale xscale,
ChartScale yscale,
ChartScale zscale)
This constructor creates a new PhysicalCoordinates object, specifying the ChartScale objects used to transform x- and y-values to/from physical to working coordinates. |
Method Summary | |
---|---|
abstract void |
autoScale(ChartDataset dataset)
This method initializes an TimeCoordinates object based on the range of x- and y-values in the supplied TimeSimpleDataset object. |
abstract void |
autoScale(ChartDataset[] datasets)
This method initializes an TimeCoordinates object based on the range of x- and y-values in an array of TimeSimpleDataset datasets. |
abstract void |
autoScale(ChartDataset[] datasets,
int nroundmodex,
int nroundmodey)
This method initializes an TimeCoordinates object based on the range of x- and y-values in an array of TimeSimpleDataset datasets. |
abstract void |
autoScale(ChartDataset[] datasets,
int nroundmodex,
int nroundmodey,
int nroundmodez)
This method initializes an TimeCoordinates object based on the range of x- and y-values in an array of TimeSimpleDataset datasets. |
abstract void |
autoScale(ChartDataset dataset,
int nroundmodex,
int nroundmodey)
This method initializes an TimeCoordinates object based on the range of x- and y-values in the supplied TimeSimpleDataset object. |
abstract void |
autoScale(ChartDataset dataset,
int nroundmodex,
int nroundmodey,
int nroundmodez)
This method initializes an TimeCoordinates object based on the range of x- and y-values in the supplied TimeSimpleDataset object. |
abstract void |
autoScale(int nroundmodeX,
int nroundmodeY)
This abstract method auto-scales the current physical coordinates system, using the current physical coordinate values as the starting point. |
abstract void |
autoScale(int nroundmodeX,
int nroundmodeY,
int nroundmodeZ)
This abstract method auto-scales the current physical coordinates system, using the current physical coordinate values as the starting point. |
void |
chartTransform(java.awt.Graphics2D g2)
This method establishes a physical coordinate system for the current viewport, mapping the physical coordinate system to the viewport. |
abstract boolean |
checkValidPoint(double x,
double y)
This method checks the validity of the x- and y-values of a datapoint. |
abstract boolean |
checkValidPoint(double x,
double y,
double z)
This method checks the validity of the x- and y-values of a datapoint. |
boolean |
clampPointToPlane(ChartPoint3D[] p,
int coordtype)
Clamp an array of points to the limits associated with the specified coordinate system. |
boolean |
clampPointToPlane(int plane,
ChartPoint3D p,
int clipcoords)
Clamp the x, y or z-value of a ChartPoint3D object to the value of the associated plane. |
boolean |
clampPointToPlane(Point3DArray parray,
int coordtype)
Clamp an array of points to the limits associated with the specified coordinate system. |
void |
convertCoord(ChartPoint3D dest,
int ndestpostype,
ChartPoint3D source,
int nsrcpostype)
This method converts the coordinates of a point from one coordinate system to another. |
ChartPoint3D |
convertCoord(int ndestpostype,
ChartPoint3D source,
int nsrcpostype)
This method converts the coordinates of a point from one coordinate system to another. |
void |
convertCoordArray(ChartPoint3D[] dest,
int ndestpostype,
ChartPoint3D[] source,
int nsrcpostype,
int n)
This method converts an array of points from one coordinate system to another. |
void |
convertDimension(ChartDimension3D dest,
int ndestpostype,
ChartDimension3D source,
int nsrcpostype)
This method converts width and height dimensions from one coordinate system to another. |
ChartDimension3D |
convertDimension(int ndestpostype,
ChartDimension3D source,
int nsrcpostype)
This method converts width and height dimensions from one coordinate system to another. |
java.awt.geom.GeneralPath |
convertPointListToGeneralPath(ChartPoint3D[] p)
Converts an array of ChartPoint3D objects to GeneralPath object. |
void |
convertRect(ChartRectangle3D dest,
int ndestpostype,
ChartRectangle3D source,
int nsrcpostype)
This method converts ChartRectangle3D object from one coordinate system to another. |
ChartRectangle3D |
convertRect(int ndestpostype,
ChartRectangle3D source,
int nsrcpostype)
This method converts ChartRectangle3D object from one coordinate system to another. |
abstract void |
copy(java.lang.Object source)
This abstract method copies the source scale. |
void |
copy(PhysicalCoordinates source)
Copies the source coordinate system. |
boolean |
cullRearFacingPolygon(Polygon3D polygon)
Remove rear facing polygons of a solid that cannot be seen anyway. |
PolygonList |
draw2DRectangle3D(double x1,
double y1,
double z1,
double w,
double h,
double d,
int plane,
ChartAttribute attribx,
int coordtype)
This creates a PolygonList object, representing a 3D rectangle, defined using physical coordinates. |
PolygonList |
draw2DTriangle3D(double x1,
double y1,
double z1,
double w,
double h,
double d,
int plane,
ChartAttribute attribx,
int coordtype)
This creates a PolygonList object, representing a 3D rectangle, defined using physical coordinates. |
PolygonList |
drawFilledRibbonSurface(ChartPoint3D[] solid,
double fillbasevalue,
ChartAttribute attrib,
int coordtype,
int seriespos)
Creates the polygon that represents one segment of a ribbon plot. |
PolygonList |
drawFilledStackedRibbonSurface(ChartPoint3D[] solid,
double z1,
double z2,
ChartAttribute attrib,
int coordtype,
boolean bottom,
boolean top,
boolean left,
boolean right)
Creates the polygon the represents one segment of a filled, stacked, ribbon plot. |
PolygonList |
drawPrism3D(double x,
double y,
double z,
double width,
double height,
double depth,
ChartAttribute attrib,
int coordtype)
Creates the solid that represents a prism (3D rectangular) object. |
PolygonList |
drawRibbonSurface(ChartPoint3D[] solid,
ChartAttribute attribx,
int coordtype)
Creates the polygon the represents one segment of a ribbon plot. |
PolygonList |
drawSolidObject3D(ChartPoint3D[] solid,
ChartAttribute attribx,
boolean[] sides,
int coordtype)
Generic solid routine that returns a PolygonList representing the solid. |
int |
errorCheck(int nerror)
Checks the current scale object for common errors. |
PolygonList |
flexCone(double x,
double y,
double z,
double r,
double height,
double angleinc,
int orient,
int justifycenter,
ChartAttribute cylinderattrib,
int coordtype,
boolean arcorrection,
boolean bottomflag)
Creates the solid that represents a cone shapped object. |
PolygonList |
flexCylinder(double x,
double y,
double z,
double r,
double height,
double angleinc,
int orient,
int justifycenter,
ChartAttribute cylinderattrib,
int coordtype,
boolean arcorrection)
Creates the solid that represents a cylinder shapped object. |
PolygonList |
flexCylinder(double x,
double y,
double z,
double r,
double height,
double angleinc,
int orient,
int justifycenter,
ChartAttribute cylinderattrib,
int coordtype,
boolean arcorrection,
boolean topflag,
boolean bottomflag)
Creates the solid that represents a cylinder shapped object. |
abstract Axis |
getCompatibleAxis(int axis)
This abstract method returns an axis compatible with the current physical coordinate system. |
boolean |
getNormYDown()
A flag the sets the direction of the y-value in normalized coordinates. |
ChartRectangle3D |
getPhysPlotScale()
This method returns the physical coordinates of the plotting area. |
double |
getScaleMaxX()
Get the maximum x-value for the plotting area of the physical coordinate system. |
double |
getScaleMaxY()
Get the maximum y-value for the plotting area of the physical coordinate system. |
double |
getScaleMaxZ()
Get the maximum z-value for the plotting area of the physical coordinate system. |
double |
getScaleMinX()
Get the minimum x-value for the plotting area of the physical coordinate system. |
double |
getScaleMinY()
Get the minimum y-value for the plotting area of the physical coordinate system. |
double |
getScaleMinZ()
Get the minimum z-value for the plotting area of the physical coordinate system. |
double |
getScaleStartX()
This method returns the lower left x-value for the plotting area of the physical coordinate system. |
double |
getScaleStartY()
This method returns the lower left y-value for the plotting area of the physical coordinate system. |
double |
getScaleStartZ()
This method returns the lower left z-value for the plotting area of the physical coordinate system. |
double |
getScaleStopX()
This method returns the upper right x-value for the plotting area of the physical coordinate system. |
double |
getScaleStopY()
This method returns the upper right y-value for the plotting area of the physical coordinate system. |
double |
getScaleStopZ()
This method returns the upper right z-value for the plotting area of the physical coordinate system. |
double |
getStart(int naxis)
This method returns the lower left x-, y-, or z-value for the physical coordinate system of the plotting area. |
double |
getStartX()
This method returns the lower left x-value for the physical coordinate system of the plotting area. |
double |
getStartY()
This method returns the lower left y-value for the physical coordinate system of the plotting area. |
double |
getStartZ()
This method returns the lower left z-value for the physical coordinate system of the plotting area. |
double |
getStop(int naxis)
This method returns the upper right x-, y-, or z-value for the physical coordinate system of the plotting area. |
double |
getStopX()
This method returns the upper right x-value for the physical coordinate system of the plotting area. |
double |
getStopY()
This method returns the upper right y-value for the physical coordinate system of the plotting area. |
double |
getStopZ()
This method returns the upper right z-value for the physical coordinate system of the plotting area. |
double |
getStringX(java.awt.Graphics2D g2,
java.lang.String s,
int npostype)
This method returns the width of a string in the units of the specified coordinate system. |
double |
getStringY(java.awt.Graphics2D g2,
java.lang.String s,
int npostype)
This method returns the height of a string in the units of the specified coordinate system. |
java.awt.geom.Arc2D |
getWCircle(double x,
double y,
double z,
double radius)
This method converts a circle from physical coordinates to window device coordinates. |
ChartScale |
getXScale()
This method returns the xScale scaling object, the ChartScale object used to transform x-values to/from physical to working coordinates. |
ChartScale |
getYScale()
This method returns the yScale scaling object, the ChartScale object used to transform y-values to/from physical to working coordinates. |
ChartScale |
getZScale()
This method returns the zScale scaling object, the ChartScale object used to transform z-values to/from physical to working coordinates. |
void |
invertScaleX()
This method swaps the minimum x-value of the coordinate system with the maximum x-value; the y-values of the coordinate system remain unchanged. |
void |
invertScaleY()
This method swaps the minimum y-value of the coordinate system with the maximum y-value; the x-values of the coordinate system remain unchanged. |
void |
invertScaleZ()
This method swaps the minimum z-value of the coordinate system with the maximum z-value; the x-values of the coordinate system remain unchanged. |
boolean |
isPolygonClockwise()
Checks for a scale inversion which changes the logic used for culling rear-facing polgyons. |
boolean |
isScaleInverted(int axis)
Returns true if the specified axis is inverted. |
void |
normalizePoint(ChartPoint3D dest,
ChartPoint3D source,
int nmode)
This method converts the coordinates of a point from physical coordinates to normalized coordinates. |
ChartPoint3D |
normalizePoint(ChartPoint3D source,
int nmode)
This method converts the coordinates of a point from physical coordinates to normalized coordinates. |
ChartDimension3D |
normalizeRect(double w,
double h,
double d,
int nmode)
This method returns the normalized width and height of a rectangle, using the specified graph area physical coordinate system range. |
double |
physAddX(double x,
double increment)
This method adds an increment to the x-coordinate value in physical coordinates. |
double |
physAddY(double y,
double increment)
This method adds an increment to the y-coordinate value in physical coordinates. |
double |
physAddZ(double z,
double increment)
This method adds an increment to the z-coordinate value in physical coordinates. |
ChartPoint3D |
physToUser(ChartPoint3D source)
This method converts a point from physical coordinates to window device coordinates. |
void |
physToUser(ChartPoint3D dest,
ChartPoint3D source)
This method converts a point from physical coordinates to window device coordinates. |
double |
physToUserX(double x)
This method converts an x-coordinate value from physical coordinates to a window device coordinates. |
double |
physToUserY(double y)
This method converts an y-coordinate value from physical coordinates to window device coordinates. |
double |
physToUserZ(double z)
This method converts an z-coordinate value from physical coordinates to window device coordinates. |
void |
physToWorkingScale(ChartPoint3D dest,
ChartPoint3D source)
This method converts a point from physical coordinates to working coordinates. |
double |
physToWorkingScale(int axis,
double v)
This method converts an x- or y-coordinate from physical coordinates to working coordinates. |
PolygonList |
pieWedge3D(double x,
double y,
double z,
double r,
double depth,
double start,
double extent,
double angleinc,
ChartAttribute wedgeattrib,
boolean firstside,
boolean secondside,
int coordtype)
Creates the solid that represents a 3D pie chart wedge. |
PolygonList |
pieWedge3D2(double x,
double y,
double z,
double r,
double depth,
double start,
double extent,
double angleinc,
ChartAttribute wedgeattrib,
boolean firstside,
boolean secondside,
int coordtype,
boolean arcorrection)
Creates the solid that represents a disk shapped object. |
void |
polyFillAbs3D(java.awt.Graphics2D g2,
ChartPoint3D[] p)
Draws a a filled polygon using the currentAttributes property. |
boolean |
scaleInverted(int axis)
It is possible for the x-scale, or the y-scale, or both, to be inverted. |
void |
segmentedPolyline(java.awt.Graphics2D g2,
int[] xarray,
int[] yarray,
int n)
This method converts the specified x- and y-arrays to device coordinates, and draws the resulting line as a polyline. |
void |
setCoordinateBounds(double rX1,
double rY1,
double rX2,
double rY2)
Sets the x- and y-coordinate bounds of the physical coordinate system for the plot area. |
void |
setCoordinateBounds(double rX1,
double rY1,
double rZ1,
double rX2,
double rY2,
double rZ2)
Sets the x- and y-coordinate bounds of the physical coordinate system for the plot area. |
void |
setNormYDown(boolean value)
A flag the sets the direction of the y-value in normalized coordinates. |
void |
setPhysPlotScale(ChartRectangle3D physrect)
Sets the physical coordinates of the plotting area. |
void |
setPhysScale(ChartRectangle3D rect)
This method initializes an PhysicalCoordinates object using the specified minimum and maximum values for the x- and y-axis. |
void |
setPhysScale(double rX1,
double rY1,
double rX2,
double rY2)
This method initializes an PhysicalCoordinates object using the specified minimum and maximum values for the x- and y-axis. |
void |
setPhysScale(double rX1,
double rY1,
double rZ1,
double rX2,
double rY2,
double rZ2)
This method initializes an PhysicalCoordinates object using the specified minimum and maximum values for the x- and y-axis. |
void |
setPhysScales(ChartScale xscale,
ChartScale yscale,
ChartScale zscale)
This method initializes an PhysicalCoordinates object, specifying the ChartScale objects used to transform x- and y-values to/from physical to working coordinates. |
void |
setScaleStartX(double rX1)
Sets the lower left x-value for the plotting area of the physical coordinate system. |
void |
setScaleStartY(double rY1)
Sets the lower left y-value for the plotting area of the physical coordinate system. |
void |
setScaleStartZ(double rZ1)
Sets the lower left z-value for the plotting area of the physical coordinate system. |
void |
setScaleStopX(double rX2)
Sets the maximum x-value for the plotting area of the physical coordinate system. |
void |
setScaleStopY(double rY2)
Sets the upper right y-value for the plotting area of the physical coordinate system. |
void |
setScaleStopZ(double rZ2)
Sets the upper right z-value for the plotting area of the physical coordinate system. |
void |
setScaleX(double rX1,
double rX2)
Sets the x-coordinate bounds of the physical coordinate system for the plot area. |
void |
setScaleY(double rY1,
double rY2)
Sets the y-coordinate bounds of the physical coordinate system for the plot area. |
void |
setScaleZ(double rZ1,
double rZ2)
Sets the z-coordinate bounds of the physical coordinate system for the plot area. |
void |
setXScale(ChartScale xscale)
This method initializes the xScale scaling object, specifying the ChartScale object used to transform x-values to/from physical to working coordinates. |
void |
setYScale(ChartScale yscale)
This method initializes the yScale scaling object, specifying the ChartScale object used to transform y-values to/from physical to working coordinates. |
void |
setZScale(ChartScale zscale)
This method initializes the zScale scaling object, specifying the ChartScale object used to transform z-values to/from physical to working coordinates. |
PolygonList |
sphere(double x,
double y,
double z,
double r,
double angleinc,
ChartAttribute cylinderattrib,
int coordtype,
boolean arcorrection)
Creates the solid that represents a sphere shapped object. |
void |
swapScaleOrientation()
This method swaps the minimum x-value of the coordinate system with the minimum y-value; and the maximum x-value with the maximum y-value. |
Polygon3D |
transformPolygon(Polygon3D polygon)
Transforms a Polygon3D object to Screen Coordinates. |
void |
unNormalizePoint(ChartPoint3D dest,
ChartPoint3D source,
int nmode)
This method converts the coordinates of a point from normalized coordinates to physical coordinates. |
ChartPoint3D |
unNormalizePoint(ChartPoint3D source,
int nmode)
This method converts the coordinates of a point from normalized coordinates to physical coordinates. |
void |
unNormalizeRect(ChartDimension3D dest,
double w,
double h,
double d,
int nmode)
This method converts a rectangles normalized width and height into physical coordinates. |
ChartDimension3D |
unNormalizeRect(double w,
double h,
double d,
int nmode)
This method converts a rectangles normalized width and height into physical coordinates. |
ChartPoint3D |
userToPhys(ChartPoint3D source)
This method converts a point from window device coordinates to physical coordinates. |
void |
userToPhys(ChartPoint3D dest,
ChartPoint3D source)
This method converts a point from window device coordinates to physical coordinates. |
double |
userToPhysX(double x)
This method converts an x-coordinate value from window device coordinates to physical coordinates. |
double |
userToPhysY(double y)
This method converts an y-coordinate value from window device coordinates to physical coordinates. |
double |
userToPhysZ(double z)
This method converts an z-coordinate value from window device coordinates to physical coordinates. |
void |
wCircle(java.awt.geom.GeneralPath path,
double x,
double y,
double z,
double radius)
This method adds a circle, defined using physical coordinates, to the specified path. |
void |
wLineAbs(java.awt.geom.GeneralPath path,
ChartPoint3D p1,
ChartPoint3D p2)
This method converts the specified starting and ending x- and y-coordinates to device coordinates, and adds a corresponding line segment to the specified path. |
void |
wLineAbs(java.awt.geom.GeneralPath path,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
This method converts the specified starting and ending x- and y-coordinates to device coordinates, and adds a corresponding line segment to the specified path. |
void |
wLineAbs(java.awt.Graphics2D g2,
java.awt.geom.GeneralPath path,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
This method converts the specified starting and ending x- and y-coordinates to device coordinates, and adds a corresponding line segment to the specified path. |
void |
wLineAbs(java.awt.Graphics2D g2,
java.awt.geom.GeneralPath path,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
boolean dodraw,
boolean appendpath)
This method converts the specified starting and ending x- and y-coordinates to device coordinates, and adds a corresponding line segment to the specified path. |
void |
wLineRel(java.awt.geom.GeneralPath path,
double deltax,
double deltay,
double deltaz)
This method implements a relative lineto operation using physical coordinates. |
void |
wLineToAbs(java.awt.geom.GeneralPath path,
double x,
double y,
double z)
This method converts the specified x- and y-coordinates to device coordinates, and adds a corresponding lineto segment to the specified path. |
void |
wMoveToAbs(java.awt.geom.GeneralPath path,
double x,
double y,
double z)
This method converts the specified x- and y-coordinates to device coordinates, and adds a corresponding move segment to the specified path. |
void |
workingToPhysScale(ChartPoint3D dest,
ChartPoint3D source)
This method converts a point from working coordinates to physical coordinates. |
double |
workingToPhysScale(int axis,
double v)
This method converts an x- or y-coordinate from working coordinates to physical coordinates. |
void |
wPolyLineAbs(java.awt.geom.GeneralPath path,
ChartPoint3D[] p,
int numdat,
int stepmode)
This method adds multiple line segments, defined using physical coordinates, to the specified path. |
void |
wPolyLineAbs(java.awt.geom.GeneralPath path,
double[] x,
double[] y,
double[] z,
int numdat,
int stepmode)
This method adds multiple line segments, defined using physical coordinates, to the specified path. |
void |
wPolyLineAbs(java.awt.geom.GeneralPath path,
double[] x,
double[] y,
int numdat,
int stepmode)
This method adds multiple line segments, defined using physical coordinates, to the specified path. |
void |
wPolyLineAbs(java.awt.geom.GeneralPath path,
DoubleArray x,
DoubleArray y,
DoubleArray z,
int stepmode)
This method adds multiple line segments, defined using physical coordinates, to the specified path. |
void |
wPolyLineAbs(java.awt.Graphics2D g2,
double[] x,
double[] y,
double[] z,
int n,
int stepmode)
This method converts the specified x- and y-arrays to device coordinates, and draws the resulting line as a polyline. |
void |
wPolyLineAbs(java.awt.Graphics2D g2,
DoubleArray x,
DoubleArray y,
DoubleArray z,
int stepmode)
This method converts the specified x- and y-arrays to device coordinates, and draws the resulting line as a polyline. |
void |
wRectangle(java.awt.geom.GeneralPath path,
double x1,
double y1,
double z1,
double w,
double h,
double d)
This method adds a rectangle, defined using physical coordinates, to the specified path. |
void |
wRoundedRectangle(java.awt.geom.GeneralPath path,
double x1,
double y1,
double z1,
double w,
double h,
double d,
double corner)
This method adds a rectangle, defined using physical coordinates, to the specified path. |
void |
wStepLineAbs(java.awt.geom.GeneralPath path,
ChartPoint3D p1,
ChartPoint3D p2,
int stepmode)
This method converts the specified x- and y-coordinates to device coordinates, and adds corresponding lineto segments to the specified path. |
void |
wStepLineAbs(java.awt.geom.GeneralPath path,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
int stepmode)
This method converts the specified x- and y-coordinates to device coordinates, and adds corresponding lineto segments to the specified path. |
void |
wStepLineToAbs(java.awt.geom.GeneralPath path,
ChartPoint3D p1,
int stepmode)
This method converts the specified x- and y-coordinates to device coordinates, and adds corresponding lineto segments to the specified path. |
void |
wStepLineToAbs(java.awt.geom.GeneralPath path,
double x2,
double y2,
double z2,
int stepmode)
This method converts the specified x- and y-coordinates to device coordinates, and adds corresponding lineto segments to the specified path. |
void |
wTriangle(java.awt.geom.GeneralPath path,
double x1,
double y1,
double z1,
double w,
double h,
double d,
int dir)
This method adds a rectangle, defined using physical coordinates, to the specified path. |
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 PhysicalCoordinates()
public PhysicalCoordinates(ChartScale xscale, ChartScale yscale)
xscale
- Sets the ChartScale object used to transform x-values to/from physical to working coordinates.yscale
- Sets the ChartScale object used to transform y-values to/from physical to working coordinates.public PhysicalCoordinates(ChartScale xscale, ChartScale yscale, ChartScale zscale)
xscale
- Sets the ChartScale object used to transform x-values to/from physical to working coordinates.yscale
- Sets the ChartScale object used to transform y-values to/from physical to working coordinates.zscale
- Sets the ChartScale object used to transform z-values to/from physical to working coordinates.Method Detail |
---|
public int errorCheck(int nerror)
errorCheck
in class WorkingCoordinates
nerror
- Current error state
public void copy(PhysicalCoordinates source)
source
- The source scale object.public void setPhysScales(ChartScale xscale, ChartScale yscale, ChartScale zscale)
xscale
- Sets the ChartScale object used to transform x-values to/from physical to working coordinates.yscale
- Sets the ChartScale object used to transform y-values to/from physical to working coordinates.zscale
- Sets the ChartScale object used to transform z-values to/from physical to working coordinates.public void setXScale(ChartScale xscale)
xscale
- Sets the ChartScale object used to transform x-values to/from physical to working coordinates.public void setYScale(ChartScale yscale)
yscale
- Sets the ChartScale object used to transform y-values to/from physical to working coordinates.public void setZScale(ChartScale zscale)
zscale
- Sets the ChartScale object used to transform z-values to/from physical to working coordinates.public ChartScale getXScale()
public ChartScale getYScale()
public ChartScale getZScale()
public void setPhysScale(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 x-value for the plotting area physical coordinate system.public void setPhysScale(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.public void setPhysScale(ChartRectangle3D rect)
rect
- Sets the minimum and maximum x- and y-values. The ChartRectangle3D object actually holds
the minimum x- and y-values, and the width and height of the scale. The width and height values are added to the minimum x- and y-values in order to set the maximum x- and y-values.public boolean scaleInverted(int axis)
axis
- Specifies which coordinate to check.
public void physToWorkingScale(ChartPoint3D dest, ChartPoint3D source)
dest
- Returns the value of the point in working coordinates.source
- Specifies the value of the point in physical coordinates.public void workingToPhysScale(ChartPoint3D dest, ChartPoint3D source)
dest
- Returns the value of the point in physical coordinates.source
- Specifies the value of the point in working coordinates.public double physToWorkingScale(int axis, double v)
axis
- Specifies if the value being converted is an x-coordinate or y-coordinate. Use
either theX_AXIS orY_AXIS constant.v
- The coordinate value that is converted from physical coordinates to working coordinates.
public double workingToPhysScale(int axis, double v)
axis
- Specifies if the value being converted is an x-coordinate or y-coordinate. Use
either theX_AXIS orY_AXIS constant.v
- The coordinate value that is converted from working coordinates to physical coordinates.
public void chartTransform(java.awt.Graphics2D g2)
g2
- The graphics context.public ChartDimension3D normalizeRect(double w, double h, double d, int nmode)
w
- The width of the rectangle in physical coordinates.h
- The height of the rectangle in physical coordinates.d
- The depth of the rectangle in physical coordinates.nmode
- Use the constant NORM_GRAPH_POS if the rectangle is to be normalized using the
graph area, or NORM_PLOT_POS if the rectangle is to be normalized using the plot area.
public ChartDimension3D unNormalizeRect(double w, double h, double d, int nmode)
w
- The width of the rectangle in normalized coordinates.h
- The height of the rectangle in normalized coordinates.d
- The depth of the rectangle in normalized coordinates.nmode
- Use the constant NORM_GRAPH_POS if the rectangle is specified using graph area
normalized coordinates, or NORM_PLOT_POS if the rectangle is specified using plot area normalized coordinates.
public void unNormalizeRect(ChartDimension3D dest, double w, double h, double d, int nmode)
dest
- Returns the width and height of the rectangle in an ChartDimension3D object.w
- The width of the rectangle in normalized coordinates.h
- The height of the rectangle in normalized coordinates.d
- The depth of the rectangle in normalized coordinates.nmode
- Use the constant NORM_GRAPH_POS if the rectangle is specified using graph area
normalized coordinates, or NORM_PLOT_POS if the rectangle is specified using plot area normalized coordinates.public ChartPoint3D normalizePoint(ChartPoint3D source, int nmode)
source
- The coordinates of a point specified using physical coordinates.nmode
- Use the constant NORM_GRAPH_POS if the point is to be normalized using the
graph area, or NORM_PLOT_POS if the point is to be normalized using the plot area.
public void normalizePoint(ChartPoint3D dest, ChartPoint3D source, int nmode)
dest
- Returns the coordinates of the point in normalized coordinates.source
- The coordinates of a point specified using physical coordinates.nmode
- Use the constant NORM_GRAPH_POS if the point is to be normalized using the graph
area, or NORM_PLOT_POS if the point is to be normalized using the plot area.public ChartPoint3D unNormalizePoint(ChartPoint3D source, int nmode)
source
- The coordinates of a point specified using normalized coordinates.nmode
- Use the constant NORM_GRAPH_POS if the point is specified using graph area
normalized coordinates, or NORM_PLOT_POS if the point is specified using plot area normalized coordinates.
public void unNormalizePoint(ChartPoint3D dest, ChartPoint3D source, int nmode)
dest
- Returns the coordinates of the point in physical coordinates.source
- The coordinates of a point specified using normalized coordinates.nmode
- Use the constant NORM_GRAPH_POS if the point is specified using graph area
normalized coordinates, or NORM_PLOT_POS if the point is specified using plot area normalized coordinates.public ChartPoint3D convertCoord(int ndestpostype, ChartPoint3D source, int nsrcpostype)
ndestpostype
- Specifies the destination coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;source
- The coordinates of a the point that is to be converted.nsrcpostype
- Specifies the source coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;
public void convertCoordArray(ChartPoint3D[] dest, int ndestpostype, ChartPoint3D[] source, int nsrcpostype, int n)
dest
- An array of ChartPoint3D objects, of size n, that returns the converted coordinate values.ndestpostype
- Specifies the destination coordinate system. Use one of the coordinate
system constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;source
- An array of ChartPoint3D, of size n, that holds the points that are to be converted.nsrcpostype
- Specifies the source coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;n
- The number of points in source and destination arrays.public void convertCoord(ChartPoint3D dest, int ndestpostype, ChartPoint3D source, int nsrcpostype)
dest
- Returns the converted coordinate value as a ChartPoint3D object.ndestpostype
- Specifies the destination coordinate system. Use one of the coordinate
system constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;source
- The coordinates of a the point that is to be converted.nsrcpostype
- Specifies the source coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;public ChartDimension3D convertDimension(int ndestpostype, ChartDimension3D source, int nsrcpostype)
ndestpostype
- Specifies the destination coordinate system. Use one of the coordinate
system constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;source
- The width and height values that are to be converted.nsrcpostype
- Specifies the source coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;
public void convertDimension(ChartDimension3D dest, int ndestpostype, ChartDimension3D source, int nsrcpostype)
dest
- Returns the converted dimension values as an ChartDimension3D object.ndestpostype
- Specifies the destination coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;source
- The width and height values that are to be converted.nsrcpostype
- Specifies the source coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;public void convertRect(ChartRectangle3D dest, int ndestpostype, ChartRectangle3D source, int nsrcpostype)
dest
- Returns the converted ChartRectangle3D values.ndestpostype
- Specifies the destination coordinate system. Use one of the coordinate
system constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;source
- The source ChartRectangle3D object that is to be converted.nsrcpostype
- Specifies the source coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;public ChartRectangle3D convertRect(int ndestpostype, ChartRectangle3D source, int nsrcpostype)
ndestpostype
- Specifies the destination coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;source
- The source ChartRectangle3D object that is to be converted.nsrcpostype
- Specifies the source coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, POLAR_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;
public double getStringX(java.awt.Graphics2D g2, java.lang.String s, int npostype)
g2
- The graphics context.s
- The string the width is calculated for.npostype
- Specifies the coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;
public double getStringY(java.awt.Graphics2D g2, java.lang.String s, int npostype)
g2
- The graphics context.s
- The string the height is calculated for.npostype
- Specifies the coordinate system. Use one of the coordinate system
constants:DEV_POS,PHYS_POS, NORM_GRAPH_POS, or NORM_PLOT_POS;
public void wMoveToAbs(java.awt.geom.GeneralPath path, double x, double y, double z)
path
- A general path object.x
- A x-coordinate value in physical coordinates.y
- A y-coordinate value in physical coordinates.z
- A z-coordinate value in physical coordinates.public void wLineToAbs(java.awt.geom.GeneralPath path, double x, double y, double z)
path
- A general path object.x
- A x-coordinate value in physical coordinates.y
- A y-coordinate value in physical coordinates.z
- A z-coordinate value in physical coordinates.public void wLineAbs(java.awt.geom.GeneralPath path, double x1, double y1, double z1, double x2, double y2, double z2)
path
- A general path object.x1
- The starting x-coordinate value in physical coordinates.y1
- The starting y-coordinate value in physical coordinates.z1
- The starting z-coordinate value in physical coordinates.x2
- The ending x-coordinate value in physical coordinates.y2
- The ending y-coordinate value in physical coordinates.z2
- The ending z-coordinate value in physical coordinates.public void wLineAbs(java.awt.Graphics2D g2, java.awt.geom.GeneralPath path, double x1, double y1, double z1, double x2, double y2, double z2, boolean dodraw, boolean appendpath)
g2
- The graphics context.path
- A general path object.x1
- The starting x-coordinate value in physical coordinates.y1
- The starting y-coordinate value in physical coordinates.z1
- The starting z-coordinate value in physical coordinates.x2
- The ending x-coordinate value in physical coordinates.y2
- The ending y-coordinate value in physical coordinates.z2
- The ending z-coordinate value in physical coordinates.dodraw
- Draw the line segment immediately if true.appendpath
- Append the line segment to the path.public void wLineAbs(java.awt.Graphics2D g2, java.awt.geom.GeneralPath path, double x1, double y1, double z1, double x2, double y2, double z2)
g2
- The graphics context.path
- A general path object.x1
- The starting x-coordinate value in physical coordinates.y1
- The starting y-coordinate value in physical coordinates.z1
- The starting z-coordinate value in physical coordinates.x2
- The ending x-coordinate value in physical coordinates.y2
- The ending y-coordinate value in physical coordinates.z2
- The ending z-coordinate value in physical coordinates.public void wLineAbs(java.awt.geom.GeneralPath path, ChartPoint3D p1, ChartPoint3D p2)
path
- A general path object.p1
- The starting coordinate values in physical coordinates.p2
- The ending coordinate values in physical coordinates.public void wLineRel(java.awt.geom.GeneralPath path, double deltax, double deltay, double deltaz)
path
- A general path object.deltax
- An x-coordinate value in physical coordinates.deltay
- A y-coordinate value in physical coordinates.deltaz
- A z-coordinate value in physical coordinates.public void wStepLineToAbs(java.awt.geom.GeneralPath path, double x2, double y2, double z2, int stepmode)
path
- A general path object.x2
- A x-coordinate value in physical coordinates.y2
- A y-coordinate value in physical coordinates.z2
- A y-coordinate value in physical coordinates.stepmode
- The step mode for the connection line(s). Use one of the step line
constants: NO_STEP, STEP_START, STEP_END or STEP_NO_RISE_LINE.public void wStepLineToAbs(java.awt.geom.GeneralPath path, ChartPoint3D p1, int stepmode)
path
- A general path object.p1
- A point in physical coordinates.stepmode
- The step mode for the connection line(s). Use one of the step line constants:
NO_STEP, STEP_START, STEP_END or STEP_NO_RISE_LINE.public void wStepLineAbs(java.awt.geom.GeneralPath path, double x1, double y1, double z1, double x2, double y2, double z2, int stepmode)
path
- A general path object.x1
- The starting x-coordinate value in physical coordinates.y1
- The starting y-coordinate value in physical coordinates.z1
- The starting y-coordinate value in physical coordinates.x2
- The ending x-coordinate value in physical coordinates.y2
- The ending y-coordinate value in physical coordinates.z2
- The ending y-coordinate value in physical coordinates.stepmode
- The step mode for the connection line(s). Use one of the step line
constants: NO_STEP, STEP_START, STEP_END or STEP_NO_RISE_LINE.public void wStepLineAbs(java.awt.geom.GeneralPath path, ChartPoint3D p1, ChartPoint3D p2, int stepmode)
path
- A general path object.p1
- The starting coordinate values in physical coordinates.p2
- The ending coordinate values in physical coordinates.stepmode
- The step mode for the connection line(s). Use one of the step line
constants: NO_STEP, STEP_START, STEP_END or STEP_NO_RISE_LINE.public void wPolyLineAbs(java.awt.geom.GeneralPath path, double[] x, double[] y, double[] z, int numdat, int stepmode)
path
- The line segments are added to this path.x
- An array, size numdat, of x-values defining the endpoints of the line segments
that are added to the specified path.y
- An array, size numdat, of y-values defining the endpoints of the line segments
that are added to the specified path.z
- An array, size numdat, of z-values defining the endpoints of the line segments
that are added to the specified path.numdat
- The starting y-coordinate value of the line segment.stepmode
- The step mode for the connection line(s). Use one of the step line
constants: NO_STEP, STEP_START, STEP_END or STEP_NO_RISE_LINE.public void wPolyLineAbs(java.awt.geom.GeneralPath path, DoubleArray x, DoubleArray y, DoubleArray z, int stepmode)
path
- The line segments are added to this path.x
- An array, size numdat, of x-values defining the endpoints of the line segments
that are added to the specified path.y
- An array, size numdat, of y-values defining the endpoints of the line segments
that are added to the specified path.z
- An array, size numdat, of z-values defining the endpoints of the line segments
that are added to the specified path.stepmode
- The step mode for the connection line(s). Use one of the step line
constants: NO_STEP, STEP_START, STEP_END or STEP_NO_RISE_LINE.public void wPolyLineAbs(java.awt.geom.GeneralPath path, double[] x, double[] y, int numdat, int stepmode)
path
- The line segments are added to this path.x
- An array, size numdat, of x-values defining the endpoints of the line segments
that are added to the specified path.y
- An array, size numdat, of y-values defining the endpoints of the line segments
that are added to the specified path.numdat
- The starting y-coordinate value of the line segment.stepmode
- The step mode for the connection line(s). Use one of the step line
constants: NO_STEP, STEP_START, STEP_END or STEP_NO_RISE_LINE.public void wPolyLineAbs(java.awt.geom.GeneralPath path, ChartPoint3D[] p, int numdat, int stepmode)
path
- The line segments are added to this path.p
- An array, size numdat, of world coordinate points defining the endpoints of the line segmentsnumdat
- The starting y-coordinate value of the line segment.stepmode
- The step mode for the connection line(s). Use one of the step line
constants: NO_STEP, STEP_START, STEP_END or STEP_NO_RISE_LINE.public void wPolyLineAbs(java.awt.Graphics2D g2, double[] x, double[] y, double[] z, int n, int stepmode)
g2
- A graphics context.x
- A DoubleArray array of the x-values of the polygon path.y
- A DoubleArray array of the y-values of the polygon path.z
- A DoubleArray array of the z-values of the polygon path.n
- The number of data points in the x, y and z arrays.stepmode
- The step mode for the connection line(s). Use one of the step line
constants: NO_STEP, STEP_START, STEP_END or STEP_NO_RISE_LINE.public void wPolyLineAbs(java.awt.Graphics2D g2, DoubleArray x, DoubleArray y, DoubleArray z, int stepmode)
g2
- A graphics context.x
- A DoubleArray array of the x-values of the polygon path.y
- A DoubleArray array of the y-values of the polygon path.z
- A DoubleArray array of the z-values of the polygon path.stepmode
- The step mode for the connection line(s). Use one of the step line
constants: NO_STEP, STEP_START, STEP_END or STEP_NO_RISE_LINE.public void segmentedPolyline(java.awt.Graphics2D g2, int[] xarray, int[] yarray, int n)
g2
- The graphics contextxarray
- An array of x-values of the polyline path.yarray
- An array of y-values of the polyline path.n
- The number of points in the x and y arrays.public void wRectangle(java.awt.geom.GeneralPath path, double x1, double y1, double z1, double w, double h, double d)
path
- A general path object.x1
- A x-coordinate value in physical coordinates representing the lower left
corner of the rectangle.y1
- A y-coordinate value in physical coordinates rep resending the lower left
corner of the rectangle.z1
- A s-coordinate value in physical coordinates rep resending the lower left
corner of the rectangle.w
- The width of the rectangle in physical coordinates.h
- The height of the rectangle in physical coordinates.d
- The depth of the rectangle in physical coordinates.public void wTriangle(java.awt.geom.GeneralPath path, double x1, double y1, double z1, double w, double h, double d, int dir)
path
- A general path object.x1
- A x-coordinate value in physical coordinates representing the lower left
corner of the rectangle.y1
- A y-coordinate value in physical coordinates rep resending the lower left
corner of the rectangle.z1
- A s-coordinate value in physical coordinates rep resending the lower left
corner of the rectangle.w
- The width of the rectangle in physical coordinates.h
- The height of the rectangle in physical coordinates.d
- The depth of the rectangle in physical coordinates.dir
- Specifies which direction to draw triangle.public void wRoundedRectangle(java.awt.geom.GeneralPath path, double x1, double y1, double z1, double w, double h, double d, double corner)
path
- A general path object.x1
- A x-coordinate value in physical coordinates representing the lower left
corner of the rectangle.y1
- A y-coordinate value in physical coordinates rep resending the lower left
corner of the rectangle.z1
- A s-coordinate value in physical coordinates rep resending the lower left
corner of the rectangle.w
- The width of the rectangle in physical coordinates.h
- The height of the rectangle in physical coordinates.d
- The depth of the rectangle in physical coordinates.corner
- The corner radius of the rounded rectangle.public java.awt.geom.Arc2D getWCircle(double x, double y, double z, double radius)
x
- A x-coordinate value in physical coordinates representing the circle center.y
- A y-coordinate value in physical coordinates representing the circle center.z
- A z-coordinate value in physical coordinates representing the circle center.radius
- The radius of the circle in physical coordinates.
public void wCircle(java.awt.geom.GeneralPath path, double x, double y, double z, double radius)
path
- A general path object.x
- A x-coordinate value in physical coordinates representing the circle center.y
- A y-coordinate value in physical coordinates representing the circle center.z
- A z-coordinate value in physical coordinates representing the circle center.radius
- The radius of the circle in physical coordinates.public ChartRectangle3D getPhysPlotScale()
public void setPhysPlotScale(ChartRectangle3D physrect)
physrect
- Sets the physical coordinates of the plotting area.public double getStartX()
public double getStartY()
public double getStartZ()
public double getStopX()
public double getStopY()
public double getStopZ()
public double getStart(int naxis)
naxis
- Specify X_AXIS, Y_AXIS or Z_AXIS.
public double getStop(int naxis)
naxis
- Specify X_AXIS, Y_AXIS or Z_AXIS.
public double physToUserX(double x)
x
- The physical x-coordinate value that is converted to window device coordinates.
public double physToUserY(double y)
y
- The physical y-coordinate value that is converted to window device coordinates.
public double physToUserZ(double z)
z
- The physical z-coordinate value that is converted to window device coordinates.
public double userToPhysX(double x)
x
- The physical x-coordinate value that is converted to physical coordinates.
public double userToPhysY(double y)
y
- The physical y-coordinate value that is converted to physical coordinates.
public double userToPhysZ(double z)
z
- The physical z-coordinate value that is converted to physical coordinates.
public ChartPoint3D physToUser(ChartPoint3D source)
source
- The physical coordinates that are converted to window device coordinates.
public ChartPoint3D userToPhys(ChartPoint3D source)
source
- The window device coordinates that are converted to physical coordinates.
public void physToUser(ChartPoint3D dest, ChartPoint3D source)
source
- The physical coordinates that are converted to window device coordinates.dest
- Returns the point converted to window device coordinates .public void userToPhys(ChartPoint3D dest, ChartPoint3D source)
source
- The window device coordinates that are converted to physical coordinates.dest
- Returns the point converted to physical coordinates .public double physAddX(double x, double increment)
x
- The x-coordinate value that is incremented.increment
- The increment value.
public double physAddY(double y, double increment)
y
- The y-coordinate value that is incremented.increment
- The increment value.
public double physAddZ(double z, double increment)
z
- The z-coordinate value that is incremented.increment
- The increment value.
public void swapScaleOrientation()
public void invertScaleX()
public void invertScaleY()
public void invertScaleZ()
public abstract void autoScale(int nroundmodeX, int nroundmodeY)
nroundmodeX
- The x-coordinate values are calculated using this rounding mode
(AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT).nroundmodeY
- The y-coordinate values are calculated using this rounding mode
(AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT).public abstract void autoScale(int nroundmodeX, int nroundmodeY, int nroundmodeZ)
nroundmodeX
- The x-coordinate values are calculated using this rounding mode
(AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT).nroundmodeY
- The y-coordinate values are calculated using this rounding mode
(AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT).nroundmodeZ
- The z-coordinate values are calculated using this rounding mode
(AUTOAXES_FAR,AUTOAXES_NEAR,AUTOAXES_EXACT).public abstract boolean checkValidPoint(double x, double y)
x
- The x-value of the datapoint that is checked.y
- The y-value of the datapoint that is checked.
public abstract boolean checkValidPoint(double x, double y, double z)
x
- The x-value of the datapoint that is checked.y
- The y-value of the datapoint that is checked.z
- The z-value of the datapoint that is checked.
public abstract void copy(java.lang.Object source)
source
- The source scale object.public abstract Axis getCompatibleAxis(int axis)
axis
- Specifies which axis (X_AXIS, Y_AXIS, or Z_AXIS).
public void setScaleX(double rX1, double rX2)
rX1
- Sets the lower left x-value for the plotting area of the physical coordinate system.rX2
- Sets the upper right x-value for the plotting area of the physical coordinate system.public void setScaleY(double rY1, double rY2)
rY1
- Sets the lower left y-value for the plotting area of the physical coordinate system.rY2
- Sets the upper right y-value for the plotting area of the physical coordinate system.public void setScaleZ(double rZ1, double rZ2)
rZ1
- Sets the lower left z-value for the plotting area of the physical coordinate system.rZ2
- Sets the upper right z-value for the plotting area of the physical coordinate system.public void setCoordinateBounds(double rX1, double rY1, double rZ1, double rX2, double rY2, double rZ2)
rX1
- Sets the lower left x-value for the plotting area of the physical coordinate system.rY1
- Sets the lower left y-value for the plotting area of the physical coordinate system.rZ1
- Sets the lower left z-value for the plotting area of the physical coordinate system.rX2
- Sets the upper right x-value for the plotting area of the physical coordinate system.rY2
- Sets the upper right y-value for the plotting area of the physical coordinate system.rZ2
- Sets the upper right z-value for the plotting area of the physical coordinate system.public void setCoordinateBounds(double rX1, double rY1, double rX2, double rY2)
rX1
- Sets the lower left x-value for the plotting area of the physical coordinate system.rX2
- Sets the upper right x-value for the plotting area of the physical coordinate system.rY1
- Sets the lower left y-value for the plotting area of the physical coordinate system.rY2
- Sets the upper right y-value for the plotting area of the physical coordinate system.public void setScaleStartX(double rX1)
rX1
- Sets the lower left x-value for the plotting area of the physical coordinate system.public void setScaleStopX(double rX2)
rX2
- Sets the upper right x-value for the plotting area of the physical coordinate system.public void setScaleStartY(double rY1)
rY1
- Sets the lower left y-value for the plotting area of the physical coordinate system.public void setScaleStopY(double rY2)
rY2
- Sets the upper right y-value for the plotting area of the physical coordinate system.public void setScaleStartZ(double rZ1)
rZ1
- Sets the lower left z-value for the plotting area of the physical coordinate system.public void setScaleStopZ(double rZ2)
rZ2
- Sets the upper right z-value for the plotting area of the physical coordinate system.public double getScaleStartX()
public double getScaleStopX()
public double getScaleStartY()
public double getScaleStopY()
public double getScaleStartZ()
public double getScaleStopZ()
public boolean isScaleInverted(int axis)
axis
- Specifies the axis: X_AXIS, Y_AXIS or Z_AXIS
public double getScaleMaxX()
public double getScaleMinX()
public double getScaleMinY()
public double getScaleMaxY()
public double getScaleMinZ()
public double getScaleMaxZ()
public abstract void autoScale(ChartDataset dataset, int nroundmodex, int nroundmodey)
dataset
- The TimeSimpleDataset 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 abstract void autoScale(ChartDataset dataset, int nroundmodex, int nroundmodey, int nroundmodez)
dataset
- The TimeSimpleDataset 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 abstract void autoScale(ChartDataset dataset)
dataset
- The TimeSimpleDataset dataset used as the basis for the new coordinate system.public abstract void autoScale(ChartDataset[] datasets, int nroundmodex, int nroundmodey)
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 abstract void autoScale(ChartDataset[] datasets, int nroundmodex, int nroundmodey, int nroundmodez)
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 abstract void autoScale(ChartDataset[] datasets)
datasets
- The array of dataset used as the basis for the new coordinate system.public boolean getNormYDown()
public void setNormYDown(boolean value)
value
- True means that 0.0 is the upper left corner, false, lower left corner.public Polygon3D transformPolygon(Polygon3D polygon)
polygon
- A Polygon3D object.
public java.awt.geom.GeneralPath convertPointListToGeneralPath(ChartPoint3D[] p)
p
- An array of ChartPoint3D objects.
public void polyFillAbs3D(java.awt.Graphics2D g2, ChartPoint3D[] p)
g2
- The graphics context.p
- An array of ChartPoint3D objects.public boolean clampPointToPlane(int plane, ChartPoint3D p, int clipcoords)
plane
- The plane to clamp against: XY_MINZ_PLANE, XZ_MINY_PLANE, YZ_MINX_PLANE,
XY_MAXZ_PLANE, XZ_MAXY_PLANE, YZ_MAXX_PLANE.p
- A ChartPoint3D object.clipcoords
- Specifies if the coordinates are clamped against the Device (DEV_POS) or Screen (SCREEN_POS)
coordinates system.
public boolean clampPointToPlane(ChartPoint3D[] p, int coordtype)
p
- An array of ChartPoint3D objects.coordtype
- Specifies if the coordinates are in Device (DEV_POS) or Screen (SCREEN_POS)
coordinates.
public boolean clampPointToPlane(Point3DArray parray, int coordtype)
parray
- A Point3DArray object.coordtype
- Specifies if the coordinates are in Device (DEV_POS) or Screen (SCREEN_POS)
coordinates.
public PolygonList drawSolidObject3D(ChartPoint3D[] solid, ChartAttribute attribx, boolean[] sides, int coordtype)
solid
- An array of ChartPoint3D objects representing the corners of the solid.attribx
- The attributes of the solid.sides
- A set of flags specifying which sides should be included in the solid.coordtype
- Specifies the coordinate type.
public PolygonList drawRibbonSurface(ChartPoint3D[] solid, ChartAttribute attribx, int coordtype)
solid
- An array of ChartPoint3D objects representing the corners of the ribbon.attribx
- The attributes of the solid.coordtype
- Specifies the coordinate type.
public PolygonList draw2DRectangle3D(double x1, double y1, double z1, double w, double h, double d, int plane, ChartAttribute attribx, int coordtype)
x1
- A x-coordinate value in physical coordinates representing the lower left
corner of the rectangle.y1
- A y-coordinate value in physical coordinates rep resending the lower left
corner of the rectangle.z1
- A s-coordinate value in physical coordinates rep resending the lower left
corner of the rectangle.w
- The width of the rectangle in physical coordinates.h
- The height of the rectangle in physical coordinates.d
- The depth of the rectangle in physical coordinates.plane
- The plane of the rectangle.attribx
- The attributes of the solid.coordtype
- Specifies the coordinate type.
public PolygonList draw2DTriangle3D(double x1, double y1, double z1, double w, double h, double d, int plane, ChartAttribute attribx, int coordtype)
x1
- A x-coordinate value in physical coordinates representing the lower left
corner of the rectangle.y1
- A y-coordinate value in physical coordinates rep resending the lower left
corner of the rectangle.z1
- A s-coordinate value in physical coordinates rep resending the lower left
corner of the rectangle.w
- The width of the rectangle in physical coordinates.h
- The height of the rectangle in physical coordinates.d
- The depth of the rectangle in physical coordinates.plane
- The plane of the rectangle.attribx
- The attributes of the solid.coordtype
- Specifies the coordinate type.
public PolygonList drawFilledRibbonSurface(ChartPoint3D[] solid, double fillbasevalue, ChartAttribute attrib, int coordtype, int seriespos)
solid
- An array of ChartPoint3D objects representing the corners of the ribbon.fillbasevalue
- The value of the base of the filled ribbon.attrib
- The attributes of the solid.coordtype
- Specifies the coordinate type.seriespos
- Specifies if the segment is: FIRST_IN_SERIES, MIDDLE_OF_SERIES,
LAST_IN_SERIES.
public PolygonList drawFilledStackedRibbonSurface(ChartPoint3D[] solid, double z1, double z2, ChartAttribute attrib, int coordtype, boolean bottom, boolean top, boolean left, boolean right)
solid
- An array of ChartPoint3D objects representing the corners of the ribbon.z1
- The front z-value.z2
- The rear z-value.attrib
- The attributes of the solid.coordtype
- Specifies the coordinate type.bottom
- Set to true to draw the bottom of the solid.top
- Set to true to draw the top of the solid.left
- Set to true to draw the left of the solid.right
- Set to true to draw the right of the solid.
public PolygonList drawPrism3D(double x, double y, double z, double width, double height, double depth, ChartAttribute attrib, int coordtype)
x
- The x .y
- The rear z-value.z
- The rear z-value.width
- The width of the prism.height
- The height of the prism.depth
- The depth of the prism.attrib
- The attributes of the solid.coordtype
- Specifies the coordinate type.
public PolygonList pieWedge3D(double x, double y, double z, double r, double depth, double start, double extent, double angleinc, ChartAttribute wedgeattrib, boolean firstside, boolean secondside, int coordtype)
x
- The x-value of pie wedge center .y
- The y-value of pie wedge center .z
- The z-value of pie wedge center .r
- The radius of the pie wedge.depth
- The depth of the pie wedge.start
- The starting angle, in degrees, of the pie wedge.extent
- The angular extent of the pie wedge, in degrees.angleinc
- The angle increment used in drawing the curved surfaces of the pie wedge.wedgeattrib
- The attributes of the solid.firstside
- Set to true and the first side of the pie wedge is drawn.secondside
- Set to true and the second side of the pie wedge is drawn.coordtype
- Specifies the coordinate type.
public PolygonList pieWedge3D2(double x, double y, double z, double r, double depth, double start, double extent, double angleinc, ChartAttribute wedgeattrib, boolean firstside, boolean secondside, int coordtype, boolean arcorrection)
x
- The x-value of pie wedge center .y
- The y-value of pie wedge center .z
- The z-value of pie wedge center .r
- The radius of the pie wedge.depth
- The depth of the pie wedge.start
- The starting angle, in degrees, of the pie wedge.extent
- The angular extent of the pie wedge, in degrees.angleinc
- The angle increment used in drawing the curved surfaces of the pie wedge.wedgeattrib
- The attributes of the solid.firstside
- Set to true and the first side of the pie wedge is drawn.secondside
- Set to true and the second side of the pie wedge is drawn.coordtype
- Specifies the coordinate type.arcorrection
- Set to true if disk shaped to be auto-corrected for aspect ratio.
public PolygonList flexCylinder(double x, double y, double z, double r, double height, double angleinc, int orient, int justifycenter, ChartAttribute cylinderattrib, int coordtype, boolean arcorrection)
x
- The x-value of the cylinder.y
- The y-value of the cylinder.z
- The z-value of of the cylinder.r
- The radius of the cylinder.height
- The height of the cylinder.angleinc
- The angle increment used in drawing the curved surfaces of the cylinder.orient
- Vertical (VERT_DIR) or Horizontal (HORIZ_DIR)justifycenter
- Justify the cylinder with respect to x,y and z (JUSTIFY_MIN, JUSTIFY_MAX or JUSTIFY_CENTER)cylinderattrib
- The attributes of the solid.coordtype
- Specifies the coordinate type.arcorrection
- Set to true if disk shaped to be auto-corrected for aspect ratio.
public PolygonList flexCylinder(double x, double y, double z, double r, double height, double angleinc, int orient, int justifycenter, ChartAttribute cylinderattrib, int coordtype, boolean arcorrection, boolean topflag, boolean bottomflag)
x
- The x-value of the cylinder.y
- The y-value of the cylinder.z
- The z-value of of the cylinder.r
- The radius of the cylinder.height
- The height of the cylinder.angleinc
- The angle increment used in drawing the curved surfaces of the cylinder.orient
- Vertical (VERT_DIR) or Horizontal (HORIZ_DIR)justifycenter
- Justify the cylinder with respect to x,y and z (JUSTIFY_MIN, JUSTIFY_MAX or JUSTIFY_CENTER)cylinderattrib
- The attributes of the solid.coordtype
- Specifies the coordinate type.arcorrection
- Set to true if disk shaped to be auto-corrected for aspect ratio.topflag
- Set to true to draw top of cylinder.bottomflag
- Set to true to draw bottom of cylinder.
public PolygonList flexCone(double x, double y, double z, double r, double height, double angleinc, int orient, int justifycenter, ChartAttribute cylinderattrib, int coordtype, boolean arcorrection, boolean bottomflag)
x
- The x-value of the cylinder.y
- The y-value of the cylinder.z
- The z-value of of the cylinder.r
- The radius of the cylinder.height
- The height of the cylinder.angleinc
- The angle increment used in drawing the curved surfaces of the cylinder.orient
- Vertical (VERT_DIR) or Horizontal (HORIZ_DIR)justifycenter
- Justify the cylinder with respect to x,y and z (JUSTIFY_MIN, JUSTIFY_MAX or JUSTIFY_CENTER)cylinderattrib
- The attributes of the solid.coordtype
- Specifies the coordinate type.arcorrection
- Set to true if disk shaped to be auto-corrected for aspect ratio.bottomflag
- Set to true if the bottom of the cone is to be drawn.
public PolygonList sphere(double x, double y, double z, double r, double angleinc, ChartAttribute cylinderattrib, int coordtype, boolean arcorrection)
x
- The x-value of the sphere.y
- The y-value of the sphere.z
- The z-value of of the sphere.r
- The radius of the sphere.angleinc
- The angle increment used in drawing the curved surfaces of the sphere.cylinderattrib
- The attributes of the solid.coordtype
- Specifies the coordinate type.arcorrection
- Set to true if disk shaped to be auto-corrected for aspect ratio.
public boolean cullRearFacingPolygon(Polygon3D polygon)
polygon
- A polygon representing one side of a solid.
public boolean isPolygonClockwise()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |