|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.cwi.sen1.visplugin.VisualizationPluginWindow
public abstract class VisualizationPluginWindow
The VisualizationPluginWindow class represents the base class for the different plugin windows.
Field Summary | |
---|---|
private ContainerPanel |
m_containerPanel
|
private VisualizationPluginController |
m_controller
|
private nl.cwi.sen1.relationstores.types.RTuple |
m_fact
|
private int |
m_factId
|
protected nl.cwi.sen1.relationstores.Factory |
m_factory
|
private int |
m_storeId
|
private nl.cwi.sen1.gui.Studio |
m_studio
|
private java.lang.String |
m_title
|
private int |
m_windowId
|
Constructor Summary | |
---|---|
VisualizationPluginWindow()
Default constructor |
Method Summary | |
---|---|
private void |
connectPanelWithMenu(javax.swing.JMenu menu,
javax.swing.JPanel contentPanel,
java.lang.String title,
java.lang.String orientation)
connects a given JPanel and JMenu to the meta-environment |
protected javax.swing.JMenu |
createExtensionMenu()
Create a menu |
void |
disconnectComponent(nl.cwi.sen1.gui.component.StudioComponent component)
Removes a component from the Meta-Environment so it is removed from the views menu as well. |
void |
displayVisualization()
Display the plugin window |
void |
executeOnLoad()
method is called on load of the window overridable |
protected void |
exportToCsv(java.lang.String fileName)
method is called from the toolbus |
void |
exportToCsvClicked()
calls the exportToClicked method on the controller |
void |
exportToImage(java.lang.String fileName)
Functionality that's triggered by the export menu |
void |
factOutOfDate()
Show out of date message |
VisualizationPluginController |
getController()
Returns the controller of the visualization plugin window. |
int |
getFactId()
get the Fact id |
int |
getStoreId()
get the Store id |
nl.cwi.sen1.gui.Studio |
getStudio()
Returns the studio of the visualization plugin window. |
int |
getWindowId()
Returns the window ID of the visualization plugin window. |
void |
initializeWindow(nl.cwi.sen1.gui.Studio studio,
int storeId,
int factId,
nl.cwi.sen1.relationstores.types.RTuple fact,
nl.cwi.sen1.relationstores.Factory factory,
java.lang.String pluginName,
VisualizationPluginController controller,
int windowId)
Initialize the window properties |
void |
openLocationInEditor(nl.cwi.sen1.relationstores.types.Location loc)
|
abstract javax.swing.JPanel |
render(nl.cwi.sen1.relationstores.types.RTuple fact)
Render the plugin window |
void |
rstoreUnloaded()
The rstore of this fact has been unloaded. |
void |
showPopUp(java.lang.String msg)
Show a popup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected nl.cwi.sen1.relationstores.Factory m_factory
private nl.cwi.sen1.gui.Studio m_studio
private int m_storeId
private int m_factId
private nl.cwi.sen1.relationstores.types.RTuple m_fact
private java.lang.String m_title
private VisualizationPluginController m_controller
private int m_windowId
private ContainerPanel m_containerPanel
Constructor Detail |
---|
public VisualizationPluginWindow()
Method Detail |
---|
public final void initializeWindow(nl.cwi.sen1.gui.Studio studio, int storeId, int factId, nl.cwi.sen1.relationstores.types.RTuple fact, nl.cwi.sen1.relationstores.Factory factory, java.lang.String pluginName, VisualizationPluginController controller, int windowId)
Studio
- studio, int storeId, int factId, RTuple factpublic nl.cwi.sen1.gui.Studio getStudio()
public void executeOnLoad()
the
- filename to store the export inpublic VisualizationPluginController getController()
public int getWindowId()
public final void displayVisualization()
protected javax.swing.JMenu createExtensionMenu()
public final void exportToCsvClicked()
protected void exportToCsv(java.lang.String fileName)
the
- filename to store the export inpublic final void showPopUp(java.lang.String msg)
Message
- to displayprivate final void connectPanelWithMenu(javax.swing.JMenu menu, javax.swing.JPanel contentPanel, java.lang.String title, java.lang.String orientation)
JMenu
- menu,JPanel contentPanel,String title,String orientationpublic void disconnectComponent(nl.cwi.sen1.gui.component.StudioComponent component)
component
- The component to remove.public final void factOutOfDate()
public final void rstoreUnloaded()
public final int getStoreId()
public final int getFactId()
public abstract javax.swing.JPanel render(nl.cwi.sen1.relationstores.types.RTuple fact)
Fact
- to display
public void exportToImage(java.lang.String fileName)
public void openLocationInEditor(nl.cwi.sen1.relationstores.types.Location loc)
|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |