com.partnersoft.v3x.gui
Class RationalPolygon
java.lang.Object
java.awt.Polygon
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
| 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. |
| 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 |
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.
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