|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VisualizableGraphComponent
This interface should be implemented by all classes that are associated with specific graph components and that are
meant to be represented by means of GraphRepresentation
objects.
The methods relate to managing the links between the component, the representation element, and the representation root.
Normally, an implementation of this interface keeps a list of existing representation elements and whole-graph representations for the component, that can be updated when the component changes.
Method Summary | |
---|---|
void |
addRepresentation(RepresentationElement repr)
Adds a new representation for this component (as a RepresentationElement ) to the list of active
representations. |
RepresentationElement |
getFirstRepresentationForRoot(GraphRepresentation representation)
Gets the first (and potentially only) element representing this component that is part of the specified (multi-level) representation. |
java.util.Collection<RepresentationElement> |
getRepresentations()
Gets a collection of the elements representing this component (in various representations). |
java.util.Collection<RepresentationElement> |
getRepresentationsForRoot(GraphRepresentation representation)
Gets a collection of elements representing this component, filtered to match only the one(s) that belong to a particular (multi-level) representation. |
Method Detail |
---|
void addRepresentation(RepresentationElement repr)
RepresentationElement
) to the list of active
representations.
repr
- : the element representing this component.java.util.Collection<RepresentationElement> getRepresentations()
java.util.Collection<RepresentationElement> getRepresentationsForRoot(GraphRepresentation representation)
representation
- : the root representation to which the returned elements belong.
RepresentationElement getFirstRepresentationForRoot(GraphRepresentation representation)
representation
- : the root representation to which the returned element should belong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |