SORTIE Java Interface  1
Public Member Functions | List of all members
sortie.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...

Inheritance diagram for sortie.datavisualizer.DesktopListener:

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.
 

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

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

Creates the DesktopListener object.

Parameters
jPaneThe pane to resize as necessary
jScrollerThe scroll pane enclosing jPane

Member Function Documentation

void sortie.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
ethe ActionEvent
void sortie.datavisualizer.DesktopListener.componentHidden ( ComponentEvent  e)

interface placeholder

Parameters
ethe ComponentEvent
void sortie.datavisualizer.DesktopListener.componentMoved ( ComponentEvent  e)

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

Parameters
ethe ComponentEvent
void sortie.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
ethe ComponentEvent
void sortie.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
ethe ComponentEvent
void sortie.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.


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