public class CMiniPreviewMovingImageFactory extends Object implements bibliothek.gui.dock.dockable.DockableMovingImageFactory
Dockable
which will be represented
by its MovingImage
.Constructor and Description |
---|
CMiniPreviewMovingImageFactory(int thumbSize)
Creates a new factory.
|
Modifier and Type | Method and Description |
---|---|
bibliothek.gui.dock.dockable.MovingImage |
create(bibliothek.gui.DockController controller,
bibliothek.gui.Dockable dockable) |
bibliothek.gui.dock.dockable.MovingImage |
create(bibliothek.gui.DockController controller,
bibliothek.gui.dock.title.DockTitle snatched) |
BufferedImage |
createImageFrom(bibliothek.gui.DockController controller,
bibliothek.gui.Dockable dockable)
This method creates a new image that contains the contents of
dockable . |
public CMiniPreviewMovingImageFactory(int thumbSize)
max
- the maximal size of the images created by this factorypublic bibliothek.gui.dock.dockable.MovingImage create(bibliothek.gui.DockController controller, bibliothek.gui.dock.title.DockTitle snatched)
create
in interface bibliothek.gui.dock.dockable.DockableMovingImageFactory
public BufferedImage createImageFrom(bibliothek.gui.DockController controller, bibliothek.gui.Dockable dockable)
dockable
.controller
- the controller for which the image is madedockable
- the element whose image should be takendockable
which is not larger than the
maximum Dimension
that was given to this factory in the
constructor.AWTComponentCaptureStrategy
public bibliothek.gui.dock.dockable.MovingImage create(bibliothek.gui.DockController controller, bibliothek.gui.Dockable dockable)
create
in interface bibliothek.gui.dock.dockable.DockableMovingImageFactory