|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.chart3d.JCGridLines
Specifies which gridlines are drawn for a given axis. This information
is specified on a plane by plane basis using a plane_mask
.
Field Summary | |
static int |
ALL_PLANES
All planes have been specified. |
protected com.klg.jclass.chart3d.JCAxis |
axis
The parent axis. |
protected Point4d |
data1
|
protected Point4d |
data2
|
protected com.klg.jclass.chart3d.JCLineStyle |
lineStyle
Gridline color, width, and pattern. |
static int |
NO_PLANE
No planes have been specified. |
protected int |
planeMask
The plane mask. |
static int |
XY_PLANE
The XY plane mask. |
static int |
XZ_PLANE
The XZ plane mask. |
static int |
YZ_PLANE
The YZ plane mask. |
Constructor Summary | |
JCGridLines()
Null constructor. |
|
JCGridLines(com.klg.jclass.chart3d.JCAxis axis,
int planeMask)
Constructor that specifies the axis and planeMask . |
|
JCGridLines(com.klg.jclass.chart3d.JCAxis axis,
int planeMask,
com.klg.jclass.chart3d.JCLineStyle lineStyle)
Constructor which specifies axis, planeMask , and
lineStyle . |
Method Summary | |
protected void |
drawGridFace(Graphics gc,
Matrix4d ctm,
int faceFlag,
Point3d facePoint)
Draws gridlines on a particular grid face (indicated by faceFlag ). |
protected void |
drawSingleGridLine(Graphics gc,
Matrix4d ctm,
double value,
int faceFlag,
Point3d facePoint)
Computes the end points of the gridline, and draws the gridline if the user has specifically asked for it to be drawn. |
com.klg.jclass.chart3d.JCAxis |
getAxis()
Gets the value of the Axis property. |
com.klg.jclass.chart3d.JCLineStyle |
getLineStyle()
Gets the JCLineStyle property, which controls how gridlines
are drawn. |
int |
getPlaneMask()
Returns the plane mask that determines on which plane(s) to draw gridlines. |
void |
setAxis(com.klg.jclass.chart3d.JCAxis axis)
Sets the value of the Axis property. |
protected void |
setChanged(boolean b,
int cf)
Tells the parent (if there is one) that a change has happened. |
void |
setLineStyle(com.klg.jclass.chart3d.JCLineStyle lineStyle)
Sets the JCLineStyle property, which controls how gridlines
are drawn. |
void |
setPlaneMask(int planeMask)
Sets the plane mask which determines on which plane(s) to draw gridlines. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NO_PLANE
public static final int XY_PLANE
public static final int XZ_PLANE
public static final int YZ_PLANE
public static final int ALL_PLANES
protected int planeMask
OR
of the three possible planes.
protected com.klg.jclass.chart3d.JCLineStyle lineStyle
protected com.klg.jclass.chart3d.JCAxis axis
protected Point4d data1
protected Point4d data2
Constructor Detail |
public JCGridLines()
NO_PLANES
and use
default line style.
public JCGridLines(com.klg.jclass.chart3d.JCAxis axis, int planeMask)
planeMask
.
axis
- the parent axisplaneMask
- mask which determines on which plane(s) to draw gridlinespublic JCGridLines(com.klg.jclass.chart3d.JCAxis axis, int planeMask, com.klg.jclass.chart3d.JCLineStyle lineStyle)
planeMask
, and
lineStyle
.
axis
- the parent axisplaneMask
- mask which determines on which plane(s) to draw gridlineslineStyle
- the lineStyle
for this set of gridlinesMethod Detail |
public int getPlaneMask()
OR
of XY_PLANE
,
XZ_PLANE
, and YZ_PLANE
, two of which make sense for
a given axis.
public void setPlaneMask(int planeMask)
OR
of XY_PLANE
,
XZ_PLANE
, and YZ_PLANE
, two of which make sense for
a given axis.
planeMask
- The new plane maskpublic com.klg.jclass.chart3d.JCLineStyle getLineStyle()
JCLineStyle
property, which controls how gridlines
are drawn.
JCLineStyle
instance representing the gridline
drawing stylepublic void setLineStyle(com.klg.jclass.chart3d.JCLineStyle lineStyle)
JCLineStyle
property, which controls how gridlines
are drawn.
lineStyle
- The new grid line style.public com.klg.jclass.chart3d.JCAxis getAxis()
Axis
property. The Axis
property specifies the axis associated with this gridline.
public void setAxis(com.klg.jclass.chart3d.JCAxis axis)
Axis
property. The Axis
axis
- The new axis associated with this gridlineprotected void setChanged(boolean b, int cf)
b
- Has anything changed?cf
- the change mask which tells what type of changeprotected void drawSingleGridLine(Graphics gc, Matrix4d ctm, double value, int faceFlag, Point3d facePoint)
gc
- the graphics object used for drawingctm
- the current transform matrix (determined by caller)value
- the value along the axis at which to drawfaceFlag
- which face to draw on for the parent axisfacePoint
- a representative point on the face which is being drawnprotected void drawGridFace(Graphics gc, Matrix4d ctm, int faceFlag, Point3d facePoint)
faceFlag
).
gc
- the graphics object used for drawingctm
- the current transform matrix (determined by caller)faceFlag
- which face to draw on for the parent axisfacePoint
- a representative point on the face which is being drawn
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |