public class TitleMovingImage extends Object implements MovingImage
DockTitle to paint its content.| Constructor and Description |
|---|
TitleMovingImage(Dockable dockable,
DockTitle title)
Creates a new image.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(boolean transparency)
Called before this image is displayed.
|
Component |
getComponent()
Gets a Component which represents the
MovingImage. |
Point |
getOffset(Point pressPoint)
Gest the preferred offset of this image in respect to the mouse.
|
void |
unbind()
The reverse of
MovingImage.bind(boolean). |
public Point getOffset(Point pressPoint)
MovingImagegetOffset in interface MovingImagepressPoint - the position of the mouse in respect to the element that was selected
and that resulted in the creation of this image.null if a default offset should be usedpublic void bind(boolean transparency)
MovingImagebind in interface MovingImagetransparency - if true, then the window showing this
Component is transparent. If false then the window
is not transparent.public Component getComponent()
MovingImageMovingImage.
This method must always return the same Component.getComponent in interface MovingImagepublic void unbind()
MovingImageMovingImage.bind(boolean). The image should remove any connections
to other objects.unbind in interface MovingImageCopyright © 2017 Docking Frames. All rights reserved.