edu.iastate.metnet.metaomgraph
Class PolygonPanel.BouncingPolygon
java.lang.Object
java.awt.Polygon
edu.iastate.metnet.metaomgraph.PolygonPanel.BouncingPolygon
- All Implemented Interfaces:
- java.awt.Shape, java.io.Serializable
- Enclosing class:
- PolygonPanel
public static class PolygonPanel.BouncingPolygon
- extends java.awt.Polygon
- See Also:
- Serialized Form
| Fields inherited from class java.awt.Polygon |
bounds, npoints, xpoints, ypoints |
|
Method Summary |
java.awt.Color |
getColor()
|
java.awt.Point |
getPoint(int point)
|
java.awt.Point |
getVel(int point)
|
void |
move()
|
void |
setBounds(int minX,
int minY,
int maxX,
int maxY)
|
void |
setXVel(int point,
int newVel)
|
void |
setYVel(int point,
int newVel)
|
| 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolygonPanel.BouncingPolygon
public PolygonPanel.BouncingPolygon(int sides,
int minX,
int minY,
int maxX,
int maxY)
getColor
public java.awt.Color getColor()
getPoint
public java.awt.Point getPoint(int point)
getVel
public java.awt.Point getVel(int point)
setXVel
public void setXVel(int point,
int newVel)
setYVel
public void setYVel(int point,
int newVel)
setBounds
public void setBounds(int minX,
int minY,
int maxX,
int maxY)
move
public void move()