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

Quick Search    Search Deep

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

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended bycom.trapezium.chisel.gui.Mover
          extended bycom.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


Field Summary
(package private) static int cornerHeight
           
(package private) static int cornerWidth
           
(package private)  int direction
           
static int EAST
           
static int NE
           
static int NONE
           
static int NORTH
           
static int NW
           
private  java.awt.Cursor oldCursor
           
static int SE
           
static int SOUTH
           
static int SW
           
static int WEST
           
 
Fields inherited from class com.trapezium.chisel.gui.Mover
anchorx, anchory, component, trackAncestor
 
Constructor Summary
Sizer()
           
Sizer(java.awt.Component component)
           
Sizer(java.awt.Component component, boolean trackParent)
           
 
Method Summary
 void doResize(int x, int y)
           
protected  int getSizeType(int x, int y)
           
 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 mouseEntered(java.awt.event.MouseEvent evt)
          Implements this method in the interface with an empty method body.
 void mouseExited(java.awt.event.MouseEvent evt)
          Implements this method in the interface with an empty method body.
 void mouseMoved(java.awt.event.MouseEvent evt)
          This method is called when the mouse is moved over a component while no button is pressed.
 void mousePressed(java.awt.event.MouseEvent evt)
          Implements this method in the interface with an empty method body.
 void mouseReleased(java.awt.event.MouseEvent evt)
          Implements this method in the interface with an empty method body.
 void setDirection(int direction)
           
 
Methods inherited from class com.trapezium.chisel.gui.Mover
getTarget, setComponent
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Sizer

public Sizer()

Sizer

public Sizer(java.awt.Component component)

Sizer

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

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)