| java.lang.Object java.awt.event.WindowAdapter org.netbeans.core.windows.view.dnd.ZOrderManager
ZOrderManager | final public class ZOrderManager extends WindowAdapter (Code) | | Holds and manages z-order of attached windows.
Note, manager is NetBeans specific, not general. It automatically attaches
main window and expects that all registered zOrder are always above
this main window.
Not thread safe, must be called from EQT.
author: Dafe Simonek |
attachWindow | public void attachWindow(RootPaneContainer rpc)(Code) | | Adds given window (RootPaneContainer) to the set of windows which are tracked.
|
clear | public void clear()(Code) | | |
detachWindow | public boolean detachWindow(RootPaneContainer rpc)(Code) | | Stops to track given window (RootPaneContainer).
|
getInstance | public static ZOrderManager getInstance()(Code) | | Returns singleton instance of ZOrderManager
|
isOnTop | public boolean isOnTop(RootPaneContainer rpc, Point screenLoc)(Code) | | Finds out whether given pane container (window) is not under any other
window registered in this manager at given screen point.
Parameters: rpc - Pane container (window) Parameters: screenLoc - point relative to screen true when given window is on top of other registered windows at given point |
setExcludeFromOrder | public void setExcludeFromOrder(RootPaneContainer rpc, boolean exclude)(Code) | | Excludes/reincludes given RootPaneContainer from z-ordering. Excluded RootPaneContainer
never returns true from isOnTop call, even if it is on top of window stack.
RootPaneContainer that is second on top is returned in such situation.
Used to distinguish RootPaneContainer that is being dragged.
Parameters: rpc - Pane container to exlude or include back into rthe z-ordering. Parameters: exclude - true when exclusion is needed, false when normal defaultbehaviour is desirable. |
windowOpened | public void windowOpened(WindowEvent e)(Code) | | Implementation of WindowListener *****
|
|
|