Presentation is loading. Please wait.

Presentation is loading. Please wait.

Figura Rectangle areaPresentacion boolean seleccionada clone() dibujar(Graphics g) dibujarSeleccion(Graphics g) cambiarAreaPresentacion(Point p1, Point.

Similar presentations


Presentation on theme: "Figura Rectangle areaPresentacion boolean seleccionada clone() dibujar(Graphics g) dibujarSeleccion(Graphics g) cambiarAreaPresentacion(Point p1, Point."— Presentation transcript:

1 Figura Rectangle areaPresentacion boolean seleccionada clone() dibujar(Graphics g) dibujarSeleccion(Graphics g) cambiarAreaPresentacion(Point p1, Point p2) Rectangle getAreaPresentacion() setSeleccionada(boolean) Dimension getDimensiones() contienePunto(Point p) boolean esFiguraVacia() mover (int dx, int dy) java.awt.Rectangle java.awt.Point Java.awt.Dimension javax.swing.JTextField javax.swing.JTextArea

2 VentanaEditor Dibujo areaDibujo actionPerformed(ActionEvent e) Dibujo BotonHerramienta java.awt.event.ActionEvent

3 Dibujo Vector listaFiguras Herramienta herramientaActiva insertarFigura(Figura f) Figura eliminarFigura(Figura f) Figura encuentraFigura(Point) paintComponent(Graphics g) setHerramientaActiva(Herramienta) void mousePressed(MouseEvent e) void mouseDragged(MouseEvent e) void mouseReleased(MouseEvent e) Figura java.awt.MouseEvent Herramienta

4 BotonHerramienta Herramienta herramienta Herramienta getHerramienta() javax.swing.JButton Herramienta

5 void mousePressed(MouseEvent e) void mouseDragged(MouseEvent e) void mouseReleased(MouseEvent e) java.awt.MouseEvent

6 HerramientaCreacion Figura prototipo Dibujo areaDibujo Figura ultiFiguraCreada Point ultPulsacion void mousePressed(MouseEvent e) void mouseDragged(MouseEvent e) void mouseReleased(MouseEvent e) java.awt.MouseEvent Figura Dibujo java.awt.Point

7 HerramientaSeleccion Dibujo areaDibujo Figura figSeleccionada Point ultPulsacion void mousePressed(MouseEvent e) void mouseDragged(MouseEvent e) void mouseReleased(MouseEvent e) java.awt.MouseEvent Dibujo Figura java.awt.Point

8 Figure 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() Enumeration Handles() java.awt.Rectangle java.util.Enumeration Handle

9 EditorWindow Drawing drawArea CreationTool hc Figure lastFigure int lastX, lastY boolean resizing Handle lastHandle mousePressed(MouseEvent e) mouseDragged(MouseEvent e) mouseReleased(MouseEvent e) boolean isSelectionToolChosen() boolean isCreationToolChosen() Drawing CreationTool java.awt.event.MouseEvent Figure Handle

10 Drawing 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

11 ButtonTool Figure protoype Figure createFigure() Figure


Download ppt "Figura Rectangle areaPresentacion boolean seleccionada clone() dibujar(Graphics g) dibujarSeleccion(Graphics g) cambiarAreaPresentacion(Point p1, Point."

Similar presentations


Ads by Google