|
||||||||||
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.AbstractScreenWindowShape
public abstract class AbstractScreenWindowShape
This implementation of ScreenWindowShape
does nothing on its own, but keeps track of the
ScreenWindowShapeCallback
.
Subclasses should call reshape()
to update the Shape
of the ScreenDockWindow
.
Constructor Summary | |
---|---|
AbstractScreenWindowShape()
|
Method Summary | |
---|---|
ScreenWindowShapeCallback |
getCallback()
Gets information about the window whose shape is changed. |
protected abstract Shape |
getShape()
Calculates the current shape of the window. |
void |
onResize()
Called by the ScreenDockWindow if its size has changed, can lead to a call to ScreenWindowShapeCallback.setShape(java.awt.Shape) |
void |
onShown()
Called by the ScreenDockWindow if it was made visible, can lead to a call to ScreenWindowShapeCallback.setShape(java.awt.Shape) |
void |
reshape()
First checks that the callback is not null , then calls
getShape() and sets the result. |
void |
setCallback(ScreenWindowShapeCallback callback)
Informs this shape about the ScreenDockWindow that can be configured by this . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractScreenWindowShape()
Method Detail |
---|
public void setCallback(ScreenWindowShapeCallback callback)
ScreenWindowShape
ScreenDockWindow
that can be configured by this
. The methods
of callback
should be called by the EDT.ScreenWindowShapeCallback.setShape(java.awt.Shape)
at any time.
setCallback
in interface ScreenWindowShape
callback
- the window, or null
public ScreenWindowShapeCallback getCallback()
null
public void reshape()
callback
is not null
, then calls
getShape()
and sets the result.
protected abstract Shape getShape()
null
public void onResize()
ScreenWindowShape
ScreenDockWindow
if its size has changed, can lead to a call to ScreenWindowShapeCallback.setShape(java.awt.Shape)
onResize
in interface ScreenWindowShape
public void onShown()
ScreenWindowShape
ScreenDockWindow
if it was made visible, can lead to a call to ScreenWindowShapeCallback.setShape(java.awt.Shape)
onShown
in interface ScreenWindowShape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |