public class WindowInfo extends Object implements WindowListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
first
True if the window has not yet been shown onscreen.
|
protected static int |
gap
Current gap from top left edge of screen.
|
protected static int |
GAP
Gap between cascading windows.
|
protected boolean |
pack
Whether to pack this window the first time it is shown.
|
protected Window |
window
Window for which this object stores additional information.
|
Constructor and Description |
---|
WindowInfo(Window w,
boolean pack)
Creates a new window information object for the given window, with the pack
flag indicating whether the window is to be packed prior to being shown for
the first time.
|
Modifier and Type | Method and Description |
---|---|
Window |
getWindow()
Gets the associated window.
|
void |
setState(WindowState ws)
Sets the window to match the given state.
|
void |
showWindow()
Displays the window onscreen.
|
void |
windowActivated(WindowEvent e) |
void |
windowClosed(WindowEvent e) |
void |
windowClosing(WindowEvent e) |
void |
windowDeactivated(WindowEvent e) |
void |
windowDeiconified(WindowEvent e) |
void |
windowIconified(WindowEvent e) |
void |
windowOpened(WindowEvent e) |
protected static final int GAP
protected static int gap
protected Window window
protected boolean pack
protected boolean first
public WindowInfo(Window w, boolean pack)
public void showWindow()
public void setState(WindowState ws)
public Window getWindow()
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
Copyright © 2015–2022 SciJava. All rights reserved.