|
|||||||||
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
public class WorkingCoordinates
This class maps a working coordinate system onto the world coordinate system of the underlying WorldCoordinates object. All coordinates are specified in world coordinates.
Field Summary |
---|
Constructor Summary | |
---|---|
WorkingCoordinates()
The default WorkingCoordinates constructor. |
|
WorkingCoordinates(double rX1,
double rY1,
double rZ1,
double rX2,
double rY2,
double rZ2)
This constructor creates a new WorkingCoordinates object using the specified minimum and maximum values for the x- and y-axis. |
Method Summary | |
---|---|
void |
absRotateCoordinateSystem(ChartPoint3D rotate)
Set absolute the rotational state of the coordinate system. |
void |
absRotateCoordinateSystem(ChartPoint3D translate,
ChartPoint3D rotate)
Set the absolute rotational and tranlational state of the coordinate system. |
void |
absTranslateCoordinateSystem(ChartPoint3D translate)
Set the absolute tranlational state of the coordinate system. |
void |
calcWorkingScale(ChartRectangle3D plotareascale)
This method defines the bounds of the working coordinate system, extending the working coordinate system defined for the plotting area to the entire graph area. |
java.lang.Object |
clone()
Returns an object that is a clone of this WorkingCoordinates object. |
void |
copy(WorkingCoordinates source)
Copies the source scale. |
int |
errorCheck(int nerror)
Checks the WorkingCoordinates object for common errors. |
int |
getClippingArea()
This method returns True if clipping to the plot area is currently on. |
ChartRectangle3D |
getGraphAreaScale()
Returns the working scale coordinates of the graph area. |
double |
getGraphAspectRatio()
This method returns the aspect ratio (H/W) of the graph area. |
ChartRectangle3D |
getGraphBorderFrame()
This method initializes the position and size of the plot area inside the graph area, specified using graph normalized coordinates. |
ChartRectangle3D |
getGraphRect()
This method returns the bounds of the graph area in window device coordinates. |
ChartRectangle3D |
getPlotAreaScale()
Returns the working scale coordinates of the plot area. |
ChartRectangle3D |
getPlotRect()
Calculates and returns the bounds of the plot area clipping rectangle using window device coordinates. |
ChartPoint3D |
getRotate3DTranformValues()
Get the current values of the x-, y- and z-rotational parameters. |
ChartPoint3D |
getTranslate3DTranformValues()
Get the current value of the transational parameters. |
double |
getWorkingRangeX()
This method returns the range of the current working scale of the graph area for the x-dimension. |
double |
getWorkingRangeY()
This method returns the range of the current working scale of the graph area for the y-dimension. |
double |
getWorkingRangeZ()
This method returns the range of the current working scale of the graph area for the z-dimension. |
void |
relRotateCoordinateSystem(ChartPoint3D rotate)
Incrementally rotate the state of the coordinate system. |
void |
relRotateCoordinateSystem(double degree,
int iAxis)
Incrementally rotate one axis of the coordinate system. |
void |
relTranslateCoordinateSystem(double offset,
int iAxis)
Incrementally translate one axis of the coordinate system. |
void |
reset3DTransform()
Reset the rotational and tranlational state of the coordinate system back to the default values: no rotation and centered in screen. |
void |
setClippingArea(int cliparea)
Sets the clipping mode. |
void |
setFixedGraphBorderInset(int border,
double bordervalue,
boolean enable)
This method initializes the inset of the plot area inside the graph area, specified using graph normalized coordinates. |
void |
setFixedGraphBorderInsets(double rLeft,
double rTop,
double rFront,
double rRight,
double rBottom,
double rRear,
boolean leftEnable,
boolean topEnable,
boolean frontEnable,
boolean rightEnable,
boolean bottomEnable,
boolean rearEnable)
This method initializes the inset of the plot area inside the graph area, specified using graph device coordinates. |
void |
setGraphBorderDiagonal(double rLeft,
double rTop,
double rRight,
double rBottom)
This method initializes the position and size of the plot area inside the graph area, specified using graph normalized coordinates. |
void |
setGraphBorderDiagonal(double rLeft,
double rTop,
double rFront,
double rRight,
double rBottom,
double rRear)
This method initializes the position and size of the plot area inside the graph area, specified using graph normalized coordinates. |
void |
setGraphBorderFrame(ChartRectangle3D border)
This method initializes the position and size of the plot area inside the graph area, specified using graph normalized coordinates. |
void |
setGraphBorderFrame(double rLeft,
double rTop,
double rFront,
double width,
double height,
double depth)
This method initializes the position and size of the plot area inside the graph area, specified using graph normalized coordinates. |
void |
setGraphBorderInsets(double rLeft,
double rTop,
double rRight,
double rBottom)
This method initializes the inset of the plot area inside the graph area, specified using graph normalized coordinates. |
void |
setGraphBorderInsets(double rLeft,
double rTop,
double rFront,
double rRight,
double rBottom,
double rRear)
This method initializes the inset of the plot area inside the graph area, specified using graph normalized coordinates. |
void |
setPlotAreaScale(ChartRectangle3D rect)
Sets the coordinates of the plot area. |
void |
setRotate3DTranformValues(ChartPoint3D value)
Set the current value of the rotational parameters. |
void |
setTranslate3DTranformValues(ChartPoint3D value)
Set the current value of the transational parameters. |
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 WorkingCoordinates()
public WorkingCoordinates(double rX1, double rY1, double rZ1, double rX2, double rY2, double rZ2)
rX1
- Sets the lower left x-value for the plotting area working coordinate system.rY1
- Sets the lower left y-value for the plotting area working coordinate system.rZ1
- Sets the lower left z-value for the plotting area working coordinate system.rX2
- Sets the upper right x-value for the plotting area working coordinate system.rY2
- Sets the upper right y-value for the plotting area working coordinate system.rZ2
- Sets the upper right z-value for the plotting area working coordinate system.Method Detail |
---|
public void reset3DTransform()
public void absRotateCoordinateSystem(ChartPoint3D translate, ChartPoint3D rotate)
translate
- Translate the coordinate system by this amount, using normalized (0.0 to 1.0) coordinates.rotate
- Rotate the coordinate system by this amount in absolute degrees.public void absRotateCoordinateSystem(ChartPoint3D rotate)
rotate
- Rotate the coordinate system by this amount in absolute degrees.public void absTranslateCoordinateSystem(ChartPoint3D translate)
translate
- Translate the coordinate system by this amount, using normalized (0.0 to 1.0) coordinates.public void relRotateCoordinateSystem(ChartPoint3D rotate)
rotate
- Rotate the coordinate system by this amount in relative degrees.public void relRotateCoordinateSystem(double degree, int iAxis)
degree
- Rotate the coordinate system by this amount in relative degrees.iAxis
- Rotate about this axis (X_AXIS, Y_AXIS or Z_AXIS).public void relTranslateCoordinateSystem(double offset, int iAxis)
offset
- Translate the coordinate system by this amount in normalized coordinates (0.0 to 1.0).iAxis
- Translate about this axis (X_AXIS, Y_AXIS or Z_AXIS).public int errorCheck(int nerror)
errorCheck
in class WorldCoordinates
nerror
- Current error state
public void copy(WorkingCoordinates source)
source
- The source scale object.public java.lang.Object clone()
clone
in class UserCoordinates
public void setClippingArea(int cliparea)
cliparea
- Use one of the cliparea constants: NO_CLIPPING,GRAPH_AREA_CLIPPING,
PLOT_AREA_CLIPPING, or INHERIT_CLIPPING.public void calcWorkingScale(ChartRectangle3D plotareascale)
plotareascale
- Specifies the coordinate values of the plot area.public ChartRectangle3D getPlotRect()
public ChartRectangle3D getGraphRect()
public double getGraphAspectRatio()
public void setGraphBorderFrame(ChartRectangle3D border)
border
- Specifies the rectangle defining the plot area border.public void setGraphBorderFrame(double rLeft, double rTop, double rFront, double width, double height, double depth)
rLeft
- The left x-position of the plotting area inside the graph area specified using graph
normalized coordinates.rTop
- The top y-position of the plotting area inside the graph area specified using graph
normalized coordinates.rFront
- The front z-position of the plotting area inside the graph area specified using graph
normalized coordinates.width
- The width of the plotting area inside the graph area specified using graph normalized
coordinates.height
- The height of the plotting area inside the graph area specified using graph normalized
coordinates.depth
- The depth of the plotting area inside the graph area specified using graph normalized
coordinates.public void setGraphBorderDiagonal(double rLeft, double rTop, double rFront, double rRight, double rBottom, double rRear)
rLeft
- The left x-position of the plotting area inside the graph area specified using graph
normalized coordinates.rTop
- The top y-position of the plotting area inside the graph area specified using graph
normalized coordinates.rFront
- The front z-position of the plotting area inside the graph area specified using graph
normalized coordinates.rRight
- The right x-position of the plotting area inside the graph area specified using
graph normalized coordinates.rBottom
- The bottom y-position of the plotting area inside the graph area specified using
graph normalized coordinates.rRear
- The rear z-position of the plotting area inside the graph area specified using
graph normalized coordinates.public void setGraphBorderDiagonal(double rLeft, double rTop, double rRight, double rBottom)
rLeft
- The left x-position of the plotting area inside the graph area specified using graph
normalized coordinates.rTop
- The top y-position of the plotting area inside the graph area specified using graph
normalized coordinates.rRight
- The right x-position of the plotting area inside the graph area specified using
graph normalized coordinates.rBottom
- The bottom y-position of the plotting area inside the graph area specified using
graph normalized coordinates.public void setGraphBorderInsets(double rLeft, double rTop, double rFront, double rRight, double rBottom, double rRear)
rLeft
- The left inset of the plotting area inside the graph area specified using graph
normalized coordinates.rTop
- The top inset of the plotting area inside the graph area specified using graph
normalized coordinates.rFront
- The front inset of the plotting area inside the graph area specified using graph
normalized coordinates.rRight
- The right inset of the plotting area inside the graph area specified using graph
normalized coordinates.rBottom
- The bottom inset of the plotting area inside the graph area specified using graph
normalized coordinates.rRear
- The rear inset of the plotting area inside the graph area specified using graph
normalized coordinates.public void setGraphBorderInsets(double rLeft, double rTop, double rRight, double rBottom)
rLeft
- The left inset of the plotting area inside the graph area specified using graph
normalized coordinates.rTop
- The top inset of the plotting area inside the graph area specified using graph
normalized coordinates.rRight
- The right inset of the plotting area inside the graph area specified using graph
normalized coordinates.rBottom
- The bottom inset of the plotting area inside the graph area specified using graph
normalized coordinates.public void setFixedGraphBorderInsets(double rLeft, double rTop, double rFront, double rRight, double rBottom, double rRear, boolean leftEnable, boolean topEnable, boolean frontEnable, boolean rightEnable, boolean bottomEnable, boolean rearEnable)
rLeft
- The left inset of the plotting area inside the graph area specified using graph
device coordinates.rTop
- The top inset of the plotting area inside the graph area specified using graph
device coordinates.rFront
- The front inset of the plotting area inside the graph area specified using graph
device coordinates.rRight
- The right inset of the plotting area inside the graph area specified using graph
device coordinates.rBottom
- The bottom inset of the plotting area inside the graph area specified using graph
device coordinates.rRear
- The rear inset of the plotting area inside the graph area specified using graph
device coordinates.leftEnable
- Use a fixed pixel border for this side.topEnable
- Use a fixed pixel border for this side.frontEnable
- Use a fixed pixel border for this side.rightEnable
- Use a fixed pixel border for this side.bottomEnable
- Use a fixed pixel border for this side.rearEnable
- Use a fixed pixel border for this side.public void setFixedGraphBorderInset(int border, double bordervalue, boolean enable)
border
- Set the value of this border for the plotting area. User one of the
border constants: LEFT_BORDER, TOP_BORDER, RIGHT_BORDER, BOTTOM_BORDER.bordervalue
- The left inset of the plotting area inside the graph area specified using graph
normalized coordinates.enable
- Enable this border for fixed borders.public double getWorkingRangeX()
public double getWorkingRangeY()
public double getWorkingRangeZ()
public int getClippingArea()
public ChartRectangle3D getPlotAreaScale()
public void setPlotAreaScale(ChartRectangle3D rect)
rect
- Sets the coordinates of the plot area.public ChartRectangle3D getGraphAreaScale()
public ChartRectangle3D getGraphBorderFrame()
public ChartPoint3D getRotate3DTranformValues()
public void setRotate3DTranformValues(ChartPoint3D value)
value
- Set the current values of the rotational parameters.public ChartPoint3D getTranslate3DTranformValues()
public void setTranslate3DTranformValues(ChartPoint3D value)
value
- Set the current value of the transational parameters.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |