|
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.gui.plugin.DefaultStudioPlugin
nl.cwi.sen1.visplugin.VisualizationPluginController
public abstract class VisualizationPluginController
The VisualizationPluginController class represents the base class for the different plugin controllers.
Nested Class Summary | |
---|---|
static class |
VisualizationPluginController.requestType
|
class |
VisualizationPluginController.WindowProperties
|
Field Summary | |
---|---|
private VisualizationPluginBridge |
m_bridge
|
protected nl.cwi.sen1.relationstores.Factory |
m_factory
|
private java.util.ArrayList<VisualizationPluginController.WindowProperties> |
m_openWindows
|
private java.lang.String |
m_pluginName
|
private aterm.pure.PureFactory |
m_pureFactory
|
private nl.cwi.sen1.gui.Studio |
m_studio
|
private aterm.ATerm[] |
m_supportedTypes
|
private static java.lang.String |
TOOL_NAME
|
Constructor Summary | |
---|---|
VisualizationPluginController()
|
Method Summary | |
---|---|
abstract VisualizationPluginWindow |
createWindow()
Create a new instance of the plugin window |
void |
exportToClicked(VisualizationPluginController.requestType exportRequestType,
int windowId)
Opens a file dialog with the correct properties |
VisualizationPluginBridge |
getBridge()
Returns the bridge of the visualization plugin controller. |
java.lang.String |
getName()
Had to be implemented (studioplugin.getName) |
abstract java.lang.String |
getPluginName()
Get the name of the plugin |
abstract aterm.ATerm[] |
getSupportedTypes()
Get the supported types of the plugin |
VisualizationPluginWindow |
getWindowById(int windowId)
Returns a plugin window given by its ID. |
protected VisualizationPluginController.requestType |
getWindowExportRequestType(int windowId)
Gets the export request type. |
void |
initPluginController(aterm.pure.PureFactory pureFactory)
Initialize the plugin controller |
void |
initStudioPlugin(nl.cwi.sen1.gui.Studio studioArgument)
Initialize the plugin |
protected boolean |
isTypeSupported(aterm.ATerm type)
Checks if a type is supported. |
void |
openLocationInEditor(nl.cwi.sen1.relationstores.types.Location loc)
|
void |
recAckEvent(aterm.ATerm t0)
|
void |
recTerminate(aterm.ATerm event)
Close the plugin |
void |
vpFactOutOfDate(int storeId,
int factId)
Sends an out of date ack. |
void |
vpFileDialogCancel(int windowId)
Calls the correct function to handle the user cancel of the file dialog |
void |
vpFileDialogResult(int windowId,
java.lang.String fileName)
Calls the correct function to handle the export |
aterm.ATerm |
vpGetName()
Get the name of the plugin (Incomming call from the toolbus) |
aterm.ATerm |
vpIsTypeSupported(aterm.ATerm type)
Checks if the type is supported (Incomming call from the toolbus) |
void |
vpRstoreUnloaded(int rstoreId)
The VPI will call this method when an rstore has been unloaded. |
void |
vpVisualizeFact(int storeId,
int factId,
aterm.ATerm fact)
Visualize the fact (Incomming call from the toolbus) |
Methods inherited from class nl.cwi.sen1.gui.plugin.DefaultStudioPlugin |
---|
addStudioPluginListener, fireStudioPluginClosed, removeStudioPluginListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String TOOL_NAME
private aterm.pure.PureFactory m_pureFactory
private nl.cwi.sen1.gui.Studio m_studio
private java.lang.String m_pluginName
private aterm.ATerm[] m_supportedTypes
private java.util.ArrayList<VisualizationPluginController.WindowProperties> m_openWindows
private VisualizationPluginBridge m_bridge
protected nl.cwi.sen1.relationstores.Factory m_factory
Constructor Detail |
---|
public VisualizationPluginController()
Method Detail |
---|
public VisualizationPluginBridge getBridge()
public void initStudioPlugin(nl.cwi.sen1.gui.Studio studioArgument)
initStudioPlugin
in interface nl.cwi.sen1.gui.plugin.StudioPlugin
Studio
- studioArgumentpublic final void initPluginController(aterm.pure.PureFactory pureFactory)
PureFactory
- pureFactory that should be used by the controllerpublic final void vpVisualizeFact(int storeId, int factId, aterm.ATerm fact)
vpVisualizeFact
in interface VisualizationPluginTif
Rstore
- id, Fact id and the fact to visualizepublic final java.lang.String getName()
getName
in interface nl.cwi.sen1.gui.plugin.StudioPlugin
public final void vpFactOutOfDate(int storeId, int factId)
vpFactOutOfDate
in interface VisualizationPluginTif
Store
- id and the Fact idpublic final void vpRstoreUnloaded(int rstoreId)
vpRstoreUnloaded
in interface VisualizationPluginTif
rstoreId
- The rstoreId of the unloaded rstore.public final aterm.ATerm vpGetName()
vpGetName
in interface VisualizationPluginTif
public final aterm.ATerm vpIsTypeSupported(aterm.ATerm type)
vpIsTypeSupported
in interface VisualizationPluginTif
protected boolean isTypeSupported(aterm.ATerm type)
public void recTerminate(aterm.ATerm event)
recTerminate
in interface VisualizationPluginTif
ATerm
- eventpublic void recAckEvent(aterm.ATerm t0)
recAckEvent
in interface VisualizationPluginTif
public abstract VisualizationPluginWindow createWindow()
public abstract java.lang.String getPluginName()
public abstract aterm.ATerm[] getSupportedTypes()
public void exportToClicked(VisualizationPluginController.requestType exportRequestType, int windowId)
requestType
- exportRequestType type of export, int windowId of the window who requested the exportpublic void vpFileDialogResult(int windowId, java.lang.String fileName)
vpFileDialogResult
in interface VisualizationPluginTif
int
- windowId of the window who requested the export, String fileName thats entered in the file dialogpublic VisualizationPluginWindow getWindowById(int windowId)
windowId
- ID of the window to return.
protected VisualizationPluginController.requestType getWindowExportRequestType(int windowId)
windowId
- ID of the window to get the export request type of.
public void vpFileDialogCancel(int windowId)
vpFileDialogCancel
in interface VisualizationPluginTif
int
- windowId of the window who requested the exportpublic 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 |