|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.screen.DisplayerScreenDockWindow
public abstract class DisplayerScreenDockWindow
A window that uses a DockableDisplayer
to show the Dockable
.
Constructor Summary | |
---|---|
DisplayerScreenDockWindow(ScreenDockStation station)
Creates a new window |
Method Summary | |
---|---|
DockController |
getController()
Gets the controller in whose realm this window is used. |
Dockable |
getDockable()
Gets the Dockable which is currently shown in this window. |
Point |
getOffsetDrop()
Gets an offset that will be added to the location when dropping a window. |
Point |
getOffsetMove()
Gets an offset that will be subtracted from the location when moving the window around. |
ScreenDockStation |
getStation()
Gets the station for which this window is used. |
protected abstract Component |
getWindowComponent()
Gets the component on which ScreenDockWindow.setWindowBounds(java.awt.Rectangle)
is applied. |
boolean |
inCombineArea(int x,
int y)
Checks what would happen if a Dockable is dropped at point
x/y . |
boolean |
isShowTitle()
Tells whether the DockTitle is generally shown. |
void |
setController(DockController controller)
Sets the controller in whose realm this window will be used. |
void |
setDockable(Dockable dockable)
Sets the Dockable which should be shown on this window. |
void |
setShowTitle(boolean showTitle)
Sets whether the DockTitle should be shown or not. |
protected abstract void |
showDisplayer(DockableDisplayer displayer)
Forces the subclass of this window to show displayer . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.station.screen.ScreenDockWindow |
---|
checkWindowBounds, destroy, getDockableInsets, getWindowBounds, setPaintCombining, setVisible, setWindowBounds, toFront, validate |
Constructor Detail |
---|
public DisplayerScreenDockWindow(ScreenDockStation station)
station
- the owner of this window, not null
Method Detail |
---|
protected abstract void showDisplayer(DockableDisplayer displayer)
displayer
. Only
one displayer should be shown at any time. A new displayer replaces
an old one.
displayer
- the displayer to show or null
to remove
the current displayerprotected abstract Component getWindowComponent()
ScreenDockWindow.setWindowBounds(java.awt.Rectangle)
is applied.
public void setShowTitle(boolean showTitle)
DockTitle
should be shown or not.
showTitle
- true
if the title should be visible,
false
otherwisepublic boolean isShowTitle()
DockTitle
is generally shown.
true
if the title is shownpublic Dockable getDockable()
ScreenDockWindow
Dockable
which is currently shown in this window.
getDockable
in interface ScreenDockWindow
null
ScreenDockWindow.setDockable(Dockable)
public void setDockable(Dockable dockable)
ScreenDockWindow
Dockable
which should be shown on this window.
setDockable
in interface ScreenDockWindow
dockable
- the new element, can be null
to remove
an old Dockable
public void setController(DockController controller)
ScreenDockWindow
ScreenDockStation
was set, so AbstractDockStation.getController()
will always
return the same value as controller
. This also implies
that any method of the station called from this method already uses the
new controller.
setController
in interface ScreenDockWindow
controller
- the new controller, can be null
public Point getOffsetDrop()
ScreenDockWindow
null
indicates that no such offset is
available.
getOffsetDrop
in interface ScreenDockWindow
null
public Point getOffsetMove()
ScreenDockWindow
DockTitle
of the Dockable
shown in this
window. The value null
can be returned to indicate
that such an offset is not available.
getOffsetMove
in interface ScreenDockWindow
null
public boolean inCombineArea(int x, int y)
ScreenDockWindow
Dockable
is dropped at point
x/y
.
inCombineArea
in interface ScreenDockWindow
x
- an x coordinate in the screeny
- an y coordinate in the screen
true
if dropping a Dockable
at
x/y
should lead to a combination of the dropped element
and the element in this window, false
otherwisepublic DockController getController()
null
public ScreenDockStation getStation()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |