|
JTablet 1.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cello.jtablet.TabletDevice
public abstract class TabletDevice
Represents a physical input device. TabletDevice objects are referenced
in TabletEvent
s and constructed by the JTablet library itself.
Nested Class Summary | |
---|---|
static class |
TabletDevice.Support
Support result returned by various getSupport() methods |
static class |
TabletDevice.Type
Tablet devices |
Constructor Summary | |
---|---|
protected |
TabletDevice()
TabletDevice objects may only be constructed by JTablet itself. |
Method Summary | |
---|---|
TabletDevice.Support |
getButtonSupport()
Returns whether this device supports buttons. |
TabletDevice.Support |
getFloatSupport()
Returns whether this device supports floating point coordinates. |
String |
getName()
Returns the device's name |
TabletDevice.Support |
getPressureSupport()
Returns whether this device supports pressure sensitivity. |
TabletDevice.Support |
getRotationSupport()
Returns whether this device supports axis rotation. |
TabletDevice.Support |
getSidePressureSupport()
Returns whether this device supports side pressure. |
TabletDevice.Support |
getTiltSupport()
Returns whether this device supports tilt orientation. |
abstract TabletDevice.Type |
getType()
Returns this device's type (such as stylus pen tip, stylus eraser, mouse cursor, or other). |
String |
getUniqueId()
Returns the unique physical device ID. |
TabletDevice.Support |
getUniqueIdSupport()
Returns whether this device supports unique IDs. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected TabletDevice()
TabletEvent
.
TabletManager
objects will typically contain concrete
subclasses of TabletDevice that they can construct on demand
in response to the detection of a tablet.
Method Detail |
---|
public abstract TabletDevice.Type getType()
public TabletDevice.Support getFloatSupport()
TabletEvent.getFloatX()
,
TabletEvent.getFloatY()
,
TabletEvent.getPoint2D()
public TabletDevice.Support getButtonSupport()
TabletEvent.getRawTabletButtonMask()
,
InputEvent.getModifiersEx()
public TabletDevice.Support getUniqueIdSupport()
getUniqueIdSupport()
public TabletDevice.Support getPressureSupport()
TabletEvent.getPressure()
public TabletDevice.Support getTiltSupport()
TabletEvent.getTiltX()
,
TabletEvent.getTiltY()
public TabletDevice.Support getSidePressureSupport()
TabletEvent.getSidePressure()
public TabletDevice.Support getRotationSupport()
TabletEvent.getRotation()
public String getName()
public String getUniqueId()
getUniqueIdSupport()
, otherwise a non-unique id may be returned.
When supported, this id for a pen will be consistent across sessions, and even tablets/computers.
getUniqueIdSupport()
public String toString()
toString
in class Object
|
JTablet 1.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |