com.partnersoft.v3x.gui
Class RationalPolygon

java.lang.Object
  extended by java.awt.Polygon
      extended by com.partnersoft.v3x.gui.RationalPolygon
All Implemented Interfaces:
java.awt.Shape, java.io.Serializable

public class RationalPolygon
extends java.awt.Polygon

A polygon whose points vary based on a supplied Dimension. Points are supplied as floating point fractions of the width and height.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Polygon
bounds, npoints, xpoints, ypoints
 
Constructor Summary
RationalPolygon(double[] xFracts, double[] yFracts, int numPoints)
          Create rational polygon with give fractional x's and y's.
RationalPolygon(double[] xFracts, double[] yFracts, int numPoints, int width, int height)
          Create rational polygon with give fractional x's and y's.
 
Method Summary
 java.lang.Object clone()
           
 int getHeight()
           
 int getWidth()
           
 void setHeight(int newHeight)
           
 void setWidth(int newWidth)
           
 
Methods inherited from class java.awt.Polygon
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RationalPolygon

public RationalPolygon(double[] xFracts,
                       double[] yFracts,
                       int numPoints)
Create rational polygon with give fractional x's and y's.


RationalPolygon

public RationalPolygon(double[] xFracts,
                       double[] yFracts,
                       int numPoints,
                       int width,
                       int height)
Create rational polygon with give fractional x's and y's.

Method Detail

getWidth

public int getWidth()

getHeight

public int getHeight()

setWidth

public void setWidth(int newWidth)

setHeight

public void setHeight(int newHeight)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object