datavisualizer.DesktopListener Class Reference

This class listens for the movement of desktop frames and resizes the desktop as necessary to make sure every part of it is reachable by scrolling. More...

Inherits java::awt::event::ActionListener.

List of all members.

Public Member Functions

 DesktopListener (JDesktopPane jPane, JScrollPane jScroller)
 Creates the DesktopListener object.
void componentResized (ComponentEvent e)
 updates the preferred size of the desktop when either an internal frame or the scrollable desktop pane itself is resized
void componentShown (ComponentEvent e)
 revalidates the desktop to ensure the viewport has the proper height/width settings when a new component is shown upon the desktop
void componentMoved (ComponentEvent e)
 updates the preferred size of the desktop when a component is moved
void componentHidden (ComponentEvent e)
 interface placeholder
void actionPerformed (ActionEvent e)
 common actionPerformed method that responds to both button and menu events.
void resizeDesktop ()
 resizes the virtual desktop based upon the locations of its internal frames.

Package Attributes

JDesktopPane m_jPane
 Desktop pane that will need resizing for scroll bars.
JScrollPane m_jScroller
 Scroll pane enclosing m_jPane.


Detailed Description

This class listens for the movement of desktop frames and resizes the desktop as necessary to make sure every part of it is reachable by scrolling.

Constructor & Destructor Documentation

datavisualizer.DesktopListener.DesktopListener ( JDesktopPane  jPane,
JScrollPane  jScroller 
)

Creates the DesktopListener object.

Parameters:
jPane The pane to resize as necessary
jScroller The scroll pane enclosing jPane


Member Function Documentation

void datavisualizer.DesktopListener.componentResized ( ComponentEvent  e  ) 

updates the preferred size of the desktop when either an internal frame or the scrollable desktop pane itself is resized

Parameters:
e the ComponentEvent

void datavisualizer.DesktopListener.componentShown ( ComponentEvent  e  ) 

revalidates the desktop to ensure the viewport has the proper height/width settings when a new component is shown upon the desktop

Parameters:
e the ComponentEvent

void datavisualizer.DesktopListener.componentMoved ( ComponentEvent  e  ) 

updates the preferred size of the desktop when a component is moved

Parameters:
e the ComponentEvent

void datavisualizer.DesktopListener.componentHidden ( ComponentEvent  e  ) 

interface placeholder

Parameters:
e the ComponentEvent

void datavisualizer.DesktopListener.actionPerformed ( ActionEvent  e  ) 

common actionPerformed method that responds to both button and menu events.

If no action command provided in the ActionEvent, selects the frame associated with the current button / menu item (if any).

Parameters:
e the ActionEvent

void datavisualizer.DesktopListener.resizeDesktop (  ) 

resizes the virtual desktop based upon the locations of its internal frames.

This updates the desktop scrollbars in real-time. Executes as an "invoked later" thread for a slight perceived performance boost.


Member Data Documentation

Desktop pane that will need resizing for scroll bars.

Scroll pane enclosing m_jPane.


The documentation for this class was generated from the following file:

Generated on Tue Apr 19 13:59:31 2011 for SORTIE Java Interface by  doxygen 1.5.6