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 Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
beginResizingFrame
(JComponent f, int direction) void
centerFrame
(JInternalFrame frame) void
void
dragFrame
(JComponent f, int newX, int newY) void
void
void
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.void
void
Restores the frame back to its size and position prior to amaximizeFrame
call.void
Evaluates what the size of the desktop pane should be given the currently opened windows, and sets it to that size.void
resizeFrame
(JComponent f, int newX, int newY, int newWidth, int newHeight) void
setBoundsForFrame
(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.DefaultDesktopManager
deactivateFrame, deiconifyFrame, getBoundsForIconOf, getPreviousBounds, iconifyFrame, openFrame, removeIconFor, setPreviousBounds, setWasIcon, wasIcon
-
Constructor Details
-
DockingDesktopManager
-
-
Method Details
-
endResizingFrame
- Specified by:
endResizingFrame
in interfaceDesktopManager
- Overrides:
endResizingFrame
in classDefaultDesktopManager
-
endDraggingFrame
- Specified by:
endDraggingFrame
in interfaceDesktopManager
- Overrides:
endDraggingFrame
in classDefaultDesktopManager
-
centerFrame
-
layoutDocks
public 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.
-
resizeDesktop
public 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:
resizeFrame
in interfaceDesktopManager
- Overrides:
resizeFrame
in classDefaultDesktopManager
-
setBoundsForFrame
Sets the size for the frame, and calls f.revalidate() if the size changed.- Specified by:
setBoundsForFrame
in interfaceDesktopManager
- Overrides:
setBoundsForFrame
in classDefaultDesktopManager
-
dragFrame
- Specified by:
dragFrame
in interfaceDesktopManager
- Overrides:
dragFrame
in classDefaultDesktopManager
-
beginDraggingFrame
- Specified by:
beginDraggingFrame
in interfaceDesktopManager
- Overrides:
beginDraggingFrame
in classDefaultDesktopManager
-
beginResizingFrame
- Specified by:
beginResizingFrame
in interfaceDesktopManager
- Overrides:
beginResizingFrame
in classDefaultDesktopManager
-
closeFrame
- Specified by:
closeFrame
in interfaceDesktopManager
- Overrides:
closeFrame
in classDefaultDesktopManager
-
minimizeFrame
Restores the frame back to its size and position prior to amaximizeFrame
call.- Specified by:
minimizeFrame
in interfaceDesktopManager
- Overrides:
minimizeFrame
in classDefaultDesktopManager
- Parameters:
f
- theJInternalFrame
to be restored
-
maximizeFrame
- Specified by:
maximizeFrame
in interfaceDesktopManager
- Overrides:
maximizeFrame
in classDefaultDesktopManager
-
activateFrame
- Specified by:
activateFrame
in interfaceDesktopManager
- Overrides:
activateFrame
in classDefaultDesktopManager
-