public class AncestorMovingImageFactory extends ScreencaptureMovingImageFactory
DockTitle
and
of Dockable
and shows a screenshot of this component.Constructor and Description |
---|
AncestorMovingImageFactory(Dimension max,
float alpha)
Creates a new factory.
|
Modifier and Type | Method and Description |
---|---|
MovingImage |
create(DockController controller,
Dockable dockable)
Gets an image which will be shown underneath the cursor.
|
create, createImageFrom, createImageFrom, getAlpha, setAlpha
public AncestorMovingImageFactory(Dimension max, float alpha)
max
- the maximal size of the images created by this factory, or null
for not having a maximum sizealpha
- the transparency, where 0 means completely transparent and 1 means completely opaquepublic MovingImage create(DockController controller, Dockable dockable)
DockableMovingImageFactory
dockable
.create
in interface DockableMovingImageFactory
create
in class ScreencaptureMovingImageFactory
controller
- The controller which will be responsible for the titledockable
- The Dockable which is snatchednull