|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectt3.portfolios.PortfolioEvent
public class PortfolioEvent
Field Summary | |
---|---|
double |
DESKx
If positionAndButtonsKnown then this is the coordinates of event in DESK space, i.e. |
double |
DESKxOld
If oldPositionKnown then this is the coordinates of event in DESK space, before this event occurred. |
double |
DESKy
If positionAndButtonsKnown then this is the coordinates of event in DESK space, i.e. |
double |
DESKyOld
If oldPositionKnown then this is the coordinates of event in DESK space, before this event occurred. |
static int |
EVENT_KEYBOARD_PRESSED
|
static int |
EVENT_KEYBOARD_RELEASED
|
static int |
EVENT_KEYBOARD_TYPED
|
static int |
EVENT_PID_CLICK
|
static int |
EVENT_PID_ENTER
|
static int |
EVENT_PID_EXIT
|
static int |
EVENT_PID_FDOPMODE
|
static int |
EVENT_PID_MOVE
|
static int |
EVENT_PID_PRESS
|
static int |
EVENT_PID_PRESSOUTSIDE
|
static int |
EVENT_PID_RELEASE
|
int |
eventType
Type of event. |
java.io.Serializable |
extra
|
char |
keyboardAWTChar
For keyboard events. |
int |
keyboardAWTKeyCode
For keyboard events. |
int |
keyboardAWTModifiers
For keyboard events. |
boolean |
oldPositionKnown
For pid events, this is true iff the position of the pid was known before this latest event occurred. |
Person |
person
The Person that generated the event. |
int |
pidButton
For pid press, pressoutside, release and click events, this is the button number that caused the event. |
int |
pidButtons
If positionAndButtonsKnown then this is the pid's buttons bit field. |
PointInputDevice |
pointInputDevice
For pid events, this is the pid that generated the event. |
boolean |
positionAndButtonsKnown
For pid events, this is true iff the position and buttons of the pid are known. |
Constructor Summary | |
---|---|
PortfolioEvent(int penButton,
int penButtons,
Person person,
PointInputDevice pen,
double DESKx,
double DESKy,
double DESKxOld,
double DESKyOld,
java.io.Serializable extra,
int eventType,
boolean positionAndButtonsKnown,
boolean oldPositionKnown,
int keyboardAWTKeyCode,
char keyboardAWTChar,
int keyboardAWTModifiers)
Creates a new data structure to store the specified data. |
Method Summary | |
---|---|
double |
getPORTx(Portfolio p)
If positionAndButtonsKnown then this returns the x coordinate of the event relative to the specified portfolio's PORT space. |
double |
getPORTxOld(Portfolio p)
If oldPositionKnown then this returns the x coordinate of the pid before the event happened, relative to the specified portfolio's PORT space. |
double |
getPORTy(Portfolio p)
If positionAndButtonsKnown then this returns the y coordinate of the event relative to the specified portfolio's PORT space. |
double |
getPORTyOld(Portfolio p)
If oldPositionKnown then this returns the y coordinate of the pid before the event happened, relative to the specified portfolio's PORT space. |
int |
getTILEx(Portfolio p)
If positionAndButtonsKnown then this returns the x coordinate of the event relative to the specified portfolio's TILE space. |
int |
getTILExOld(Portfolio p)
If oldPositionKnown then this returns the x coordinate of the pid before the event happened, relative to the specified portfolio's TILE space. |
int |
getTILEy(Portfolio p)
If positionAndButtonsKnown then this returns the y coordinate of the event relative to the specified portfolio's TILE space. |
int |
getTILEyOld(Portfolio p)
If oldPositionKnown then this returns the y coordinate of the pid before the event happened, relative to the specified portfolio's TILE space. |
boolean |
isOldPointOnTile(Portfolio p)
If oldPositionKnown then this returns true iff the coordinates of the pid before the event happened lie on the specified portfolio's tile. |
boolean |
isPointOnTile(Portfolio p)
If positionAndButtonsKnown then this returns iff the coordinates of the event lie on the specified portfolio's tile. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int EVENT_PID_PRESS
public static final int EVENT_PID_RELEASE
public static final int EVENT_PID_CLICK
public static final int EVENT_PID_MOVE
public static final int EVENT_PID_ENTER
public static final int EVENT_PID_EXIT
public static final int EVENT_KEYBOARD_PRESSED
public static final int EVENT_KEYBOARD_RELEASED
public static final int EVENT_KEYBOARD_TYPED
public static final int EVENT_PID_FDOPMODE
public static final int EVENT_PID_PRESSOUTSIDE
public final int eventType
public final Person person
public final PointInputDevice pointInputDevice
public final boolean positionAndButtonsKnown
It will always be true for pid press, pressoutside, pid release, pid click, pid move and pid enter events. It might be true for pid exit events.
public final boolean oldPositionKnown
public final double DESKx
public final double DESKy
public final java.io.Serializable extra
public final double DESKxOld
public final double DESKyOld
public final int pidButton
public final int pidButtons
public final int keyboardAWTKeyCode
public final char keyboardAWTChar
public final int keyboardAWTModifiers
Constructor Detail |
---|
public PortfolioEvent(int penButton, int penButtons, Person person, PointInputDevice pen, double DESKx, double DESKy, double DESKxOld, double DESKyOld, java.io.Serializable extra, int eventType, boolean positionAndButtonsKnown, boolean oldPositionKnown, int keyboardAWTKeyCode, char keyboardAWTChar, int keyboardAWTModifiers)
penButton
- penButtons
- client
- pen
- DESKx
- DESKy
- DESKxOld
- DESKyOld
- eventType
- positionAndButtonsKnown
- oldPositionKnown
- keyboardAWTKeyCode
- keyboardAWTChar
- keyboardAWTModifiers
- Method Detail |
---|
public final double getPORTx(Portfolio p)
p
-
public final double getPORTy(Portfolio p)
p
-
public final double getPORTxOld(Portfolio p)
p
-
public final double getPORTyOld(Portfolio p)
p
-
public final boolean isPointOnTile(Portfolio p)
p
-
public final boolean isOldPointOnTile(Portfolio p)
p
-
public final int getTILEx(Portfolio p)
p
-
public final int getTILEy(Portfolio p)
p
-
public final int getTILExOld(Portfolio p)
p
-
public final int getTILEyOld(Portfolio p)
p
-
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |