Title: Figura Prototype
1Figura
Rectangle areaPresentacion clone() dibujar(Graphi
cs g) cambiarAreaPresentacion(Point p1, Point
p2) Rectangle getAreaPresentacion()
java.awt.Rectangle java.awt.Point
2VentanaEditor
Dibujo areaDibujo actionPerformed(ActionEvent e)
Dibujo BotonHerramienta java.awt.event.ActionEvent
3Dibujo
Vector listaFiguras Figura
figuraActiva insertarFigura(Figura
f) paintComponent(Graphics g) setFiguraActiva(Figu
ra f) void mousePressed(MouseEvent e)
Figura java.awt.MouseEvent
4BotonHerramienta
Figura tipoFigura Figura getTipoFigura()
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
ion 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
Vector figureList Figure
selectedFigure Figure findFigure (int x, int
y) addFigure(Figure f) Figure removeFigure(Figure
f) draw() selectFigure(Figure f) deselectFigure()
Figure getSelectedFigure()
Figure
8ShapeButton
int shapeType Figure protoype int
getShapeType() Figure getFigure()
Figure
9Figure
Rectangle displayBox draw(Graphics
g) changeDisplayBox(Point p1, Point p2) Rectangle
getdisplayBox() clone()
java.awt.Rectangle java.awt.Point
10EditorWindow
Drawing drawingArea actionPerformed(ActionEvent
e)
Drawing ShapeButton java.awt.event.ActionEvent
11Drawing
Vector figures int activeShape Figure
activeFigure insertFigure(Figure
f) paintComponent(Graphics g) setActiveShape(int
as) void mousePressed(MouseEvent
e) setActiveFigure(Figure f)
Figure java.awt.MouseEvent