Presentation is loading. Please wait.

Presentation is loading. Please wait.

Figura Rectangle areaPresentacion dibujar(Graphics g) cambiarAreaPresentacion(Point p1, Point p2) Rectangle getAreaPresentacion() java.awt.Rectangle java.awt.Point.

Similar presentations


Presentation on theme: "Figura Rectangle areaPresentacion dibujar(Graphics g) cambiarAreaPresentacion(Point p1, Point p2) Rectangle getAreaPresentacion() java.awt.Rectangle java.awt.Point."— Presentation transcript:

1 Figura Rectangle areaPresentacion dibujar(Graphics g) cambiarAreaPresentacion(Point p1, Point p2) Rectangle getAreaPresentacion() java.awt.Rectangle java.awt.Point

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

3 Dibujo Vector listaFiguras int figuraActiva insertarFigura(Figura f) paintComponent(Graphics g) setFiguraActiva(int tipoFigura) boolean crearRectangulo() boolean crearElipse() mousePressed(MouseEvent e) Figura java.awt.MouseEvent

4 BotonHerramienta final int ELIPSE=0; final int RECT=1; int tipoFigura; int getTipoFigura() javax.swing.JButton

5 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

6 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

7 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

8 ButtonTool Figure protoype Figure createFigure() Figure


Download ppt "Figura Rectangle areaPresentacion dibujar(Graphics g) cambiarAreaPresentacion(Point p1, Point p2) Rectangle getAreaPresentacion() java.awt.Rectangle java.awt.Point."

Similar presentations


Ads by Google