JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class Extents

java.lang.Object
  |
  +--com.klg.jclass.chart3d.Extents
All Implemented Interfaces:
Serializable

public class Extents
extends Object
implements Serializable

Class internal to JClass Chart 3D. Used to store the extents in the x, y, and z direction of something.

See Also:
Serialized Form

Field Summary
protected  double xMax
          The current x maximum extents
protected  double xMin
          The current x minimum extents
protected  double yMax
          The current y maximum extents
protected  double yMin
          The current y minimum extents
protected  double zMax
          The current z maximum extents
protected  double zMin
          The current z minimum extents
 
Constructor Summary
Extents()
          Null constructor.
Extents(double xMin, double xMax, double yMin, double yMax)
          Constructor that intializes the x and y extents.
Extents(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
          Constructor that intializes the x, y and z extents
 
Method Summary
protected  void checkXExtents(double x)
          Extends the extents in the x direction based on x.
protected  void checkXYExtents(double x, double y)
          Extends the extents in the x and/or y direction based on (x, y).
protected  void checkXYZExtents(double x, double y, double z)
          Extends the extents in the x, y and/or z direction based on (x, y, z).
protected  void checkYExtents(double y)
          Extends the extents in the y direction based on x.
protected  void checkZExtents(double z)
          Extends the extents in the z direction based on x.
protected  double getXMax()
          Gets the x maximum value for this extents object.
protected  double getXMin()
          Gets the x minimum value for this extents object.
protected  double getYMax()
          Gets the y maximum value for this extents object.
protected  double getYMin()
          Gets the y minimum value for this extents object.
protected  double getZMax()
          Gets the z maximum value for this extents object.
protected  double getZMin()
          Gets the z minimum value for this extents object.
protected  void setXMax(double xMax)
          Sets the x maximum value for this extents object.
protected  void setXMin(double xMin)
          Sets the x minimum value for this extents object.
protected  void setYMax(double yMax)
          Sets the y maximum value for this extents object.
protected  void setYMin(double yMin)
          Sets the y minimum value for this extents object.
protected  void setZMax(double zMax)
          Sets the z maximum value for this extents object.
protected  void setZMin(double zMin)
          Sets the z minimum value for this extents object.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

xMin

protected double xMin
The current x minimum extents


xMax

protected double xMax
The current x maximum extents


yMin

protected double yMin
The current y minimum extents


yMax

protected double yMax
The current y maximum extents


zMin

protected double zMin
The current z minimum extents


zMax

protected double zMax
The current z maximum extents

Constructor Detail

Extents

public Extents()
Null constructor. All values at default.


Extents

public Extents(double xMin,
               double xMax,
               double yMin,
               double yMax)
Constructor that intializes the x and y extents.

Parameters:
xMin - The initial x minimum
xMax - The initial x maximum
yMin - The initial y minimum
yMax - The initial y maximum

Extents

public Extents(double xMin,
               double xMax,
               double yMin,
               double yMax,
               double zMin,
               double zMax)
Constructor that intializes the x, y and z extents

Parameters:
xMin - The initial x minimum
xMax - The initial x maximum
yMin - The initial y minimum
yMax - The initial y maximum
zMin - The initial z minimum
zMax - The initial z maximum
Method Detail

getXMin

protected double getXMin()
Gets the x minimum value for this extents object.

Returns:
The current value of xMin

setXMin

protected void setXMin(double xMin)
Sets the x minimum value for this extents object.

Parameters:
xMin - The new value of xMin

getXMax

protected double getXMax()
Gets the x maximum value for this extents object.

Returns:
The current value of xMax

setXMax

protected void setXMax(double xMax)
Sets the x maximum value for this extents object.

Parameters:
xMax - The new value of xMax

getYMin

protected double getYMin()
Gets the y minimum value for this extents object.

Returns:
The current value of yMin

setYMin

protected void setYMin(double yMin)
Sets the y minimum value for this extents object.

Parameters:
yMin - The new value of yMin

getYMax

protected double getYMax()
Gets the y maximum value for this extents object.

Returns:
The current value of yMax

setYMax

protected void setYMax(double yMax)
Sets the y maximum value for this extents object.

Parameters:
yMax - The new value of yMax

getZMin

protected double getZMin()
Gets the z minimum value for this extents object.

Returns:
The current value of zMin

setZMin

protected void setZMin(double zMin)
Sets the z minimum value for this extents object.

Parameters:
zMin - The new value of zMin

getZMax

protected double getZMax()
Gets the z maximum value for this extents object.

Returns:
The current value of zMax

setZMax

protected void setZMax(double zMax)
Sets the z maximum value for this extents object.

Parameters:
zMax - The new value of zMax

checkXExtents

protected void checkXExtents(double x)
Extends the extents in the x direction based on x.

Parameters:
x - The x value to check

checkYExtents

protected void checkYExtents(double y)
Extends the extents in the y direction based on x.

Parameters:
y - The y value to check

checkZExtents

protected void checkZExtents(double z)
Extends the extents in the z direction based on x.

Parameters:
z - The z value to check

checkXYExtents

protected void checkXYExtents(double x,
                              double y)
Extends the extents in the x and/or y direction based on (x, y).

Parameters:
x - The x value to check
y - The y value to check

checkXYZExtents

protected void checkXYZExtents(double x,
                               double y,
                               double z)
Extends the extents in the x, y and/or z direction based on (x, y, z).

Parameters:
x - The x value to check
y - The y value to check
z - The z value to check

toString

public String toString()
Overrides:
toString in class Object

Copyright © 2004 Quest Software Inc..
All rights reserved.