|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils.FramesManager
The FramesManager
manages open frames and
the making of new frames.
Nested Class Summary | |
class |
FramesManager.CloseWindowListener
The listener to handle window/frame closing events. |
Constructor Summary | |
FramesManager(GUI gui)
Constructor that initializes the HashMap to hold open frames
and associates the given gui with this FramesManager . |
Method Summary | |
void |
decrementOpenPlotsCount()
Decrements the count variable for the number of plot windows open. |
javax.swing.JFrame |
getFrame(java.lang.String key)
Returns the open frame with the given key . |
int |
getOpenPlotsCount()
Returns the number of open plot windows. |
void |
incrementOpenPlotsCount()
Increments the count variable for the number of plot windows open. |
boolean |
isOpenFrame(java.lang.String key)
Returns whether or not the frame with the given key
is open or not. |
javax.swing.JFrame |
makeNewFrame(java.lang.String key,
java.lang.String frameTitle)
Makes a new frame and adds it to the HashMap of open frames
using the given key . |
javax.swing.JFrame |
makeNewFrame(java.lang.String key,
java.lang.String frameTitle,
java.awt.Point location)
Makes a new frame and adds it to the HashMap of open frames
using the given key . |
void |
removeOpenFrame(javax.swing.JFrame frame)
Removes the given frame from the HashMap of open frames. |
void |
removeOpenFrame(java.lang.String key)
Removes the frame with the given key from the HashMap of open frames. |
void |
resetOpenPlotsCount()
Resets the counter for the number of open plot windows. |
void |
toFront(java.lang.String key)
Focuses the frame with the given key to the front (or top). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FramesManager(GUI gui)
HashMap
to hold open frames
and associates the given gui
with this FramesManager
.
gui
- the GUI
to associate with this FramesManager
Method Detail |
public void decrementOpenPlotsCount()
public javax.swing.JFrame getFrame(java.lang.String key)
key
.
key
public int getOpenPlotsCount()
public void incrementOpenPlotsCount()
public boolean isOpenFrame(java.lang.String key)
key
is open or not.
key
- the key
to match to see if the frame is open
true
, if the frame with the given key
is open;
false
, otherwisepublic javax.swing.JFrame makeNewFrame(java.lang.String key, java.lang.String frameTitle)
HashMap
of open frames
using the given key
. Sets the frame's title to the given frameTitle
.
key
- the key to use to add this frame to the HashMap
of open framesframeTitle
- the title to use for this frame
public javax.swing.JFrame makeNewFrame(java.lang.String key, java.lang.String frameTitle, java.awt.Point location)
HashMap
of open frames
using the given key
. Sets the frame's title to the given frameTitle
.
Places the frame at the given location
on the screen.
key
- the key to use to add this frame to the HashMap
of open framesframeTitle
- the title to use for this framelocation
- the point at which to place the frame on the screen
public void removeOpenFrame(javax.swing.JFrame frame)
frame
from the HashMap
of open frames.
frame
- the frame to remove from the HashMap
of open framespublic void removeOpenFrame(java.lang.String key)
key
from the HashMap
of open frames.
key
- the key of the frame to remove from the HashMap
of open frames.public void resetOpenPlotsCount()
public void toFront(java.lang.String key)
key
to the front (or top).
key
- the key of the frame to focus to the front
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |