JGraphpad Pro
v6.0.5.0


com.jgraph.editor
Interface JGraphEditorDiagram

All Superinterfaces:
MutableTreeNode, TreeNode
All Known Implementing Classes:
JGraphpadDiagram, JGraphpadLibrary

public interface JGraphEditorDiagram
extends MutableTreeNode

Defines the basic requirements for a named diagram in a JGraph editor document model. A diagram contains a (stateful) layout cache with a graph model. The properties of document model elements should be changed via the document model in order to update all attached listeners.


Method Summary
 org.jgraph.graph.GraphLayoutCache getGraphLayoutCache()
           
 String getName()
          Returns the name.
 Map getProperties()
          Returns the properties of the diagram.
 void setGraphLayoutCache(org.jgraph.graph.GraphLayoutCache cache)
           
 void setName(String name)
          Sets the name.
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Method Detail

setName

public void setName(String name)
Sets the name.

Parameters:
name - The name to set.

getName

public String getName()
Returns the name.

Returns:
Returns the name.

setGraphLayoutCache

public void setGraphLayoutCache(org.jgraph.graph.GraphLayoutCache cache)
Parameters:
cache - The cache to set.

getGraphLayoutCache

public org.jgraph.graph.GraphLayoutCache getGraphLayoutCache()
Returns:
Returns the cache.

getProperties

public Map getProperties()
Returns the properties of the diagram.

Returns:
Returns all properties.

JGraphpad Pro
v6.0.5.0


Copyright (C) 2005 JGraph.com. All rights reserved.