org.jhotdraw.gui
Class MDIDesktopManager

java.lang.Object
  extended by javax.swing.DefaultDesktopManager
      extended by org.jhotdraw.gui.MDIDesktopManager
All Implemented Interfaces:
java.io.Serializable, javax.swing.DesktopManager

 class MDIDesktopManager
extends javax.swing.DefaultDesktopManager

Private class used to replace the standard DesktopManager for JDesktopPane. Used to provide scrollbar functionality.


Field Summary
private  JMDIDesktopPane desktop
           
 
Constructor Summary
MDIDesktopManager(JMDIDesktopPane newDesktop)
           
 
Method Summary
 void endDraggingFrame(javax.swing.JComponent f)
           
 void endResizingFrame(javax.swing.JComponent f)
           
 javax.swing.JScrollPane getScrollPane()
           
private  java.awt.Insets getScrollPaneInsets()
           
protected  void resizeDesktop()
           
 void setNormalSize()
           
 
Methods inherited from class javax.swing.DefaultDesktopManager
activateFrame, beginDraggingFrame, beginResizingFrame, closeFrame, deactivateFrame, deiconifyFrame, dragFrame, getBoundsForIconOf, getPreviousBounds, iconifyFrame, maximizeFrame, minimizeFrame, openFrame, removeIconFor, resizeFrame, setBoundsForFrame, setPreviousBounds, setWasIcon, wasIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desktop

private JMDIDesktopPane desktop
Constructor Detail

MDIDesktopManager

public MDIDesktopManager(JMDIDesktopPane newDesktop)
Method Detail

endResizingFrame

public void endResizingFrame(javax.swing.JComponent f)
Specified by:
endResizingFrame in interface javax.swing.DesktopManager
Overrides:
endResizingFrame in class javax.swing.DefaultDesktopManager

endDraggingFrame

public void endDraggingFrame(javax.swing.JComponent f)
Specified by:
endDraggingFrame in interface javax.swing.DesktopManager
Overrides:
endDraggingFrame in class javax.swing.DefaultDesktopManager

setNormalSize

public void setNormalSize()

getScrollPaneInsets

private java.awt.Insets getScrollPaneInsets()

getScrollPane

public javax.swing.JScrollPane getScrollPane()

resizeDesktop

protected void resizeDesktop()