Class Girar

java.lang.Object
  extended by Girar
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class Girar
extends java.lang.Object
implements java.awt.event.ActionListener

Clase que permite rotar las figuras


Nested Class Summary
(package private)  class Girar.MouseHandler
          Metodo que monitorea las accionde del boton del mouse
(package private)  class Girar.MouseMotionHandler
          Clase sin uso para el programa
 
Field Summary
private  Circuito cir
           
private  int estado
           
private static int INICIO_ROTACION
           
private  java.awt.Point puntoclick
           
private static int SELECCION_FIGURA
           
 
Constructor Summary
Girar(Circuito circ)
          Costructor de la clase
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Metodo que se usa para detectar las acciones del raton al ejecutarse este metodo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cir

private Circuito cir

estado

private int estado

puntoclick

private java.awt.Point puntoclick

SELECCION_FIGURA

private static final int SELECCION_FIGURA
See Also:
Constant Field Values

INICIO_ROTACION

private static final int INICIO_ROTACION
See Also:
Constant Field Values
Constructor Detail

Girar

public Girar(Circuito circ)
Costructor de la clase

Parameters:
circ - panel que contiene el circuito
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Metodo que se usa para detectar las acciones del raton al ejecutarse este metodo

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - parametro que es igual al evento hecha por el usuario al crearse esta clase