Class DockingDesktopManager
java.lang.Object
javax.swing.DefaultDesktopManager
com.inductiveautomation.factorypmi.application.DockingDesktopManager
- All Implemented Interfaces:
- Serializable,- DesktopManager
The scrolling portion of this class borrowed from JavaWorld See
 http://www.javaworld.com/javaworld/jw-05-2001/jw-0525-mdi.html
- See Also:
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidvoidbeginResizingFrame(JComponent f, int direction) voidcenterFrame(JInternalFrame frame) voidvoiddragFrame(JComponent f, int newX, int newY) voidvoidvoidThis function verifies the layout of the docked windows, by checking to see if they are in the correct position, and moving/resizing them if necessary.voidvoidRestores the frame back to its size and position prior to amaximizeFramecall.voidEvaluates what the size of the desktop pane should be given the currently opened windows, and sets it to that size.voidresizeFrame(JComponent f, int newX, int newY, int newWidth, int newHeight) voidsetBoundsForFrame(JComponent f, int newX, int newY, int newWidth, int newHeight) Sets the size for the frame, and calls f.revalidate() if the size changed.Methods inherited from class javax.swing.DefaultDesktopManagerdeactivateFrame, deiconifyFrame, getBoundsForIconOf, getPreviousBounds, iconifyFrame, openFrame, removeIconFor, setPreviousBounds, setWasIcon, wasIcon
- 
Constructor Details- 
DockingDesktopManager
 
- 
- 
Method Details- 
endResizingFrame- Specified by:
- endResizingFramein interface- DesktopManager
- Overrides:
- endResizingFramein class- DefaultDesktopManager
 
- 
endDraggingFrame- Specified by:
- endDraggingFramein interface- DesktopManager
- Overrides:
- endDraggingFramein class- DefaultDesktopManager
 
- 
centerFrame
- 
layoutDockspublic void layoutDocks()This function verifies the layout of the docked windows, by checking to see if they are in the correct position, and moving/resizing them if necessary.It first lays out the EAST and WEST docked windows, if any, then it lays out the NORTH and SOUTH docked windows in the resulting width. Finally, maximized windows are laid-out. 
- 
resizeDesktoppublic void resizeDesktop()Evaluates what the size of the desktop pane should be given the currently opened windows, and sets it to that size.
- 
resizeFrame- Specified by:
- resizeFramein interface- DesktopManager
- Overrides:
- resizeFramein class- DefaultDesktopManager
 
- 
setBoundsForFrameSets the size for the frame, and calls f.revalidate() if the size changed.- Specified by:
- setBoundsForFramein interface- DesktopManager
- Overrides:
- setBoundsForFramein class- DefaultDesktopManager
 
- 
dragFrame- Specified by:
- dragFramein interface- DesktopManager
- Overrides:
- dragFramein class- DefaultDesktopManager
 
- 
beginDraggingFrame- Specified by:
- beginDraggingFramein interface- DesktopManager
- Overrides:
- beginDraggingFramein class- DefaultDesktopManager
 
- 
beginResizingFrame- Specified by:
- beginResizingFramein interface- DesktopManager
- Overrides:
- beginResizingFramein class- DefaultDesktopManager
 
- 
closeFrame- Specified by:
- closeFramein interface- DesktopManager
- Overrides:
- closeFramein class- DefaultDesktopManager
 
- 
minimizeFrameRestores the frame back to its size and position prior to amaximizeFramecall.- Specified by:
- minimizeFramein interface- DesktopManager
- Overrides:
- minimizeFramein class- DefaultDesktopManager
- Parameters:
- f- the- JInternalFrameto be restored
 
- 
maximizeFrame- Specified by:
- maximizeFramein interface- DesktopManager
- Overrides:
- maximizeFramein class- DefaultDesktopManager
 
- 
activateFrame- Specified by:
- activateFramein interface- DesktopManager
- Overrides:
- activateFramein class- DefaultDesktopManager
 
 
-