com.klg.jclass.swing
Class JCMDIPane.MDIDesktopManager
java.lang.Object
|
+--com.klg.jclass.swing.JCMDIPane.MDIDesktopManager
- All Implemented Interfaces:
- DesktopManager, Serializable
- Enclosing class:
- JCMDIPane
- public class JCMDIPane.MDIDesktopManager
- extends Object
- implements DesktopManager, Serializable
This inner class wraps a PLAF-specific desktop manager and overrides its
basic window dragging and resizing behavior to optionally force
the use of wireframes (for speed). It also overrides the maximization
behavior to provide maximal use of screen real estate and traps
activation and deactivation of frames to handle tool and menu bar
switching.
- See Also:
- Serialized Form
Method Summary |
void |
activateFrame(JInternalFrame f)
|
void |
beginDraggingFrame(JComponent f)
|
void |
beginResizingFrame(JComponent f,
int direction)
|
void |
closeFrame(JInternalFrame f)
|
void |
deactivateFrame(JInternalFrame f)
|
void |
deiconifyFrame(JInternalFrame f)
|
void |
dragFrame(JComponent f,
int x,
int y)
|
void |
endDraggingFrame(JComponent f)
|
void |
endResizingFrame(JComponent f)
|
DesktopManager |
getDesktopManager()
Returns the desktop manager that this class wraps. |
void |
iconifyFrame(JInternalFrame f)
|
void |
maximizeFrame(JInternalFrame f)
|
void |
minimizeFrame(JInternalFrame f)
|
void |
openFrame(JInternalFrame f)
|
void |
resizeFrame(JComponent f,
int x,
int y,
int width,
int height)
|
void |
setBoundsForFrame(JComponent f,
int x,
int y,
int width,
int height)
|
void |
setDesktopManager(DesktopManager manager)
Sets the desktop manager that this class wraps. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
manager
protected DesktopManager manager
JCMDIPane.MDIDesktopManager
public JCMDIPane.MDIDesktopManager(DesktopManager manager)
getDesktopManager
public DesktopManager getDesktopManager()
- Returns the desktop manager that this class wraps.
- Returns:
- desktop manager
setDesktopManager
public void setDesktopManager(DesktopManager manager)
- Sets the desktop manager that this class wraps.
- Parameters:
manager
-
openFrame
public void openFrame(JInternalFrame f)
- Specified by:
openFrame
in interface DesktopManager
closeFrame
public void closeFrame(JInternalFrame f)
- Specified by:
closeFrame
in interface DesktopManager
maximizeFrame
public void maximizeFrame(JInternalFrame f)
- Specified by:
maximizeFrame
in interface DesktopManager
minimizeFrame
public void minimizeFrame(JInternalFrame f)
- Specified by:
minimizeFrame
in interface DesktopManager
iconifyFrame
public void iconifyFrame(JInternalFrame f)
- Specified by:
iconifyFrame
in interface DesktopManager
deiconifyFrame
public void deiconifyFrame(JInternalFrame f)
- Specified by:
deiconifyFrame
in interface DesktopManager
activateFrame
public void activateFrame(JInternalFrame f)
- Specified by:
activateFrame
in interface DesktopManager
deactivateFrame
public void deactivateFrame(JInternalFrame f)
- Specified by:
deactivateFrame
in interface DesktopManager
beginDraggingFrame
public void beginDraggingFrame(JComponent f)
- Specified by:
beginDraggingFrame
in interface DesktopManager
dragFrame
public void dragFrame(JComponent f,
int x,
int y)
- Specified by:
dragFrame
in interface DesktopManager
endDraggingFrame
public void endDraggingFrame(JComponent f)
- Specified by:
endDraggingFrame
in interface DesktopManager
beginResizingFrame
public void beginResizingFrame(JComponent f,
int direction)
- Specified by:
beginResizingFrame
in interface DesktopManager
resizeFrame
public void resizeFrame(JComponent f,
int x,
int y,
int width,
int height)
- Specified by:
resizeFrame
in interface DesktopManager
endResizingFrame
public void endResizingFrame(JComponent f)
- Specified by:
endResizingFrame
in interface DesktopManager
setBoundsForFrame
public void setBoundsForFrame(JComponent f,
int x,
int y,
int width,
int height)
- Specified by:
setBoundsForFrame
in interface DesktopManager