bibliothek.gui.dock.station.screen.window
Interface ScreenWindowShape

All Known Implementing Classes:
AbstractScreenWindowShape

public interface ScreenWindowShape

The ScreenWindowShape is used by ScreenDockWindow to define which parts of the window are visible and which parts are transparent. The ScreenWindowShape of any window can be configured in WindowConfiguration.

Author:
Benjamin Sigg

Method Summary
 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 setCallback(ScreenWindowShapeCallback callback)
          Informs this shape about the ScreenDockWindow that can be configured by this.
 

Method Detail

setCallback

void setCallback(ScreenWindowShapeCallback callback)
Informs this shape about the ScreenDockWindow that can be configured by this. The methods of callback should be called by the EDT.
To set the shape this class can call ScreenWindowShapeCallback.setShape(java.awt.Shape) at any time.

Parameters:
callback - the window, or null

onResize

void onResize()
Called by the ScreenDockWindow if its size has changed, can lead to a call to ScreenWindowShapeCallback.setShape(java.awt.Shape)


onShown

void onShown()
Called by the ScreenDockWindow if it was made visible, can lead to a call to ScreenWindowShapeCallback.setShape(java.awt.Shape)