Package org.graffiti.plugin.view
Interface GraphElementComponentInterface
- All Known Subinterfaces:
 EdgeComponentInterface,NodeComponentInterface
- All Known Implementing Classes:
 AbstractGraphElementComponent,EdgeComponent,GraphElementComponent,IPKnodeComponent,NodeComponent
public interface GraphElementComponentInterface
- 
Method Summary
Modifier and Type Method Description voidaddAttributeComponent(Attribute attr, GraffitiViewComponent ac)Adds anAttributeand itsGraffitiViewComponentto the list of registered attributes that can be displayed.voidaddDependentComponent(GraphElementComponent comp)Adds aGraphElementComponentto the list of dependentGraphElementComponents.voidattributeChanged(Attribute attr)Called when an attribute of the GraphElement represented by this component has changed.voidclearAttributeComponentList()Removes all entries in the attributeComponent list.voidclearDependentComponentList()Removes aGraphElementComponentfrom the list of dependentGraphElementComponents.voidcreateNewShape(CoordinateSystem coordSys)Called to initialise the shape of the NodeComponent correctly.voidcreateStandardShape()Called to initialise and draw a standard shape, if the specified shapeclass could not be found.AttributeComponentgetAttributeComponent(Attribute attr)Returns the attributeComponents of given attribute.Iterator<?>getAttributeComponentIterator()Returns the attributeComponents of given attribute.Collection<?>getAttributeComponents()GraphElementgetGraphElement()Returns the graphElement.GraphElementShapegetShape()Returns GraphElementShape objectvoidgraphicAttributeChanged(Attribute attr)Called when a graphic attribute of the GraphElement represented by this component has changed.voidnonGraphicAttributeChanged(Attribute attr)Called when a non-graphic attribute of the GraphElement represented by this component has changed.voidremoveAttributeComponent(Attribute attr)Removes aGraffitiViewComponentof anAttributefrom collection of attribute components.voidremoveDependentComponent(GraphElementComponent comp)Removes aGraphElementComponentfrom the list of dependentGraphElementComponents. 
- 
Method Details
- 
getAttributeComponent
Returns the attributeComponents of given attribute.- Parameters:
 attr-- Returns:
 - Map
 
 - 
getAttributeComponentIterator
Iterator<?> getAttributeComponentIterator()Returns the attributeComponents of given attribute.- Returns:
 - Map
 
 - 
getAttributeComponents
Collection<?> getAttributeComponents() - 
getGraphElement
GraphElement getGraphElement()Returns the graphElement.- Returns:
 - GraphElement
 
 - 
getShape
GraphElementShape getShape()Returns GraphElementShape object- Returns:
 - DOCUMENT ME!
 
 - 
addAttributeComponent
Adds anAttributeand itsGraffitiViewComponentto the list of registered attributes that can be displayed. This attribute is then treated as dependent on the position, size etc. of thisGraphElement.- Parameters:
 attr- the attribute that is registered as being able to be displayed.ac- the component that will be used to display the attribute.
 - 
addDependentComponent
Adds aGraphElementComponentto the list of dependentGraphElementComponents. These will nearly always beEdgeComponents that are dependent on their source or target nodes.- Parameters:
 comp- theGraphElementComponentthat is added to the list of dependent components.
 - 
attributeChanged
Called when an attribute of the GraphElement represented by this component has changed.- Parameters:
 attr- the attribute that has triggered the event.- Throws:
 ShapeNotFoundException- DOCUMENT ME!
 - 
clearAttributeComponentList
void clearAttributeComponentList()Removes all entries in the attributeComponent list. - 
clearDependentComponentList
void clearDependentComponentList()Removes aGraphElementComponentfrom the list of dependentGraphElementComponents. - 
createNewShape
Called to initialise the shape of the NodeComponent correctly. Also callsrepaint().- Parameters:
 coordSys- TODO- Throws:
 ShapeNotFoundException- thrown when the shapeclass couldn't be resolved.
 - 
createStandardShape
void createStandardShape()Called to initialise and draw a standard shape, if the specified shapeclass could not be found. - 
graphicAttributeChanged
Called when a graphic attribute of the GraphElement represented by this component has changed.- Parameters:
 attr- the graphic attribute that has triggered the event.- Throws:
 ShapeNotFoundException- DOCUMENT ME!
 - 
nonGraphicAttributeChanged
Called when a non-graphic attribute of the GraphElement represented by this component has changed.- Parameters:
 attr- the attribute that has triggered the event.- Throws:
 ShapeNotFoundException- DOCUMENT ME!
 - 
removeAttributeComponent
Removes aGraffitiViewComponentof anAttributefrom collection of attribute components.- Parameters:
 attr- the attribute that has to be removed
 - 
removeDependentComponent
Removes aGraphElementComponentfrom the list of dependentGraphElementComponents.- Parameters:
 comp- theGraphElementComponentthat is removed from the list of dependent components.
 
 -