public class DefaultDockableMovingImageFactory extends java.lang.Object implements DockableMovingImageFactory
DockableMovingImageFactory
usually behaves exactly like
ThemeDockableMovingImageFactory
, but also offers an ExtensionName
for adding additional
factories.Modifier and Type | Field and Description |
---|---|
static Path |
FACTORY_EXTENSION
The name of the
ExtensionName that loads additional DockableMovingImageFactory s as extension. |
Constructor and Description |
---|
DefaultDockableMovingImageFactory(DockController controller)
Creates a new factory using
controller to load extensions. |
DefaultDockableMovingImageFactory(DockController controller,
DockableMovingImageFactory delegate)
Creates a new factory using
controller to load extensions. |
Modifier and Type | Method and Description |
---|---|
MovingImage |
create(DockController controller,
Dockable dockable)
Gets an image which will be shown underneath the cursor.
|
MovingImage |
create(DockController controller,
DockTitle snatched)
Gets an image which will be shown underneath the cursor.
|
public static final Path FACTORY_EXTENSION
ExtensionName
that loads additional DockableMovingImageFactory
s as extension. If
any of the create
methods is called, the result is the return value of the first extension that
does not return null
.public DefaultDockableMovingImageFactory(DockController controller)
controller
to load extensions.controller
- the controller in whose realm this factory is usedpublic DefaultDockableMovingImageFactory(DockController controller, DockableMovingImageFactory delegate)
controller
to load extensions.controller
- the controller in whose realm this factory is useddelegate
- the backup factory used if no extension is present or no extension has a resultpublic MovingImage create(DockController controller, Dockable dockable)
DockableMovingImageFactory
dockable
.create
in interface DockableMovingImageFactory
controller
- The controller which will be responsible for the titledockable
- The Dockable which is snatchednull
public MovingImage create(DockController controller, DockTitle snatched)
DockableMovingImageFactory
snatched
.create
in interface DockableMovingImageFactory
controller
- The controller which will be responsible for the titlesnatched
- The title which is grabbed by the usernull