|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.editor.editors.BasicCytoscapeEditor
cytoscape.editor.editors.SimpleBioMoleculeEditor
An example editor that extends the basic Cytoscape editor and is based upon a drag-and-drop and palette framework into which developers plug in semantics. The framework consists of
The dropping of shapes onto the canvas results in the addition of nodes and edges to the current Cytoscape network, as defined by the behavior of the event handler that responds to the drop events. In the simple "BioMolecule" editor, there are node types for proteins, catalysis, small molecules, and biochemical reactions, as well as a directed edge types for activation, inhibition, and catalysis.
PaletteNetworkEditEventHandler
Field Summary | |
static java.lang.String |
ACTIVATION
|
static java.lang.String |
BIOMOLECULE_VISUAL_STYLE
|
static java.lang.String |
CATALYSIS
|
static java.lang.String |
EDGE_TYPE
|
static java.lang.String |
INHIBITION
|
static MapBioMoleculeEditorToVisualStyle |
mpbv
class used to construct visual style used by the SimpleBioMoleculeEditor |
static java.lang.String |
NODE_TYPE
|
Fields inherited from class cytoscape.editor.editors.BasicCytoscapeEditor |
BIOPAX_NAME_ATTRIBUTE |
Constructor Summary | |
SimpleBioMoleculeEditor()
|
Method Summary | |
void |
buildVisualStyle()
build the visualStyle for this editor this code should be overidden by more specialized editors that programmatically create a visual style |
void |
disableControls(java.util.List args)
sets controls invisible when editor type is switched |
void |
enableControls(java.util.List args)
sets controls visible when editor type is switched back to this editor |
void |
initializeControls(java.util.List args)
specialized initialization code for editor, called by CytoscapeEditorManager when a new editor is built. |
Methods inherited from class cytoscape.editor.editors.BasicCytoscapeEditor |
addEdge, addEdge, addEdge, addEdge, addEdgeContextMenuItems, addNode, addNode, addNode, addNode, addNodeContextMenuItems, deleteEdge, deleteNode, getControllingEdgeAttribute, getControllingNodeAttribute, getEditorName, getNetworkEditEventAdapter, menuItemExists, onFlagEvent, setControllingEdgeAttribute, setControllingNodeAttribute, setEditorName, setNetworkEditEventAdapter |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NODE_TYPE
public static final java.lang.String EDGE_TYPE
public static final java.lang.String ACTIVATION
public static final java.lang.String INHIBITION
public static final java.lang.String CATALYSIS
public static final java.lang.String BIOMOLECULE_VISUAL_STYLE
public static MapBioMoleculeEditorToVisualStyle mpbv
Constructor Detail |
public SimpleBioMoleculeEditor()
Method Detail |
public void buildVisualStyle()
BasicCytoscapeEditor
buildVisualStyle
in interface CytoscapeEditor
buildVisualStyle
in class BasicCytoscapeEditor
public void initializeControls(java.util.List args)
initializeControls
in interface CytoscapeEditor
initializeControls
in class BasicCytoscapeEditor
args
- an arbitrary list of arguments passed to initialization
routine. Not used in this editorpublic void disableControls(java.util.List args)
disableControls
in interface CytoscapeEditor
disableControls
in class BasicCytoscapeEditor
args
- args an arbitrary list of arguments (not used in this editor)public void enableControls(java.util.List args)
enableControls
in interface CytoscapeEditor
enableControls
in class BasicCytoscapeEditor
args
- args an arbitrary list of arguments (not used in this editor) *
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |