databionics.esom.gui.util
Class DoublePolygon
java.lang.Object
databionics.esom.gui.util.DoublePolygon
public class DoublePolygon
- extends java.lang.Object
Class to handle polygons consisting of a bunch of xpoint, ypoints, widths,
heights
Method Summary |
void |
add(double x,
double y,
int w,
int h)
Add a new point to the polygon |
java.util.Vector |
createToroidPolygons(int w,
int h,
javax.swing.JPanel classPanel)
|
java.awt.Polygon |
getPolygon(int w,
int h)
Returns the actual polygon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.log4j.Logger log
toroidPolygons
protected java.util.Vector toroidPolygons
npoints
public int npoints
DoublePolygon
public DoublePolygon()
- Basic constructor
add
public void add(double x,
double y,
int w,
int h)
- Add a new point to the polygon
- Parameters:
x
- -
x coordinate (double value)y
- -
y coordinate (double value)w
- -
width (int value)h
- -
height (int value)
getPolygon
public java.awt.Polygon getPolygon(int w,
int h)
- Returns the actual polygon
- Parameters:
w
- -
Widthh
- -
Height
createToroidPolygons
public java.util.Vector createToroidPolygons(int w,
int h,
javax.swing.JPanel classPanel)
Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.