|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.editor.impl.CytoscapeEditorFactoryImpl
builds new instances of editors and network edit event adapters. Before an editor and its network edit event adapter can be built, the editor first needs to be registered with the CytoscapeEditorManager.
CytoscapeEditorManager
Field Summary |
Fields inherited from interface cytoscape.editor.CytoscapeEditorFactory |
INSTANCE |
Constructor Summary | |
CytoscapeEditorFactoryImpl()
|
Method Summary | |
void |
addEditorType(java.lang.String editorType)
adds a new editorType to the collection of editor types |
CytoscapeEditor |
getEditor(java.lang.String editorType)
Get the network editor, creating a new one if it doesn't already exist. |
CytoscapeEditor |
getEditor(java.lang.String editorType,
java.util.List args)
get the Cytoscape editor for the specified type |
java.util.Collection |
getEditorTypes()
Get the set of valid editor types |
NetworkEditEventAdapter |
getNetworkEditEventAdapter(CytoscapeEditor editor)
gets an instance of the NetworkEditEventAdaptor associated with the input editor The NetworkEditEventAdapter handles events that are associated with user input to the editor, such as mouse actions, drag/drop, keystrokes. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CytoscapeEditorFactoryImpl()
Method Detail |
public CytoscapeEditor getEditor(java.lang.String editorType, java.util.List args) throws InvalidEditorException
editorType
- the type of the editorargs
- an arbitrary list of arguments
InvalidEditorException
public CytoscapeEditor getEditor(java.lang.String editorType) throws InvalidEditorException
CytoscapeEditorFactory
getEditor
in interface CytoscapeEditorFactory
editorType
- non null type of editor to get
InvalidEditorException
- if the editor cannot be createdpublic java.util.Collection getEditorTypes()
getEditorTypes
in interface CytoscapeEditorFactory
public void addEditorType(java.lang.String editorType)
addEditorType
in interface CytoscapeEditorFactory
editorType
- public NetworkEditEventAdapter getNetworkEditEventAdapter(CytoscapeEditor editor)
getNetworkEditEventAdapter
in interface CytoscapeEditorFactory
editor
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |