|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rosuda.ibase.toolkit.PlotObject
org.rosuda.ibase.toolkit.PlotPolygon
public class PlotPolygon
Polygon object to be used in plots
| Field Summary |
|---|
| Fields inherited from class org.rosuda.ibase.toolkit.PlotObject |
|---|
CS_ABS, CS_REL, CS_VAR |
| Constructor Summary | |
|---|---|
PlotPolygon(PlotManager pm)
create a new polygon object and add it to the specified PlotManager |
|
| Method Summary | |
|---|---|
void |
draw(PoGraSS g)
draw the polygon |
int[] |
getDX()
|
int[] |
getDY()
|
double[] |
getX()
|
double[] |
getY()
|
void |
recalc()
|
void |
set(double[] xx,
double[] yy)
set polygon points. note that the polygon is not closed automatically when drawing outline, but filled are is always closed (if fill color is not null) |
java.lang.String |
toString()
toString is rather useful for debugging purposes |
| Methods inherited from class org.rosuda.ibase.toolkit.PlotObject |
|---|
dispose, gerDrawColor, gerFillColor, getLayer, getXPos, getYPos, isVisible, setClip, setCoordinates, setCoordinates, setDrawColor, setFillColor, setLayer, setVisible, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PlotPolygon(PlotManager pm)
PlotManager
| Method Detail |
|---|
public void set(double[] xx,
double[] yy)
null)
xx - X coordinates of the pointsyy - Y coordinates of the pointspublic void recalc()
public void draw(PoGraSS g)
draw in class PlotObjectg - graphics context for paintingpublic int[] getDX()
public int[] getDY()
public double[] getX()
public double[] getY()
public java.lang.String toString()
PlotObject
toString in class PlotObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||