|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.title.UpdatingTitleMovingImage
public class UpdatingTitleMovingImage
This MovingImage
shows a DockTitle
, the title
can be automatically exchanged.
Constructor Summary | |
---|---|
UpdatingTitleMovingImage(Dockable dockable,
DockTitleVersion version,
DockTitle.Orientation orientation)
Creates a new image. |
Method Summary | |
---|---|
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) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdatingTitleMovingImage(Dockable dockable, DockTitleVersion version, DockTitle.Orientation orientation)
dockable
- the element which is represented by this imageversion
- the contents of this imageorientation
- how to align the titleMethod Detail |
---|
public Point getOffset(Point pressPoint)
MovingImage
getOffset
in interface MovingImage
pressPoint
- 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)
MovingImage
bind
in interface MovingImage
transparency
- if true
, then the window showing this
Component
is transparent. If false
then the window
is not transparent.public Component getComponent()
MovingImage
MovingImage
.
This method must always return the same Component.
getComponent
in interface MovingImage
public void unbind()
MovingImage
MovingImage.bind(boolean)
. The image should remove any connections
to other objects.
unbind
in interface MovingImage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |