|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xqhs.graphs.representation.AbstractVisualizableGraphComponent
public abstract class AbstractVisualizableGraphComponent
THis class implements the basic representing element management required by the VisualizableGraphComponent
interface. It does so by maintaining a Set of RepresentationElement instances.
| Field Summary | |
|---|---|
protected java.util.Set<RepresentationElement> |
representations
The set of elements representing this component. |
| Constructor Summary | |
|---|---|
AbstractVisualizableGraphComponent()
|
|
| 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 root)
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 root)
Gets a collection of elements representing this component, filtered to match only the one(s) that belong to a particular (multi-level) representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Set<RepresentationElement> representations
| Constructor Detail |
|---|
public AbstractVisualizableGraphComponent()
| Method Detail |
|---|
public void addRepresentation(RepresentationElement repr)
VisualizableGraphComponentRepresentationElement) to the list of active
representations.
addRepresentation in interface VisualizableGraphComponentrepr - : the element representing this component.public java.util.Collection<RepresentationElement> getRepresentations()
VisualizableGraphComponent
getRepresentations in interface VisualizableGraphComponentpublic RepresentationElement getFirstRepresentationForRoot(GraphRepresentation root)
VisualizableGraphComponent
getFirstRepresentationForRoot in interface VisualizableGraphComponentroot - : the root representation to which the returned element should belong.
public java.util.Collection<RepresentationElement> getRepresentationsForRoot(GraphRepresentation root)
VisualizableGraphComponent
getRepresentationsForRoot in interface VisualizableGraphComponentroot - : the root representation to which the returned elements belong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||