databionics.esom.gui.util
Class DoublePolygon

java.lang.Object
  extended by 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


Field Summary
protected static org.apache.log4j.Logger log
           
 int npoints
           
protected  java.util.Vector toroidPolygons
           
 
Constructor Summary
DoublePolygon()
          Basic constructor
 
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
 

Field Detail

log

protected static final org.apache.log4j.Logger log

toroidPolygons

protected java.util.Vector toroidPolygons

npoints

public int npoints
Constructor Detail

DoublePolygon

public DoublePolygon()
Basic constructor

Method Detail

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 - - Width
h - - Height

createToroidPolygons

public java.util.Vector createToroidPolygons(int w,
                                             int h,
                                             javax.swing.JPanel classPanel)


Copyright © 2005-2006 Databionics Research Group. All Rights Reserved.