|
|||||||||||
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.DefaultCytoscapeEditor
/** 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.
PaletteNetworkEditEventHandler
Field Summary | |
static java.lang.String |
EDGE_TYPE
|
static cytoscape.data.CyAttributes |
edgeAttribs
|
static java.lang.String |
NODE_TYPE
|
static cytoscape.data.CyAttributes |
nodeAttribs
main data structures for all node and edge attributes |
Fields inherited from class cytoscape.editor.editors.BasicCytoscapeEditor |
BIOPAX_NAME_ATTRIBUTE |
Constructor Summary | |
DefaultCytoscapeEditor()
|
Method Summary | |
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. |
void |
stateChanged(javax.swing.event.ChangeEvent e)
redraw palette when a shape, color, or arrow mapping changes |
Methods inherited from class cytoscape.editor.editors.BasicCytoscapeEditor |
addEdge, addEdge, addEdge, addEdge, addEdgeContextMenuItems, addNode, addNode, addNode, addNode, addNodeContextMenuItems, buildVisualStyle, 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 cytoscape.data.CyAttributes nodeAttribs
public static cytoscape.data.CyAttributes edgeAttribs
Constructor Detail |
public DefaultCytoscapeEditor()
Method Detail |
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) *public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
e
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |