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. More...
 
void componentResized (ComponentEvent e)
 updates the preferred size of the desktop when either an internal frame or the scrollable desktop pane itself is resized More...
 
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 More...
 
void componentMoved (ComponentEvent e)
 updates the preferred size of the desktop when a component is moved More...
 
void componentHidden (ComponentEvent e)
 interface placeholder More...
 
void actionPerformed (ActionEvent e)
 common actionPerformed method that responds to both button and menu events. More...
 
void resizeDesktop ()
 resizes the virtual desktop based upon the locations of its internal frames. More...
 

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

◆ DesktopListener()

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

◆ actionPerformed()

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

◆ componentHidden()

void sortie.datavisualizer.DesktopListener.componentHidden ( ComponentEvent  e)

interface placeholder

Parameters
ethe ComponentEvent

◆ componentMoved()

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

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

Parameters
ethe ComponentEvent

◆ componentResized()

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

◆ componentShown()

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

◆ resizeDesktop()

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: