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
JLFDesktopMenu(JLFDesktopPaneUI)
-
change()
- This method is called to notify the desktop menu
that the number of iconized windows has changed.
componentHidden(ComponentEvent)
-
componentMoved(ComponentEvent)
-
componentResized(ComponentEvent)
- This implementation from ComponentListener is designed to
deal with the case that someone resizes the desktop.
componentShown(ComponentEvent)
-
getPopupLocation(JPopupMenu)
- gets the location (in this components coordinate system
which specifies where to display the popup menu
locateInParent(JComponent)
- this function moves the DesktopMenu to the correct location in it's parent
container.
paint(Graphics)
- this override from component displays the proper look
of the desktop menu.
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.
JLFDesktopMenu
public JLFDesktopMenu(JLFDesktopPaneUI pane)
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.
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.
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.
paint
public void paint(Graphics g)
- this override from component displays the proper look
of the desktop menu.
- Overrides:
- paint in class JComponent
getPopupLocation
public Point getPopupLocation(JPopupMenu pop)
- gets the location (in this components coordinate system
which specifies where to display the popup menu
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
componentHidden
public void componentHidden(ComponentEvent e)
componentShown
public void componentShown(ComponentEvent e)
componentMoved
public void componentMoved(ComponentEvent e)
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature