public class ModelToFrameManager extends java.lang.Object
Constructor and Description |
---|
ModelToFrameManager()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(NamedObj obj,
KeplerGraphFrame frame)
Map a NamedObj to a KeplerGraphFrame.
|
KeplerGraphFrame |
getFrame(NamedObj model)
Get the frame for a model.
|
static ModelToFrameManager |
getInstance()
Method for getting an instance of this singleton class.
|
int |
numberOfOpenFrames()
Return the number of open frames.
|
void |
printDebugInfo()
Print the map for debugging purposes.
|
void |
remove(KeplerGraphFrame frame)
Remove all mappings to the given KeplerGraphFrame.
|
void |
removeModel(NamedObj model)
Remove a model from the mapping.
|
public ModelToFrameManager()
public KeplerGraphFrame getFrame(NamedObj model)
public void add(NamedObj obj, KeplerGraphFrame frame)
obj
- frame
- public void remove(KeplerGraphFrame frame)
frame
- public void removeModel(NamedObj model)
public int numberOfOpenFrames()
public void printDebugInfo()
public static ModelToFrameManager getInstance()