All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.jlf.JLFDesktopMenu

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----java.awt.swing.JComponent
                            |
                            +----java.awt.swing.jlf.JLFDesktopMenu

public class JLFDesktopMenu
extends JComponent
implements ComponentListener
This class implements the little square in the top-right corner of the JLFDesktopPane. It doesn't have much behavior. It is mostly in charge of display.

See Also:
JLFDesktopPaneUI, JLFDesktopManager

Constructor Index

 o JLFDesktopMenu(JLFDesktopPaneUI)

Method Index

 o change()
This method is called to notify the desktop menu that the number of iconized windows has changed.
 o componentHidden(ComponentEvent)
 o componentMoved(ComponentEvent)
 o componentResized(ComponentEvent)
This implementation from ComponentListener is designed to deal with the case that someone resizes the desktop.
 o componentShown(ComponentEvent)
 o getPopupLocation(JPopupMenu)
gets the location (in this components coordinate system which specifies where to display the popup menu
 o locateInParent(JComponent)
this function moves the DesktopMenu to the correct location in it's parent container.
 o paint(Graphics)
this override from component displays the proper look of the desktop menu.
 o resizeForWindows()
This method changes the size of the Desktop menu to allow each iconized window representation to fit within the bounds of the window it is called by the change() method in this class.

Constructors

 o JLFDesktopMenu
public JLFDesktopMenu(JLFDesktopPaneUI pane)

Methods

 o locateInParent
protected void locateInParent(JComponent parent)
this function moves the DesktopMenu to the correct location in it's parent container. In JLF this is the Top-Right corner of the window.

 o resizeForWindows
protected void resizeForWindows()
This method changes the size of the Desktop menu to allow each iconized window representation to fit within the bounds of the window it is called by the change() method in this class.

 o change
public void change()
This method is called to notify the desktop menu that the number of iconized windows has changed. When this function is called it causes the desktop menu to update its display to reflect the current state of the system.

 o paint
public void paint(Graphics g)
this override from component displays the proper look of the desktop menu.

Overrides:
paint in class JComponent
 o getPopupLocation
public Point getPopupLocation(JPopupMenu pop)
gets the location (in this components coordinate system which specifies where to display the popup menu

 o componentResized
public void componentResized(ComponentEvent e)
This implementation from ComponentListener is designed to deal with the case that someone resizes the desktop. If the desktop is resized then this is called back and we can adjust the location of the desktop menu

 o componentHidden
public void componentHidden(ComponentEvent e)
 o componentShown
public void componentShown(ComponentEvent e)
 o componentMoved
public void componentMoved(ComponentEvent e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature