public class DefaultDockableMovingImageFactory extends 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 DockableMovingImageFactorys 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 DockableMovingImageFactorys 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)
DockableMovingImageFactorydockable.create in interface DockableMovingImageFactorycontroller - The controller which will be responsible for the titledockable - The Dockable which is snatchednullpublic MovingImage create(DockController controller, DockTitle snatched)
DockableMovingImageFactorysnatched.create in interface DockableMovingImageFactorycontroller - The controller which will be responsible for the titlesnatched - The title which is grabbed by the usernullCopyright © 2017 Docking Frames. All rights reserved.