public abstract class AbstractPenProvider extends java.lang.Object implements PenProvider
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPenProvider.AbstractConstructor |
PenProvider.ConstructionException, PenProvider.Constructor
Modifier and Type | Field and Description |
---|---|
protected java.util.List<PenDevice> |
devices |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPenProvider(PenProvider.Constructor constructor) |
Modifier and Type | Method and Description |
---|---|
PenProvider.Constructor |
getConstructor() |
java.util.Collection<PenDevice> |
getDevices() |
PenManager |
getPenManager() |
boolean |
getUseRelativeLocationFilter() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
penManagerPaused
protected AbstractPenProvider(PenProvider.Constructor constructor)
public java.util.Collection<PenDevice> getDevices()
getDevices
in interface PenProvider
Collection
of devices currently owned by this PenProvider
. This Collection
can change over the lifetime of this PenProvider
. Each time the Collection
changes, PenManager.firePenDeviceAdded(PenProvider.Constructor, PenDevice)
or PenManager.firePenDeviceRemoved(PenProvider.Constructor, PenDevice)
must be called to notify the change. Warning: For convenience, there is no need to call PenManager.firePenDeviceAdded(PenProvider.Constructor, PenDevice)
when constructing the PenProvider
inside the Constructor#construct(PenManager)
method because in this case it is automatically called by the PenManager
when calling the Constructor
.public final PenManager getPenManager()
public final PenProvider.Constructor getConstructor()
getConstructor
in interface PenProvider
Constructor
which constructed this PenProvider
.public boolean getUseRelativeLocationFilter()
getUseRelativeLocationFilter
in interface PenProvider
true
if this provider needs a location filter to automatically detect if one of its devices is using mouse (relative) location mode and replace its movement levels values with mouse pointer location values.public java.lang.String toString()
toString
in class java.lang.Object