public abstract class AbstractPenDevice extends java.lang.Object implements PenDevice
Modifier | Constructor and Description |
---|---|
protected |
AbstractPenDevice(PenProvider provider) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
evalPhysicalId() |
boolean |
getEnabled() |
byte |
getId() |
int |
getKindTypeNumber() |
Pen |
getPen() |
PenManager |
getPenManager() |
java.lang.String |
getPhysicalId() |
PenProvider |
getProvider() |
boolean |
getUseFractionalMovements() |
void |
penManagerSetId(byte id)
Don't call this method.
|
void |
penManagerSetUseFractionalMovements(boolean useFractionalMovement)
Don't call this method.
|
void |
setEnabled(boolean enabled) |
void |
setKindTypeNumber(int kindTypeNumber) |
java.lang.String |
toString() |
protected AbstractPenDevice(PenProvider provider)
public byte getId()
getId
in interface PenDevice
PenManager
and can change between restarts.PenDevice.getPhysicalId()
public void penManagerSetId(byte id)
PenDevice
PenManager
. This method is called when the device is being constructed to set a meaningful id
.penManagerSetId
in interface PenDevice
PenEvent.getDeviceId()
public PenProvider getProvider()
getProvider
in interface PenDevice
public int getKindTypeNumber()
getKindTypeNumber
in interface PenDevice
public void setKindTypeNumber(int kindTypeNumber)
setKindTypeNumber
in interface PenDevice
public boolean getEnabled()
getEnabled
in interface PenDevice
public void setEnabled(boolean enabled)
setEnabled
in interface PenDevice
public java.lang.String getPhysicalId()
getPhysicalId
in interface PenDevice
physicalId
is always the same for the given device, even if the program restarts. Each PenDevice has a different physicalId
.protected java.lang.String evalPhysicalId()
public final PenManager getPenManager()
public boolean getUseFractionalMovements()
getUseFractionalMovements
in interface PenDevice
true
if this device uses fractional (floating point precision) movement levels.public void penManagerSetUseFractionalMovements(boolean useFractionalMovement)
PenDevice
PenManager
. This method is called when the provider PenProvider.getUseRelativeLocationFilter()
is true
and this PenDevice
must change its useFractionalMovement
mode.penManagerSetUseFractionalMovements
in interface PenDevice
PenDevice.getUseFractionalMovements()
public java.lang.String toString()
toString
in class java.lang.Object