glass.eclipse.theme
Class CMiniPreviewMovingImageFactory

java.lang.Object
  extended by glass.eclipse.theme.CMiniPreviewMovingImageFactory
All Implemented Interfaces:
bibliothek.gui.dock.dockable.DockableMovingImageFactory

public class CMiniPreviewMovingImageFactory
extends Object
implements bibliothek.gui.dock.dockable.DockableMovingImageFactory

A factory that makes a snapshot of the Dockable which will be represented by its MovingImage.

Author:
Thomas Hilbert

Constructor Summary
CMiniPreviewMovingImageFactory(int thumbSize)
          Creates a new factory.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMiniPreviewMovingImageFactory

public CMiniPreviewMovingImageFactory(int thumbSize)
Creates a new factory.

Parameters:
max - the maximal size of the images created by this factory
Method Detail

create

public bibliothek.gui.dock.dockable.MovingImage create(bibliothek.gui.DockController controller,
                                                       bibliothek.gui.dock.title.DockTitle snatched)
Specified by:
create in interface bibliothek.gui.dock.dockable.DockableMovingImageFactory

createImageFrom

public BufferedImage createImageFrom(bibliothek.gui.DockController controller,
                                     bibliothek.gui.Dockable dockable)
This method creates a new image that contains the contents of dockable.

Parameters:
controller - the controller for which the image is made
dockable - the element whose image should be taken
Returns:
an image of dockable which is not larger than the maximum Dimension that was given to this factory in the constructor.
See Also:
AWTComponentCaptureStrategy

create

public bibliothek.gui.dock.dockable.MovingImage create(bibliothek.gui.DockController controller,
                                                       bibliothek.gui.Dockable dockable)
Specified by:
create in interface bibliothek.gui.dock.dockable.DockableMovingImageFactory