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