|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for a generic component (node or edge) that can be used by the editor
| Method Summary | |
Object |
clone()
|
String |
get_ID()
Returns the id of this component |
String |
getComponentType()
Gets the type of this component. |
NodeComponent |
getParent()
|
NodeComponent |
getRootNode()
|
GraphComponent |
newInstance()
Creates a new component using the current one as prototype. |
ComponentRenderer |
newRenderer()
Creates a renderer for this component using the current target. |
ComponentRenderer |
newRenderer(String target)
Creates a renderer for this components using the specified target. |
void |
set_ID(String id)
Sets the id of this component. |
void |
setComponentType(String name)
Sets the type of this component |
void |
setParent(NodeComponent parent)
Sets the parent node in the hierarchical graph |
boolean |
supportsType(String type)
This method is used to allow the existence of generic objects which can render a range of types. |
| Methods inherited from interface org.globus.cog.gui.grapheditor.properties.PropertyHolder |
addProperty, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getProperties, getProperty, getPropertyValue, hasProperty, removeProperty, removePropertyChangeListener, setPropertyValue |
| Method Detail |
public String getComponentType()
public void setComponentType(String name)
name - public ComponentRenderer newRenderer()
public ComponentRenderer newRenderer(String target)
public GraphComponent newInstance()
public NodeComponent getParent()
public void setParent(NodeComponent parent)
public boolean supportsType(String type)
type - The type to be checked
public void set_ID(String id)
public String get_ID()
public NodeComponent getRootNode()
public Object clone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||