Class Mover

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

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

Clase que permite trasladar una componente


Nested Class Summary
(package private)  class Mover.MouseHandler
          Monitorea los eventos del boton del mouse
(package private)  class Mover.MouseMotionHandler
          Metodo que hace que se ejetute el traslado de la componente selecionada dejando presionado el mouse y arrastrando esta.
 
Field Summary
private  Circuito cir
           
private  int estado
           
private static int INICIO_TRASLADO
           
private  java.awt.Point previo
           
private static int SELECCION_FIGURA
           
 
Constructor Summary
Mover(Circuito circu)
          Creador de la clase
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Clasifica el evento despues de entrar en esta clase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cir

private Circuito cir

previo

private java.awt.Point previo

estado

private int estado

SELECCION_FIGURA

private static final int SELECCION_FIGURA
See Also:
Constant Field Values

INICIO_TRASLADO

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

Mover

public Mover(Circuito circu)
Creador de la clase

Parameters:
circu - Circuito en el cual se va a mover una componete
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Clasifica el evento despues de entrar en esta clase

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