Title: Figura
1Figura
Rectangle areaPresentacion boolean
seleccionada clone() dibujar(Graphics
g) dibujarSeleccion(Graphics g) cambiarAreaPresen
tacion(Point p1, Point p2) Rectangle
getAreaPresentacion() setSeleccionada(boolean) co
ntienePunto(Point p) boolean esFiguraVacia() move
r (int dx, int dy)
java.awt.Rectangle java.awt.Point
2VentanaEditor
Dibujo areaDibujo actionPerformed(ActionEvent e)
Dibujo BotonHerramienta java.awt.event.ActionEvent
3Dibujo
final int ECREAR0 final int ESELECCIONAR1 Vect
orltFiguragt listaFiguras Figura figuraActiva int
estado insertarFigura(Figura f) Figura
eliminarFigura(Figura f) Figura
encuentraFigura(Point) paintComponent(Graphics
g) setFiguraActiva(Figura f) setEstado(int) boolea
n estadoCrear() boolean estadoSeleccionar() void
mousePressed(MouseEvent e) void
mouseDragged(MouseEvent e) void
mouseReleased(MouseEvent e)
Figura java.awt.MouseEvent
4BotonHerramienta
Figura tipoFigura int estado Figura
getTipoFigura() setEstado(int) int getEstado()
javax.swing.JButton Figura
5Figure
Rectangle displayBox move(int dx, int
dy) resize(Handle m, int dx, int
dy) draw() boolean containsPoint(int x, int
y) changeDisplayBox(Rectangle r) boolean
isEmptyFigure() Rectangle getDisplayBox() Enumerat
ionlt Handlegt Handles()
java.awt.Rectangle java.util.Enumeration Handle
6EditorWindow
Drawing drawArea CreationTool hc Figure
lastFigure int lastX, lastY boolean
resizing Handle lastHandle mousePressed(MouseEven
t e) mouseDragged(MouseEvent e) mouseReleased(Mous
eEvent e) boolean isSelectionToolChosen() boolean
isCreationToolChosen()
Drawing CreationTool java.awt.event.MouseEvent Fig
ure Handle
7Drawing
VectorltFiguregt figureList Figure
selectedFigure Figure findFigure (int x, int
y) addFigure(Figure f) Figure removeFigure(Figure
f) draw() selectFigure(Figure f) deselectFigure()
Figure getSelectedFigure()
Figure
8ButtonTool
Figure protoype Figure createFigure()
Figure