|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
java.awt.AWTEvent
java.awt.event.ComponentEvent
java.awt.event.InputEvent
java.awt.event.MouseEvent
org.diamondspin.DSTouchEvent
public class DSTouchEvent
This object is an rich event to repace mouse events.
Copyright 2004 Mitsubishi Electric Research Laboratories. All Rights Reserved. Permission to use, copy, modify and distribute this software and its documentation for educational, research and non-profit purposes, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and the following three paragraphs appear in all copies. To request Permission to incorporate this software into commercial products contact MERL - Mitsubishi Electric Research Laboratories, 201 Broadway, Cambridge, MA 02139. IN NO EVENT SHALL MERL BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF MERL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. MERL SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HERE UNDER IS ON AN "AS IS" BASIS, AND MERL HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
Field Summary | |
---|---|
protected Rectangle2D |
BoundingBox
|
protected float |
fingerAngle
|
protected Point |
ReferencePoint
|
protected int |
touchID
|
protected int |
TouchPointCount
|
protected float |
touchStrength
|
Fields inherited from class java.awt.event.MouseEvent |
---|
BUTTON1, BUTTON2, BUTTON3, MOUSE_CLICKED, MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_EXITED, MOUSE_FIRST, MOUSE_LAST, MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED, MOUSE_WHEEL, NOBUTTON |
Fields inherited from class java.awt.event.InputEvent |
---|
ALT_DOWN_MASK, ALT_GRAPH_DOWN_MASK, ALT_GRAPH_MASK, ALT_MASK, BUTTON1_DOWN_MASK, BUTTON1_MASK, BUTTON2_DOWN_MASK, BUTTON2_MASK, BUTTON3_DOWN_MASK, BUTTON3_MASK, CTRL_DOWN_MASK, CTRL_MASK, META_DOWN_MASK, META_MASK, SHIFT_DOWN_MASK, SHIFT_MASK |
Fields inherited from class java.awt.event.ComponentEvent |
---|
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
DSTouchEvent(Component source,
int id,
long when,
int modifiers,
int x,
int y,
int clickCount,
boolean popupTrigger)
Constructor for the TouchEvent object |
|
DSTouchEvent(Component source,
int id,
long when,
int modifiers,
int x,
int y,
int clickCount,
boolean popupTrigger,
int button)
Constructor for the TouchEvent object |
Method Summary | |
---|---|
Rectangle2D |
getBoundingBox()
return the bouding box of the touched areas |
float |
getFingerAngle()
Gets the angle attribute of the TouchEvent object |
int |
getFingerID()
Gets the userId attribute of the TouchEvent object. |
Point |
getReferencePoint()
return how many point touch the surface (i.e the number of fingers touching the table) |
int |
getTouchID()
Gets the userId attribute of the TouchEvent object. |
int |
getTouchPointCount()
return how many point touch the surface (i.e the number of fingers touching the table) |
float |
getTouchStrength()
Gets the angle attribute of the TouchEvent object |
int |
getUserID()
Gets the userId attribute of the TouchEvent object. |
void |
setBoundingBox(Rectangle2D Recttangle)
Sets the boundingBox attribute of the TouchEvent object |
void |
setEventID(int newID)
Changes the event type ID of this event. |
void |
setFingerAngle(float tangle)
Sets the angle attribute of the TouchEvent object |
void |
setReferencePoint(Point Point_Arg)
Sets the referencePoint attribute of the TouchEvent object |
void |
setTouchID(int TouchId)
Sets the touch Id attribute of the TouchEvent object. |
void |
setTouchPointCount(int TouchPointCount_Arg)
Sets the touchPointCount attribute of the TouchEvent object |
void |
setTouchStrength(float strength)
Sets the force attribute of the TouchEvent object |
String |
toString()
Description of the Method |
Methods inherited from class java.awt.event.MouseEvent |
---|
getButton, getClickCount, getLocationOnScreen, getMouseModifiersText, getPoint, getX, getXOnScreen, getY, getYOnScreen, isPopupTrigger, paramString, translatePoint |
Methods inherited from class java.awt.event.InputEvent |
---|
consume, getModifiers, getModifiersEx, getModifiersExText, getWhen, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isShiftDown |
Methods inherited from class java.awt.event.ComponentEvent |
---|
getComponent |
Methods inherited from class java.awt.AWTEvent |
---|
getID, setSource |
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 |
---|
protected int touchID
protected Rectangle2D BoundingBox
protected Point ReferencePoint
protected int TouchPointCount
protected float fingerAngle
protected float touchStrength
Constructor Detail |
---|
public DSTouchEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger)
source
- Description of the Parameterid
- Description of the Parameterwhen
- Description of the Parametermodifiers
- Description of the Parameterx
- Description of the Parametery
- Description of the ParameterclickCount
- Description of the ParameterpopupTrigger
- Description of the Parameterpublic DSTouchEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button)
source
- Description of the Parameterid
- Description of the Parameterwhen
- Description of the Parametermodifiers
- Description of the Parameterx
- Description of the Parametery
- Description of the ParameterclickCount
- Description of the ParameterpopupTrigger
- Description of the Parameterbutton
- Description of the ParameterMethod Detail |
---|
public void setTouchID(int TouchId)
TouchId
- The new userId valuepublic int getTouchID()
public int getUserID()
public int getFingerID()
public void setTouchStrength(float strength)
strength
- The new strenght value of the eventpublic float getTouchStrength()
public void setFingerAngle(float tangle)
tangle
- The new table angle value of the eventpublic float getFingerAngle()
public void setReferencePoint(Point Point_Arg)
Point_Arg
- The new referencePoint valuepublic Point getReferencePoint()
public void setBoundingBox(Rectangle2D Recttangle)
Recttangle
- The new boundingBox valuepublic Rectangle2D getBoundingBox()
public void setTouchPointCount(int TouchPointCount_Arg)
TouchPointCount_Arg
- The new touchPointCount valuepublic int getTouchPointCount()
public void setEventID(int newID)
newID
- The new eventID valuepublic String toString()
toString
in class AWTEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |