public abstract class ComponentPenOwner extends AbstractPenOwner
Modifier and Type | Class and Description |
---|---|
protected class |
ComponentPenOwner.Unpauser |
PenOwner.PenManagerHandle
Modifier and Type | Field and Description |
---|---|
protected ComponentPenOwner.Unpauser |
unpauser |
penManagerHandle
Constructor and Description |
---|
ComponentPenOwner() |
Modifier and Type | Method and Description |
---|---|
protected void |
draggingOutDisengaged() |
abstract java.awt.Component |
getActiveComponent() |
PenClip |
getPenClip() |
java.util.Collection<PenProvider.Constructor> |
getPenProviderConstructors()
Called once by the
PenManager.PenManager(PenOwner) constructor to get the available PenProvider.Constructor s and use them to setup the PenProvider s. |
protected java.lang.Object |
getPenSchedulerLock(java.awt.Component component)
Checks if the given
Component holds the Component.getTreeLock() before actually getting and returning the PenOwner.PenManagerHandle.getPenSchedulerLock() . |
protected void |
pause() |
enforceSinglePenManager, evalPenEventTag, getPen, init, isDraggingOut, setPenManagerHandle, startDraggingOut, stopDraggingOut
protected final ComponentPenOwner.Unpauser unpauser
public ComponentPenOwner()
public abstract java.awt.Component getActiveComponent()
public final java.util.Collection<PenProvider.Constructor> getPenProviderConstructors()
PenOwner
PenManager.PenManager(PenOwner)
constructor to get the available PenProvider.Constructor
s and use them to setup the PenProvider
s.public final PenClip getPenClip()
protected final void pause()
protected void draggingOutDisengaged()
draggingOutDisengaged
in class AbstractPenOwner
protected java.lang.Object getPenSchedulerLock(java.awt.Component component)
Component
holds the Component.getTreeLock()
before actually getting and returning the PenOwner.PenManagerHandle.getPenSchedulerLock()
. Prefer using this method instead of PenOwner.PenManagerHandle.getPenSchedulerLock()
to be shure you aren't causing deadlocks because the ComponentPenClip
methods hold the Component.getTreeLock()
.