JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart3d
Class GridRegion

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

public class GridRegion
extends Object
implements Serializable

Data structure internal to JCChart3d. Used to define nine regions within a grid. In each of the X and Y directions there is a left, center, and right region, with the center being of length 1 (the intersection of the X and Y center is the grid facet where the eye is located). If the eye is outside of grid (in one or both directions), some of the regions may be empty (note that at least one region must be non-empty).

See Also:
Serialized Form

Field Summary
protected  com.klg.jclass.chart3d.DrawGrid drawGrid
          Parent draw object
static int REGION_1
           
static int REGION_2
           
static int REGION_3
           
static int REGION_4
           
static int REGION_5
           
static int REGION_6
           
static int REGION_7
           
static int REGION_8
           
static int REGION_9
           
protected  int xBegin
          Starting offset into x grid array
protected  int xEnd
          Ending offset into x grid array
protected  int xEye
          Eye position in x grid array
protected  int xLeft
          Ending offset left of eye in x grid array
protected  int xRight
          Starting offset right of eye in x grid array
protected  int yBegin
          Starting offset into y grid array
protected  int yEnd
          Ending offset into y grid array
protected  int yEye
          Eye position in y grid array
protected  int yLeft
          Ending offset left of eye in y grid array
protected  int yRight
          Starting offset right of eye in y grid array
 
Method Summary
protected  void calcRegions()
           
protected  com.klg.jclass.chart3d.DrawGrid getDrawGrid()
           
 int getRegion(int x, int y)
           
protected  int getXBegin()
           
protected  int getXEnd()
           
protected  int getXEye()
           
protected  int getXLeft()
           
protected  int getXRight()
           
protected  int getYBegin()
           
protected  int getYEnd()
           
protected  int getYEye()
           
protected  int getYLeft()
           
protected  int getYRight()
           
protected  void setDrawGrid(com.klg.jclass.chart3d.DrawGrid drawGrid)
           
protected  void setXBegin(int xBegin)
           
protected  void setXEnd(int xEnd)
           
protected  void setXEye(int xEye)
           
protected  void setXLeft(int xLeft)
           
protected  void setXRight(int xRight)
           
protected  void setYBegin(int yBegin)
           
protected  void setYEnd(int yEnd)
           
protected  void setYEye(int yEye)
           
protected  void setYLeft(int yLeft)
           
protected  void setYRight(int yRight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGION_1

public static final int REGION_1
See Also:
Constant Field Values

REGION_2

public static final int REGION_2
See Also:
Constant Field Values

REGION_3

public static final int REGION_3
See Also:
Constant Field Values

REGION_4

public static final int REGION_4
See Also:
Constant Field Values

REGION_5

public static final int REGION_5
See Also:
Constant Field Values

REGION_6

public static final int REGION_6
See Also:
Constant Field Values

REGION_7

public static final int REGION_7
See Also:
Constant Field Values

REGION_8

public static final int REGION_8
See Also:
Constant Field Values

REGION_9

public static final int REGION_9
See Also:
Constant Field Values

xEye

protected int xEye
Eye position in x grid array


yEye

protected int yEye
Eye position in y grid array


xBegin

protected int xBegin
Starting offset into x grid array


yBegin

protected int yBegin
Starting offset into y grid array


xLeft

protected int xLeft
Ending offset left of eye in x grid array


yLeft

protected int yLeft
Ending offset left of eye in y grid array


xRight

protected int xRight
Starting offset right of eye in x grid array


yRight

protected int yRight
Starting offset right of eye in y grid array


xEnd

protected int xEnd
Ending offset into x grid array


yEnd

protected int yEnd
Ending offset into y grid array


drawGrid

protected com.klg.jclass.chart3d.DrawGrid drawGrid
Parent draw object

Method Detail

getDrawGrid

protected com.klg.jclass.chart3d.DrawGrid getDrawGrid()

setDrawGrid

protected void setDrawGrid(com.klg.jclass.chart3d.DrawGrid drawGrid)

getXEye

protected int getXEye()

setXEye

protected void setXEye(int xEye)

getYEye

protected int getYEye()

setYEye

protected void setYEye(int yEye)

getXBegin

protected int getXBegin()

setXBegin

protected void setXBegin(int xBegin)

getYBegin

protected int getYBegin()

setYBegin

protected void setYBegin(int yBegin)

getXLeft

protected int getXLeft()

setXLeft

protected void setXLeft(int xLeft)

getYLeft

protected int getYLeft()

setYLeft

protected void setYLeft(int yLeft)

getXRight

protected int getXRight()

setXRight

protected void setXRight(int xRight)

getYRight

protected int getYRight()

setYRight

protected void setYRight(int yRight)

getXEnd

protected int getXEnd()

setXEnd

protected void setXEnd(int xEnd)

getYEnd

protected int getYEnd()

setYEnd

protected void setYEnd(int yEnd)

calcRegions

protected void calcRegions()

getRegion

public int getRegion(int x,
                     int y)

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