org.diamondspin
Class DSElementEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.diamondspin.DSElementEvent
All Implemented Interfaces:
Serializable

public class DSElementEvent
extends EventObject

Author:
Besacier
See Also:
Serialized Form

Field Summary
static int CENTER
           
static int DEMOTE
           
static int FINGER_ORIENTATION
           
static int FOLD
           
static int FRONTIER
           
static int GRAB_DROP
           
static int INERTIA
           
static int MOVE
           
static int NO_MORE_ALLOWED
           
static int PILING
           
static int REPAINT
           
static int RESET
           
static int RESIZE
           
static int ROTATE
           
static int SOFTWARE
           
static int UNKOWN
           
static int USER
           
static int ZOOM
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DSElementEvent(Object source, int type, int cause)
           
DSElementEvent(Object source, int type, int cause, double a)
           
DSElementEvent(Object source, int type, int cause, double a, double b)
           
DSElementEvent(Object source, int type, int cause, int a, int b)
           
 
Method Summary
 double getAlpha()
           
 double getBeta()
           
 int getCause()
           
 int getCenterX()
           
 int getCenterY()
           
 double getD()
           
 DSElement getElement()
          Conveniance method.
 double getFoldAngle()
           
 double getFoldProportion()
           
 int getGrabX()
           
 int getGrabY()
           
 int getHeight()
           
 double getScale()
           
 int getType()
           
 int getWidth()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MOVE

public static final int MOVE
See Also:
Constant Field Values

RESIZE

public static final int RESIZE
See Also:
Constant Field Values

ZOOM

public static final int ZOOM
See Also:
Constant Field Values

ROTATE

public static final int ROTATE
See Also:
Constant Field Values

FOLD

public static final int FOLD
See Also:
Constant Field Values

CENTER

public static final int CENTER
See Also:
Constant Field Values

DEMOTE

public static final int DEMOTE
See Also:
Constant Field Values

REPAINT

public static final int REPAINT
See Also:
Constant Field Values

UNKOWN

public static final int UNKOWN
See Also:
Constant Field Values

USER

public static final int USER
See Also:
Constant Field Values

PILING

public static final int PILING
See Also:
Constant Field Values

FRONTIER

public static final int FRONTIER
See Also:
Constant Field Values

NO_MORE_ALLOWED

public static final int NO_MORE_ALLOWED
See Also:
Constant Field Values

GRAB_DROP

public static final int GRAB_DROP
See Also:
Constant Field Values

RESET

public static final int RESET
See Also:
Constant Field Values

INERTIA

public static final int INERTIA
See Also:
Constant Field Values

FINGER_ORIENTATION

public static final int FINGER_ORIENTATION
See Also:
Constant Field Values

SOFTWARE

public static final int SOFTWARE
See Also:
Constant Field Values
Constructor Detail

DSElementEvent

public DSElementEvent(Object source,
                      int type,
                      int cause)

DSElementEvent

public DSElementEvent(Object source,
                      int type,
                      int cause,
                      double a,
                      double b)

DSElementEvent

public DSElementEvent(Object source,
                      int type,
                      int cause,
                      int a,
                      int b)

DSElementEvent

public DSElementEvent(Object source,
                      int type,
                      int cause,
                      double a)
Method Detail

getType

public int getType()

getCause

public int getCause()

getD

public double getD()

getAlpha

public double getAlpha()

getBeta

public double getBeta()

getScale

public double getScale()

getFoldAngle

public double getFoldAngle()

getFoldProportion

public double getFoldProportion()

getWidth

public int getWidth()

getHeight

public int getHeight()

getGrabX

public int getGrabX()

getGrabY

public int getGrabY()

getCenterX

public int getCenterX()

getCenterY

public int getCenterY()

getElement

public DSElement getElement()
Conveniance method. If the source is a DSElement, cast it to DSElement and return it. Else, throw a IllegalCastException

Returns:
getSource()


Copyright © 2006 Frederic Vernier(LIMSI) Chia Shen(MERL) Guillaume Besacier(LIMSI). All Rights Reserved.