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...
|
| 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...
|
|
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.
◆ DesktopListener()
sortie.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 |
◆ 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
-
◆ componentHidden()
void sortie.datavisualizer.DesktopListener.componentHidden |
( |
ComponentEvent |
e | ) |
|
interface placeholder
- Parameters
-
◆ componentMoved()
void sortie.datavisualizer.DesktopListener.componentMoved |
( |
ComponentEvent |
e | ) |
|
updates the preferred size of the desktop when a component is moved
- Parameters
-
◆ 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
-
◆ 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
-
◆ 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: