Class IPK_StandardTools
java.lang.Object
org.graffiti.plugin.GenericPluginAdapter
org.graffiti.plugin.EditorPluginAdapter
de.ipk_gatersleben.ag_nw.graffiti.IPK_EditorPluginAdapter
de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.editing_tools.IPK_StandardTools
- All Implemented Interfaces:
EditorPlugin
,GenericPlugin
,ViewListener
,SessionListener
public class IPK_StandardTools extends IPK_EditorPluginAdapter implements ViewListener, SessionListener
This plugin contains the modified standard editing tools. Because the
StandardTools use private (and not protected) variables for the Tools, I
decided to copy the source and modify the 3 calls for the Tool-Creation. As
no advanced functionality is provided by the plugin code itself, this should
be ok for now.
- Version:
- $Revision$
- Author:
- Christian Klukas
-
Field Summary
Fields inherited from class org.graffiti.plugin.EditorPluginAdapter
tools
-
Constructor Summary
Constructors Constructor Description IPK_StandardTools()
Creates a new StandardTools object. -
Method Summary
Modifier and Type Method Description void
configure(Preferences preferences)
Sets the preferences in all tools this plugin provides.boolean
isSessionListener()
States whether this class wants to be registered as aSessionListener
.boolean
isViewListener()
States whether this class wants to be registered as aViewListener
, i.e.void
sessionChanged(Session s)
This method is called when the session changes.void
sessionDataChanged(Session s)
This method is called when the data (except the graph data) are changed.void
viewChanged(View newView)
This method is called when the view changes.Methods inherited from class de.ipk_gatersleben.ag_nw.graffiti.IPK_EditorPluginAdapter
getIcon
Methods inherited from class org.graffiti.plugin.EditorPluginAdapter
getAttributeComponents, getGUIComponents, getInspectorTabs, getModes, getShapes, getTools, getValueEditComponents
Methods inherited from class org.graffiti.plugin.GenericPluginAdapter
doBeforeExit, getAddonIcon, getAlgorithms, getAttributeDescriptions, getAttributes, getDefaultView, getDependencies, getExtensions, getGraphPostProcessors, getInputSerializers, getOutputSerializers, getURLattributeActions, getViews, interrupt, isSelectionListener, needsEditComponents, setIsAddon, stop
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graffiti.plugin.GenericPlugin
doBeforeExit, getAlgorithms, getAttributeDescriptions, getAttributes, getDefaultView, getDependencies, getExtensions, getInputSerializers, getOutputSerializers, getURLattributeActions, getViews, interrupt, isSelectionListener, needsEditComponents, stop
-
Constructor Details
-
IPK_StandardTools
public IPK_StandardTools()Creates a new StandardTools object.
-
-
Method Details
-
configure
Sets the preferences in all tools this plugin provides.- Specified by:
configure
in interfaceGenericPlugin
- Overrides:
configure
in classGenericPluginAdapter
- Parameters:
preferences
- the preferences node for this plugin.- See Also:
GenericPlugin.configure(Preferences)
-
viewChanged
Description copied from interface:ViewListener
This method is called when the view changes. This method is not called when another session is activated. ImplementSessionListener
if you are interested in session changed events.- Specified by:
viewChanged
in interfaceViewListener
- Parameters:
newView
- the new View.
-
isViewListener
public boolean isViewListener()Description copied from interface:GenericPlugin
States whether this class wants to be registered as aViewListener
, i.e. if it wants to get informed when another view in the same session becomes active. This method is not called when another session is activated. ImplementSessionListener
if you are interested in session changed events.- Specified by:
isViewListener
in interfaceGenericPlugin
- Overrides:
isViewListener
in classGenericPluginAdapter
- Returns:
- DOCUMENT ME!
- See Also:
GenericPlugin.isViewListener()
-
isSessionListener
public boolean isSessionListener()Description copied from class:GenericPluginAdapter
States whether this class wants to be registered as aSessionListener
.- Specified by:
isSessionListener
in interfaceGenericPlugin
- Overrides:
isSessionListener
in classGenericPluginAdapter
- Returns:
- DOCUMENT ME!
-
sessionChanged
Description copied from interface:SessionListener
This method is called when the session changes.- Specified by:
sessionChanged
in interfaceSessionListener
- Parameters:
s
- the new Session.
-
sessionDataChanged
Description copied from interface:SessionListener
This method is called when the data (except the graph data) are changed.- Specified by:
sessionDataChanged
in interfaceSessionListener
-