public class ViewManager extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.WeakHashMap<TableauFrame,javax.swing.JPanel> |
_viewAreas |
protected java.util.WeakHashMap<TableauFrame,javax.swing.JComboBox> |
_viewComboBoxes |
protected java.util.Vector<ViewPane> |
_viewPanes |
| Constructor and Description |
|---|
ViewManager()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCanvasToLocation(java.awt.Component canvas,
TableauFrame parent) |
void |
addViewPane(ViewPane vp)
Register a ViewPane with the ViewManager.
|
java.util.Vector<ViewPane> |
getFrameViews(TableauFrame parent)
Return a vector of ViewPane objects for the specified TableauFrame.
|
static ViewManager |
getInstance()
Method for getting an instance of this singleton class.
|
javax.swing.JPanel |
getViewArea(TableauFrame parent) |
javax.swing.JComboBox |
getViewComboBox(TableauFrame parent)
Return a combo box that contains all of the views for the specified
parent frame.
|
ViewPane |
getViewPane(TableauFrame parent,
java.lang.String viewName)
Return a ViewPane reference for the given TableauFrame and viewName.
|
javax.swing.JComponent |
getViewSelector(TableauFrame parent)
Method to return a JComponent as a view selector.
|
void |
initializeViews(TableauFrame parent)
Instantiate all of the ViewPanes that are specified in configuration.xml
|
void |
removeOpenFrame(TableauFrame parent)
Method for remove .
|
void |
setViewComboBox(TableauFrame parent,
javax.swing.JComboBox jcb)
Set the JComboBox for a specific TableauFrame
|
void |
showView(TableauFrame parent,
java.lang.String viewName) |
protected java.util.Vector<ViewPane> _viewPanes
protected java.util.WeakHashMap<TableauFrame,javax.swing.JPanel> _viewAreas
protected java.util.WeakHashMap<TableauFrame,javax.swing.JComboBox> _viewComboBoxes
public ViewManager()
public void initializeViews(TableauFrame parent)
parent - public javax.swing.JPanel getViewArea(TableauFrame parent)
public javax.swing.JComponent getViewSelector(TableauFrame parent)
parent - public javax.swing.JComboBox getViewComboBox(TableauFrame parent)
parent - public void setViewComboBox(TableauFrame parent, javax.swing.JComboBox jcb)
parent - jcb - public void showView(TableauFrame parent, java.lang.String viewName)
public void addCanvasToLocation(java.awt.Component canvas, TableauFrame parent) throws java.lang.Exception
java.lang.Exceptionpublic void addViewPane(ViewPane vp) throws java.lang.ClassCastException
vp - java.lang.ClassCastExceptionpublic ViewPane getViewPane(TableauFrame parent, java.lang.String viewName)
parent - viewName - public java.util.Vector<ViewPane> getFrameViews(TableauFrame parent)
parent - public static ViewManager getInstance()
public void removeOpenFrame(TableauFrame parent)