quicktime.app.event
Class QTMouseEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--quicktime.app.event.QTMouseEvent
All Implemented Interfaces:
java.io.Serializable

Deprecated. since QTJava 6.1

public class QTMouseEvent
extends java.util.EventObject

This class is used by QuickTime objects that have an action associated with them. When those object's actions are fired they will generate an action event, with those objects as the source of the event, to any registered listeners

A QTMouseEvent's source is the space within which the event occured. Some controllers that broadcast a QTMouseEvent may also have targetted the mouse event to a particular member object in the space.

See Also:
Serialized Form

Field Summary
static int kMouseClick
          Deprecated. since QTJava 6.1
static int kMouseDragged
          Deprecated. since QTJava 6.1
static int kMouseEntered
          Deprecated. since QTJava 6.1
static int kMouseExited
          Deprecated. since QTJava 6.1
static int kMouseMoved
          Deprecated. since QTJava 6.1
static int kMousePressed
          Deprecated. since QTJava 6.1
static int kMouseReleased
          Deprecated. since QTJava 6.1
static int kMouseTargetEnter
          Deprecated. since QTJava 6.1
static int kMouseTargetExit
          Deprecated. since QTJava 6.1
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
QTMouseEvent(java.lang.Object source)
          Deprecated. since QTJava 6.1
QTMouseEvent(java.lang.Object source, int eventType, int x, int y, long when, int modifiers, int clickCount)
          Deprecated. since QTJava 6.1
 
Method Summary
 void consume()
          Deprecated. since QTJava 6.1
 int getClickCount()
          Deprecated. since QTJava 6.1
 int getEventType()
          Deprecated. since QTJava 6.1
 QDPoint getLocation()
          Deprecated.  
 int getModifiers()
          Deprecated. since QTJava 6.1
 java.lang.Object getTarget()
          Deprecated.  
 long getWhen()
          Deprecated. since QTJava 6.1
 int getX()
          Deprecated. since QTJava 6.1
 int getY()
          Deprecated. since QTJava 6.1
 void initialiseEventProfile(int eventType, int x, int y, long when, int modifiers, int clickCount)
          Deprecated. since QTJava 6.1
 boolean isConsumed()
          Deprecated. since QTJava 6.1
 void setTarget(java.lang.Object target)
          Deprecated. since QTJava 6.1
 java.lang.String toString()
          Deprecated. since QTJava 6.1
 void translate(int x, int y)
          Deprecated. since QTJava 6.1
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kMouseClick

public static final int kMouseClick
Deprecated. since QTJava 6.1

The mouse clicked event type.

See Also:
Constant Field Values

kMousePressed

public static final int kMousePressed
Deprecated. since QTJava 6.1

The mouse pressed event type.

See Also:
Constant Field Values

kMouseReleased

public static final int kMouseReleased
Deprecated. since QTJava 6.1

The mouse released event type.

See Also:
Constant Field Values

kMouseMoved

public static final int kMouseMoved
Deprecated. since QTJava 6.1

The mouse moved event type.

See Also:
Constant Field Values

kMouseEntered

public static final int kMouseEntered
Deprecated. since QTJava 6.1

The mouse entered event type.

See Also:
Constant Field Values

kMouseExited

public static final int kMouseExited
Deprecated. since QTJava 6.1

The mouse exited event type.

See Also:
Constant Field Values

kMouseDragged

public static final int kMouseDragged
Deprecated. since QTJava 6.1

The mouse dragged event type.

See Also:
Constant Field Values

kMouseTargetEnter

public static final int kMouseTargetEnter
Deprecated. since QTJava 6.1

The mouse entered a target

See Also:
Constant Field Values

kMouseTargetExit

public static final int kMouseTargetExit
Deprecated. since QTJava 6.1

The mouse exited a target

See Also:
Constant Field Values
Constructor Detail

QTMouseEvent

public QTMouseEvent(java.lang.Object source)
Deprecated. since QTJava 6.1

Constructs an QTMouseEvent object with the specified source object.

Parameters:
source - the object where the event originated

QTMouseEvent

public QTMouseEvent(java.lang.Object source,
                    int eventType,
                    int x,
                    int y,
                    long when,
                    int modifiers,
                    int clickCount)
Deprecated. since QTJava 6.1

Constructs an QTMouseEvent object with the specified source object.

Parameters:
source - the object where the event originated
eventType - the type of mouse event
x - the x location of the event
y - the y location of the event
when - when the event occured
modifiers - the modifiers held down during this action
clickCount - the number of clicks within the system click time that occured.
Method Detail

getLocation

public QDPoint getLocation()
Deprecated. 
Returns:
the location of the event in the space's local coordinates * @deprecated since QTJava 6.1

getModifiers

public int getModifiers()
Deprecated. since QTJava 6.1

Returns:
the modifiers held down during this action event.

getTarget

public java.lang.Object getTarget()
Deprecated. 
Returns:
the target or null of the event* @deprecated since QTJava 6.1

setTarget

public void setTarget(java.lang.Object target)
Deprecated. since QTJava 6.1

Parameters:
target - the target of the event

getX

public int getX()
Deprecated. since QTJava 6.1

Returns:
the x position of the event relative to the source's enclosing space.

getY

public int getY()
Deprecated. since QTJava 6.1

Returns:
the y position of the event relative to the source's enclosing space.

getWhen

public long getWhen()
Deprecated. since QTJava 6.1

Returns:
the when the event happened.

getClickCount

public int getClickCount()
Deprecated. since QTJava 6.1

Returns:
the number of clicks.

getEventType

public int getEventType()
Deprecated. since QTJava 6.1

Returns:
the type of mouse event.

translate

public void translate(int x,
                      int y)
Deprecated. since QTJava 6.1

Translates the location of the event.

Parameters:
x - the offset to the x coordinate position
y - the offset to the y coordinate position

initialiseEventProfile

public void initialiseEventProfile(int eventType,
                                   int x,
                                   int y,
                                   long when,
                                   int modifiers,
                                   int clickCount)
Deprecated. since QTJava 6.1

Sets the characteristics of the MouseEvent. This will also set the target to null and consumed to false.

Parameters:
eventType - the type of mouse event
x - the x location of the event
y - the y location of the event
when - when the event occured
modifiers - the modifiers held down during this action
clickCount - the number of clicks within the system click time that occured.

consume

public void consume()
Deprecated. since QTJava 6.1

QTMouseEvents can be consumed by any of their listeners. If the event is consumed it will not be passed on to any other listeners. Calling this method indicates that the event is consumed.


isConsumed

public boolean isConsumed()
Deprecated. since QTJava 6.1

Returns:
true if the event is consumed.

toString

public java.lang.String toString()
Deprecated. since QTJava 6.1

Overrides:
toString in class java.util.EventObject
Returns:
a String representation of this object.