public class Polygon2D extends Vector
capacityIncrement, elementCount, elementDatamodCount| Constructor and Description |
|---|
Polygon2D() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(Point2D pt)
Añade un vertice al po?
|
void |
draw(Graphics2D g,
ViewPortData vp)
Dibuja el polígono
|
void |
fill(Graphics2D g,
ViewPortData vp) |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSizepublic void addPoint(Point2D pt)
pt - punto 2D que representa el vertice añadidopublic void draw(Graphics2D g, ViewPortData vp)
g - Graphics sobre el que dibujavp - ViewPort con la vistapublic void fill(Graphics2D g, ViewPortData vp)
g - vp -