|
|||||||||
| Home >> All >> com >> trapezium >> chisel >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.trapezium.chisel.gui
Class ConstrainedMover

java.lang.Objectjava.awt.event.MouseAdapter
com.trapezium.chisel.gui.Mover
com.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:
mouseDraggedin interfacejava.awt.event.MouseMotionListener- Overrides:
mouseDraggedin classMover
doMove
public void doMove(int x,
int y)
|
|||||||||
| Home >> All >> com >> trapezium >> chisel >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC