java.lang.Object
java.awt.event.MouseAdapter
com.trapezium.chisel.gui.Mover
com.trapezium.chisel.gui.Sizer
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
- Direct Known Subclasses:
- BorderSizer
- public class Sizer
- extends Mover
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cornerWidth
static final int cornerWidth
- See Also:
- Constant Field Values
cornerHeight
static final int cornerHeight
- See Also:
- Constant Field Values
WEST
public static final int WEST
- See Also:
- Constant Field Values
NW
public static final int NW
- See Also:
- Constant Field Values
NORTH
public static final int NORTH
- See Also:
- Constant Field Values
NE
public static final int NE
- See Also:
- Constant Field Values
EAST
public static final int EAST
- See Also:
- Constant Field Values
SE
public static final int SE
- See Also:
- Constant Field Values
SOUTH
public static final int SOUTH
- See Also:
- Constant Field Values
SW
public static final int SW
- See Also:
- Constant Field Values
NONE
public static final int NONE
- See Also:
- Constant Field Values
direction
int direction
oldCursor
private java.awt.Cursor oldCursor
Sizer
public Sizer()
Sizer
public Sizer(java.awt.Component component)
Sizer
public Sizer(java.awt.Component component,
boolean trackParent)
setDirection
public void setDirection(int direction)
mouseMoved
public void mouseMoved(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 no button is pressed.
- Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener- Overrides:
mouseMoved in class Mover
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent evt)
- Description copied from class:
java.awt.event.MouseAdapter
- Implements this method in the interface with an empty method body.
mouseExited
public void mouseExited(java.awt.event.MouseEvent evt)
- Description copied from class:
java.awt.event.MouseAdapter
- Implements this method in the interface with an empty method body.
mousePressed
public void mousePressed(java.awt.event.MouseEvent evt)
- Description copied from class:
java.awt.event.MouseAdapter
- Implements this method in the interface with an empty method body.
- Specified by:
mousePressed in interface java.awt.event.MouseListener- Overrides:
mousePressed in class Mover
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent evt)
- Description copied from class:
java.awt.event.MouseAdapter
- Implements this method in the interface with an empty method body.
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
getSizeType
protected int getSizeType(int x,
int y)
doResize
public void doResize(int x,
int y)