|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphComponent
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 |
---|
String getComponentType()
void setComponentType(String name)
name
- ComponentRenderer newRenderer()
ComponentRenderer newRenderer(String target)
GraphComponent newInstance()
NodeComponent getParent()
void setParent(NodeComponent parent)
boolean supportsType(String type)
type
- The type to be checked
void set_ID(String id)
String get_ID()
NodeComponent getRootNode()
Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |