|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.emn.win32input.jwintab.TabletContext
Constructor Summary | |
TabletContext(java.lang.String name)
Creates a new context for the first tablet device in Wintab query order. |
|
TabletContext(java.lang.String name,
TabletDevice device)
Creates a new context for a given tablet device. |
Method Summary | |
boolean |
areEventsEnabled()
Returns whether this context sends tablet events (window messages) to its owner. |
void |
close()
Closes the context. |
int |
getAbsoluteDimensions()
Returns the logically absolute dimensions in this context. |
int |
getActiveDimensions()
Returns the dimensions which are active in this context. |
java.lang.String |
getContextName()
Returns the name of the context. |
TabletDevice |
getDevice()
Returns the device whose input the context processes. |
Domain |
getInputDomain()
Returns the domain of the context's input area in the tablet's native coordinates. |
Domain |
getOutputDomain()
Returns the domain of the context's output area in context's output coordinates. |
PacketQueue |
getPacketQueue()
|
int |
getReportRate()
Returns the actual packet report rate in Hertz. |
Domain |
getSystemDomain()
Returns the domain of the screen mapping area for system cursor tracking, in screen coordinates. |
boolean |
isDimensionAbsolute(int dimension)
Returns whether a given dimension is logically absolute in this context, disregarding the device. |
boolean |
isDimensionActive(int dimension)
Returns whether a given dimension is active in this context, disregarding the device. |
boolean |
isEnabled()
Returns true if the context is enabled. |
boolean |
isInputARLocked()
|
boolean |
isInputSizeLocked()
|
boolean |
isMarginEnabled()
Returns whether the input context on the tablet will have a margin. |
boolean |
isMarginInside()
Returns whether the margin will be inside the context. |
boolean |
isMarginLocked()
|
boolean |
isObscured()
Returns true if the context is at least partially obscured by an overlapping context that is higher in the context overlap order. |
boolean |
isOnTop()
Returns true if the context is the topmost context in the context overlap order. |
boolean |
isOpen()
Returns whether the context is open. |
boolean |
isPenWindows()
Returns whether this context is a Pen Windows context, if Pen Windows is installed. |
static boolean |
isPenWindowsSupported()
Returns true if Pen Windows is implemented. |
boolean |
isSensitivityLocked()
|
boolean |
isSystemCursor()
Returns whether this context is a system cursor context. |
boolean |
isSystemOutLocked()
|
boolean |
open(int hwnd,
boolean enable)
Opens the context. |
void |
setContextName(java.lang.String name)
Sets the name of the context. |
void |
setDevice(TabletDevice device)
Specifies the device whose input the context processes. |
void |
setDimensionAbsolute(int dimension,
boolean absolute)
Sets the "logically absolute" state of one ore more dimensions in this context. |
void |
setDimensionActive(int dimension,
boolean active)
Sets the "active" state of one ore more dimensions in this context. |
void |
setDomainsToDefault()
Sets input & output domains to device domains, and system domain to screen domain. |
void |
setEnabled(boolean enable)
Specify whether to enable or disable the context. |
void |
setEventsEnabled(boolean val)
Specifies whether this context must return tablet events (window messages) to its owner. |
void |
setInputARLocked(boolean val)
|
void |
setInputDomain(Domain domain)
Sets the domain of the context's input area in the tablet's native coordinates. |
void |
setInputSizeLocked(boolean val)
|
void |
setMarginEnabled(boolean val)
Specifies whether the input context must have a margin. |
void |
setMarginInside(boolean val)
Specifies whether the margin must be inside the context. |
void |
setMarginLocked(boolean val)
|
void |
setObscured(boolean obscured)
|
void |
setOnTop(boolean top)
Sends this tablet context to the top or bottom of the order of overlapping tablet contexts. |
void |
setOutputDomain(Domain domain)
Sets the domain of the context's output area in the context's output coordinates. |
void |
setPenWindows(boolean val)
Specifies whether this context must be a Pen Windows context. |
void |
setReportRate(int value)
Specifies the desired packet report rate in Hertz. |
void |
setReportRateToMaximum()
|
void |
setSensitivityLocked(boolean val)
|
void |
setSystemCursor(boolean val)
Specifies whether this context must be a system cursor context. |
void |
setSystemDomain(Domain domain)
Sets the domain of the screen mapping area for system cursor tracking, in screen coordinates. |
void |
setSystemOutLocked(boolean val)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TabletContext(java.lang.String name)
public TabletContext(java.lang.String name, TabletDevice device)
name
- the name of the contextdevice
- the (n+1)th tablet device in Wintab query order.setContextName(java.lang.String)
,
JWintab#getDevice
Method Detail |
public boolean areEventsEnabled()
public void close()
open(int, boolean)
public int getAbsoluteDimensions()
Device#getPhysAbsoluteDimensions
public int getActiveDimensions()
isDimensionActive(int)
public java.lang.String getContextName()
setContextName(java.lang.String)
public TabletDevice getDevice()
public Domain getInputDomain()
setInputDomain(fr.emn.win32input.jwintab.Domain)
public Domain getOutputDomain()
setOutputDomain(fr.emn.win32input.jwintab.Domain)
public PacketQueue getPacketQueue()
public int getReportRate()
public Domain getSystemDomain()
setSystemDomain(fr.emn.win32input.jwintab.Domain)
public boolean isDimensionAbsolute(int dimension)
dimension
- a bit mask describing one or more dimension(s).
getAbsoluteDimensions()
public boolean isDimensionActive(int dimension)
dimension
- a bit mask describing one or more dimension(s).
getActiveDimensions()
public boolean isEnabled()
public boolean isInputARLocked()
public boolean isInputSizeLocked()
public boolean isMarginEnabled()
public boolean isMarginInside()
public boolean isMarginLocked()
public boolean isObscured()
public boolean isOnTop()
public boolean isOpen()
open(int, boolean)
public boolean isPenWindows()
setPenWindows(boolean)
public static boolean isPenWindowsSupported()
public boolean isSensitivityLocked()
public boolean isSystemCursor()
setSystemCursor(boolean)
public boolean isSystemOutLocked()
public boolean open(int hwnd, boolean enable)
enable
- specifies whether the new context will immediately begin to process data.
close()
,
isOpen()
,
setEnabled(boolean)
public void setContextName(java.lang.String name)
getContextName()
public void setDevice(TabletDevice device)
device
- the TabletDevice objectpublic void setDimensionAbsolute(int dimension, boolean absolute)
dimension
- a bit mask describing one or more dimension(s).absolute
- true for absolute, false for relative.isDimensionAbsolute(int)
,
Device#getPhysAbsoluteDimensions
public void setDimensionActive(int dimension, boolean active)
dimension
- a bit mask describing one or more dimension(s).isDimensionActive(int)
public void setDomainsToDefault()
public void setEnabled(boolean enable)
The default value is true.
public void setEventsEnabled(boolean val)
The default value is false.
isDimensionActive(int)
,
isDimensionAbsolute(int)
,
setDimensionActive(int, boolean)
,
setDimensionAbsolute(int, boolean)
public void setInputARLocked(boolean val)
public void setInputDomain(Domain domain)
setOutputDomain(fr.emn.win32input.jwintab.Domain)
,
setSystemDomain(fr.emn.win32input.jwintab.Domain)
,
TabletDevice.getDomain()
,
Domain
public void setInputSizeLocked(boolean val)
public void setMarginEnabled(boolean val)
The default value is false.
isMarginEnabled()
public void setMarginInside(boolean val)
The default value is false.
isMarginInside()
,
setMarginEnabled(boolean)
public void setMarginLocked(boolean val)
public void setObscured(boolean obscured)
public void setOnTop(boolean top)
The default value is true.
public void setOutputDomain(Domain domain)
setInputDomain(fr.emn.win32input.jwintab.Domain)
,
setSystemDomain(fr.emn.win32input.jwintab.Domain)
,
Domain
,
TabletDevice.getDomain()
public void setPenWindows(boolean val)
The default value is false.
isPenWindows()
,
isPenWindowsSupported()
public void setReportRate(int value)
public void setReportRateToMaximum()
public void setSensitivityLocked(boolean val)
public void setSystemCursor(boolean val)
The default value is true.
isSystemCursor()
public void setSystemDomain(Domain domain)
setOutputDomain(fr.emn.win32input.jwintab.Domain)
,
setSystemDomain(fr.emn.win32input.jwintab.Domain)
,
Domain
,
JWintab.getScreenDomain(int)
public void setSystemOutLocked(boolean val)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |