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.Constructors and use them to setup the PenProviders. |
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, stopDraggingOutprotected final ComponentPenOwner.Unpauser unpauser
public ComponentPenOwner()
public abstract java.awt.Component getActiveComponent()
public final java.util.Collection<PenProvider.Constructor> getPenProviderConstructors()
PenOwnerPenManager.PenManager(PenOwner) constructor to get the available PenProvider.Constructors and use them to setup the PenProviders.public final PenClip getPenClip()
protected final void pause()
protected void draggingOutDisengaged()
draggingOutDisengaged in class AbstractPenOwnerprotected 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().