JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class PolygonChain

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

public class PolygonChain
extends Object
implements Serializable

Data structure internal to JClass Chart 3D. Represents a list of points that define the line segments of a contour line.

See Also:
Serialized Form

Field Summary
protected  double cValue
          Contoured value (zone data).
static int MAX_CHAIN_SIZE
          There is a most a two-point PChain for each corner, and a PChain being filled (8 pts.
protected  com.klg.jclass.chart3d.PolygonChain next
          Next one in chain.
protected  int xPixel
          The X pixel value.
protected  int yPixel
          The Y pixel value.
protected  double zValue
          The Z value corresponding to this point (elevation data).
 
Method Summary
 double getCValue()
          Gets the contoured value.
 com.klg.jclass.chart3d.PolygonChain getNext()
          Getd the next polygon in this chain.
 int getXPixel()
          Retrieves the x pixel value for this point.
 int getYPixel()
          Retrieves the y pixel value for this point.
protected  double getZValue()
          Gets the z value.
protected  void setCValue(double cValue)
          Sets the contoured value.
protected  void setNext(com.klg.jclass.chart3d.PolygonChain next)
          Setd the reference to the next polygon in this chain.
protected  void setValues(int xPixel, int yPixel, double zValue, double cValue)
          Sets all four values at once.
protected  void setXPixel(int xPixel)
          Sets the x pixel value for this point.
protected  void setYPixel(int yPixel)
          Sets the x pixel value for this point.
protected  void setZValue(double zValue)
          Sets the z value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_CHAIN_SIZE

public static final int MAX_CHAIN_SIZE
There is a most a two-point PChain for each corner, and a PChain being filled (8 pts. max), for a maximum total of 16 points. We make it 20 to be safe.

See Also:
Constant Field Values

xPixel

protected int xPixel
The X pixel value.


yPixel

protected int yPixel
The Y pixel value.


zValue

protected double zValue
The Z value corresponding to this point (elevation data).


cValue

protected double cValue
Contoured value (zone data).


next

protected com.klg.jclass.chart3d.PolygonChain next
Next one in chain.

Method Detail

setValues

protected void setValues(int xPixel,
                         int yPixel,
                         double zValue,
                         double cValue)
Sets all four values at once.

Parameters:
xPixel -
yPixel -
zValue -
cValue -

setXPixel

protected void setXPixel(int xPixel)
Sets the x pixel value for this point.

Parameters:
xPixel -

getXPixel

public int getXPixel()
Retrieves the x pixel value for this point.


setYPixel

protected void setYPixel(int yPixel)
Sets the x pixel value for this point.

Parameters:
yPixel -

getYPixel

public int getYPixel()
Retrieves the y pixel value for this point.


setZValue

protected void setZValue(double zValue)
Sets the z value.

Parameters:
zValue -

getZValue

protected double getZValue()
Gets the z value.


setCValue

protected void setCValue(double cValue)
Sets the contoured value.

Parameters:
cValue -

getCValue

public double getCValue()
Gets the contoured value.


setNext

protected void setNext(com.klg.jclass.chart3d.PolygonChain next)
Setd the reference to the next polygon in this chain.

Parameters:
next -

getNext

public com.klg.jclass.chart3d.PolygonChain getNext()
Getd the next polygon in this chain.


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