public abstract class AbstractScreenWindowShape extends 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 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)
ScreenWindowShapeScreenDockWindow 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 ScreenWindowShapecallback - the window, or nullpublic ScreenWindowShapeCallback getCallback()
nullpublic void reshape()
protected abstract Shape getShape()
nullpublic void onResize()
ScreenWindowShapeScreenDockWindow if its size has changed, can lead to a call to ScreenWindowShapeCallback.setShape(java.awt.Shape)onResize in interface ScreenWindowShapepublic void onShown()
ScreenWindowShapeScreenDockWindow if it was made visible, can lead to a call to ScreenWindowShapeCallback.setShape(java.awt.Shape)onShown in interface ScreenWindowShapeCopyright © 2017 Docking Frames. All rights reserved.