Inherits java::awt::event::ActionListener.
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. |
datavisualizer.DesktopListener.DesktopListener | ( | JDesktopPane | jPane, | |
JScrollPane | jScroller | |||
) |
Creates the DesktopListener object.
jPane | The pane to resize as necessary | |
jScroller | The scroll pane enclosing jPane |
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
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
e | the ComponentEvent |
void datavisualizer.DesktopListener.componentMoved | ( | ComponentEvent | e | ) |
updates the preferred size of the desktop when a component is moved
e | the ComponentEvent |
void datavisualizer.DesktopListener.componentHidden | ( | ComponentEvent | e | ) |
interface placeholder
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).
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.
JDesktopPane datavisualizer.DesktopListener.m_jPane [package] |
Desktop pane that will need resizing for scroll bars.
JScrollPane datavisualizer.DesktopListener.m_jScroller [package] |
Scroll pane enclosing m_jPane.