org.rosuda.ibase.toolkit
Class PlotPolygon
java.lang.Object
org.rosuda.ibase.toolkit.PlotObject
org.rosuda.ibase.toolkit.PlotPolygon
public class PlotPolygon
- extends PlotObject
Polygon object to be used in plots
- Version:
- $Id: PlotPolygon.java,v 1.7 2006/06/08 23:37:18 urbaneks Exp $
|
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) |
String |
toString()
toString is rather useful for debugging purposes |
| Methods inherited from class org.rosuda.ibase.toolkit.PlotObject |
gerDrawColor, gerFillColor, getLayer, getXPos, getYPos, isVisible, setClip, setCoordinates, setCoordinates, setDrawColor, setFillColor, setLayer, setVisible, update |
PlotPolygon
public PlotPolygon(PlotManager pm)
- create a new polygon object and add it to the specified
PlotManager
set
public 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)
- Parameters:
xx - X coordinates of the pointsyy - Y coordinates of the points
recalc
public void recalc()
draw
public void draw(PoGraSS g)
- draw the polygon
- Overrides:
draw in class PlotObject
- Parameters:
g - graphics context for painting
getDX
public int[] getDX()
getDY
public int[] getDY()
getX
public double[] getX()
getY
public double[] getY()
toString
public String toString()
- Description copied from class:
PlotObject
- toString is rather useful for debugging purposes
- Overrides:
toString in class PlotObject