|
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.DrawFacetAbstract
Abstract class that forms a basis for the DrawFacet??? classes. It contains polygon methods that draw, erase, or fill facets in various ways. The subclasses implement the abstract draw method and call the polygon methods in various ways to implement the look required (determined by the meshed, shaded, contoured, and zoned attributes).
Field Summary | |
protected com.klg.jclass.chart3d.DrawGrid |
drawGrid
Parent DrawGrid object. |
protected boolean |
drawMeshLine
If this facet has been triangularized, draw the mesh line for this facet? |
protected Graphics |
gc
The graphics context used. |
Method Summary | |
abstract void |
draw(int[] xPoints,
int[] yPoints,
int n,
int holeCode,
int x,
int y)
|
com.klg.jclass.chart3d.DrawGrid |
getDrawGrid()
Gets the drawGrid parent. |
boolean |
getDrawMeshLine()
Returns whether the mesh line get drawn for this facet. |
Graphics |
getGC()
Gets the graphics context used to draw this facet. |
void |
polyContours(int x,
int y)
|
void |
polyErase(int[] xPoints,
int[] yPoints,
int n,
int holeCode)
Erases the polygon represented by xPoints and yPoints . |
void |
polyFilled(int[] xPoints,
int[] yPoints,
int n,
int holeCode)
Fills the polygon represented by xPoints and yPoints . |
boolean |
polyFilledZones(int x,
int y)
|
void |
polyOutline(int[] xPoints,
int[] yPoints,
int n,
int holeCode,
int x,
int y)
Draws the outline of the polygon represented by xPoints and yPoints . |
boolean |
polyOutlineZones(int x,
int y)
|
void |
setDrawGrid(com.klg.jclass.chart3d.DrawGrid drawGrid)
Sets the drawGrid parent. |
void |
setDrawMeshLine(boolean drawMeshLine)
Sets whether the mesh line gets drawn for this facet. |
void |
setGC(Graphics gc)
Sets the graphics context used to draw this facet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.chart3d.DrawGrid drawGrid
protected transient Graphics gc
protected boolean drawMeshLine
Method Detail |
public void setDrawGrid(com.klg.jclass.chart3d.DrawGrid drawGrid)
drawGrid
parent.
setDrawGrid
in interface DrawFacet
drawGrid
- public com.klg.jclass.chart3d.DrawGrid getDrawGrid()
drawGrid
parent.
getDrawGrid
in interface DrawFacet
public void setGC(Graphics gc)
setGC
in interface DrawFacet
gc
- public Graphics getGC()
getGC
in interface DrawFacet
public void setDrawMeshLine(boolean drawMeshLine)
setDrawMeshLine
in interface DrawFacet
drawMeshLine
- public boolean getDrawMeshLine()
public void polyOutline(int[] xPoints, int[] yPoints, int n, int holeCode, int x, int y)
xPoints
and yPoints
. This
will either be a 3 or 4 sided polygon depending on whether the original
facet has been triangularized.
polyOutline
in interface DrawFacet
xPoints
- yPoints
- n
- holeCode
- x
- y
- public void polyFilled(int[] xPoints, int[] yPoints, int n, int holeCode)
xPoints
and yPoints
. This will either be
a 3 or 4 sided polygon depending on whether the original facet has been
triangularized.
polyFilled
in interface DrawFacet
xPoints
- yPoints
- n
- holeCode
- public void polyErase(int[] xPoints, int[] yPoints, int n, int holeCode)
xPoints
and yPoints
. This will either be
a 3 or 4 sided polygon depending on whether the original facet has been
triangularized. Erasing is needed so that the correct background will
show underneath the facet.
polyErase
in interface DrawFacet
xPoints
- yPoints
- n
- holeCode
- public boolean polyFilledZones(int x, int y)
polyFilledZones
in interface DrawFacet
x
- y
- public void polyContours(int x, int y)
polyContours
in interface DrawFacet
x
- y
- public boolean polyOutlineZones(int x, int y)
polyOutlineZones
in interface DrawFacet
x
- y
- public abstract void draw(int[] xPoints, int[] yPoints, int n, int holeCode, int x, int y)
draw
in interface DrawFacet
xPoints
- yPoints
- n
- holeCode
- x
- y
-
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |