Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.chisel.gui
Class ConstrainedMover  view ConstrainedMover download ConstrainedMover.java

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended bycom.trapezium.chisel.gui.Mover
          extended bycom.trapezium.chisel.gui.ConstrainedMover
All Implemented Interfaces:
java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

public class ConstrainedMover
extends Mover


Field Summary
(package private)  boolean constrainedToParent
           
(package private)  int direction
           
static int EASTWEST
           
(package private)  java.awt.Insets insets
           
static int NESW
           
static int NONE
           
static int NORTHSOUTH
           
static int NWSE
           
 
Fields inherited from class com.trapezium.chisel.gui.Mover
anchorx, anchory, component, trackAncestor
 
Constructor Summary
ConstrainedMover()
           
ConstrainedMover(java.awt.Component component)
           
ConstrainedMover(java.awt.Component component, boolean trackParent)
           
 
Method Summary
 void doMove(int x, int y)
           
 boolean isConstrainedToParent()
           
 void mouseDragged(java.awt.event.MouseEvent evt)
          This method is called when the mouse is moved over a component while a button has been pressed.
 void setConstrainedToParent(boolean constrained)
           
 void setDirection(int direction)
           
 void setInsets(java.awt.Insets insets)
           
 
Methods inherited from class com.trapezium.chisel.gui.Mover
getTarget, mouseMoved, mousePressed, setComponent
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EASTWEST

public static final int EASTWEST
See Also:
Constant Field Values

NWSE

public static final int NWSE
See Also:
Constant Field Values

NORTHSOUTH

public static final int NORTHSOUTH
See Also:
Constant Field Values

NESW

public static final int NESW
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

direction

int direction

constrainedToParent

boolean constrainedToParent

insets

java.awt.Insets insets
Constructor Detail

ConstrainedMover

public ConstrainedMover()

ConstrainedMover

public ConstrainedMover(java.awt.Component component)

ConstrainedMover

public ConstrainedMover(java.awt.Component component,
                        boolean trackParent)
Method Detail

setDirection

public void setDirection(int direction)

setConstrainedToParent

public void setConstrainedToParent(boolean constrained)

isConstrainedToParent

public boolean isConstrainedToParent()

setInsets

public void setInsets(java.awt.Insets insets)

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent evt)
Description copied from interface: java.awt.event.MouseMotionListener
This method is called when the mouse is moved over a component while a button has been pressed.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class Mover

doMove

public void doMove(int x,
                   int y)