public abstract class AbstractScreenWindowShape extends java.lang.Object implements ScreenWindowShape
ScreenWindowShape
does nothing on its own, but keeps track of the
ScreenWindowShapeCallback
.reshape()
to update the Shape
of the ScreenDockWindow
.Constructor and Description |
---|
AbstractScreenWindowShape() |
Modifier and Type | Method and Description |
---|---|
ScreenWindowShapeCallback |
getCallback()
Gets information about the window whose shape is changed.
|
protected abstract java.awt.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()
|
void |
setCallback(ScreenWindowShapeCallback callback)
Informs this shape about the
ScreenDockWindow that can be configured by this . |
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()
protected abstract java.awt.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