public static interface PenProvider.Constructor
PenProvider
is constructed using a Constructor
. The available Constructor
s are given by the PenOwner.getPenProviderConstructors()
and are used by the PenManager
to try to construct one PenProvider
for each Constructor
.Modifier and Type | Method and Description |
---|---|
boolean |
construct(PenManager pm)
This method constructs the
PenProvider . |
boolean |
constructable(PenManager pm) |
PenProvider |
getConstructed() |
PenProvider.ConstructionException |
getConstructionException() |
int |
getExpectedNativeBuild() |
java.lang.String |
getName() |
int |
getNativeBuild() |
int |
getNativeVersion() |
PenManager |
getPenManager() |
java.lang.String getName()
PenProvider
to access the pen/tablet.boolean constructable(PenManager pm)
true
if the PenProvider
can be constructed on this system, false
otherwise.This method usually test for the name of the operating system and returns true
if it matches an operating system in which this provider can run.boolean construct(PenManager pm)
PenProvider
. It is called only when constructable(PenManager)
returns true
. When this methods completes, it is expected that the getConstructed()
method returns the PenProvider
constructed. If the PenProvider
couldn't be constructed due to some condition (e.g. the required native drivers are not present) then the getConstructionException()
method is expected to return an exception describing the condition.true
if the PenProvider
was constructed. false
if the PenProvider
couldn't be constructed.PenManager getPenManager()
PenManager
which called the construct(PenManager)
method. null
if the construct(PenManager)
has not being called.PenProvider.ConstructionException getConstructionException()
PenProvider
from being constructed. null
if the PenProvider
was constructed on the construct(PenManager)
method call or if it has not yet being called.PenProvider getConstructed()
PenProvider
constructed when construct(PenManager)
was called. null
if it couldn't be constructed or if it has not yet being called.int getNativeVersion()
-1
if the provider does not use a native library. The version is used to construct the native library name.int getNativeBuild()
-1
if the provider does not use a native library.int getExpectedNativeBuild()
-1
if the provider does not use a native library.