|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.screen.window.ScreenWindowShapeAdapter
public class ScreenWindowShapeAdapter
The ScreenWindowShapeAdapter
makes a connection between a ScreenDockWindow
and a ScreenWindowShape
forwarding events and calls from one of the to the other.
Constructor Summary | |
---|---|
ScreenWindowShapeAdapter(ScreenDockWindow screenDockWindow,
Window window)
Creates a new adapter. |
Method Summary | |
---|---|
void |
disable()
Disables this adapater, the ScreenWindowShape is set to null by this method. |
ScreenDockWindow |
getScreenDockWindow()
Gets the ScreenDockWindow whose shape is changed. |
Window |
getWindow()
Gets the Window whose shape is changed. |
boolean |
isEnabled()
Whether this adapter actually forwards the shapes. |
void |
setShape(ScreenWindowShape shape)
Sets the shape to apply, this method does nothing if this adapter is not enabled . |
protected void |
setShape(Shape shape)
Sets the shape of the window . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScreenWindowShapeAdapter(ScreenDockWindow screenDockWindow, Window window)
screenDockWindow
- the window representing window
window
- the window whose shape is changedMethod Detail |
---|
public ScreenDockWindow getScreenDockWindow()
ScreenDockWindow
whose shape is changed.
null
public Window getWindow()
Window
whose shape is changed.
null
public boolean isEnabled()
public void disable()
ScreenWindowShape
is set to null
by this method.
public void setShape(ScreenWindowShape shape)
enabled
.
shape
- the shape to apply or null
protected void setShape(Shape shape)
the window
. This method calls Workarounds.setTransparent(Window, Shape)
,
if transparency cannot be set then disable()
is called.
shape
- the shape to set, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |