|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.LocalViewCreator
y.view.LocalViewCreator.AbstractLocalViewCreator
y.view.LocalViewCreator.AncestorGroups
public static class LocalViewCreator.AncestorGroups
Local view creator that creates local views that display all ancestor group nodes of the creator's focus nodes. An ancestor node of a given node is a group node that either contains the node or one of its ancestor nodes.
This class uses ModelViewManager to actually create graph
elements in its associated view graph and manage mappings between elements
in its model graph and its view graph.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class y.view.LocalViewCreator |
|---|
LocalViewCreator.AbstractLocalViewCreator, LocalViewCreator.AncestorGroups, LocalViewCreator.CommonParentGroup, LocalViewCreator.EdgeGroup, LocalViewCreator.FolderContents, LocalViewCreator.Neighborhood, LocalViewCreator.SourceAndTarget |
| Field Summary |
|---|
| Fields inherited from class y.view.LocalViewCreator.AbstractLocalViewCreator |
|---|
ELEMENT_TYPE_EDGE, ELEMENT_TYPE_NODE |
| Constructor Summary | |
|---|---|
LocalViewCreator.AncestorGroups(Graph2D model)
Creates a new AncestorGroups instance for the specified
model graph. |
|
LocalViewCreator.AncestorGroups(Graph2D model,
GraphCopier.CopyFactory factory)
Creates a new AncestorGroups instance for the specified
model graph and copy factory. |
|
LocalViewCreator.AncestorGroups(Graph2D model,
GraphCopier.CopyFactory factory,
Graph2D view)
Creates a new AncestorGroups instance for the specified
model graph, copy factory, and view graph. |
|
| Method Summary | |
|---|---|
protected void |
buildViewGraph()
Creates graph elements in the creator's view graph. |
Graph2D |
getModel()
Returns the model graph for which the creator may create local views. |
Edge |
getModelEdge(Edge view)
Returns a edge in the creator's model graph that corresponds to the specified edge in the creator's view graph or null if
there is no corresponding edge. |
Node |
getModelNode(Node view)
Returns a node in the creator's model graph that corresponds to the specified node in the creator's view graph or null if there
is no corresponding node. |
Edge |
getViewEdge(Edge model)
Returns a edge in the creator's view graph that corresponds to the specified edge in the creator's model graph or null if
there is no corresponding edge. |
Graph2D |
getViewGraph()
Returns the view graph that is modified by the creator's updateViewGraph method. |
Node |
getViewNode(Node model)
Returns a node in the creator's view graph that corresponds to the specified node in the creator's model graph or null if
there is no corresponding node. |
boolean |
isIncludeFocusNodes()
Determines whether the creator's focus nodes should be included in the created local view as well. |
void |
setIncludeFocusNodes(boolean includeFocusNodes)
Specifies whether the creator's focus nodes should be included in the created local view as well. |
| Methods inherited from class y.view.LocalViewCreator |
|---|
createDefaultLayouter, getLayouter, layoutViewGraph, publishViewGraph, setLayouter, updateViewGraph |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalViewCreator.AncestorGroups(Graph2D model)
AncestorGroups instance for the specified
model graph.
Invoking this constructor is equivalent to:
new AncestorGroups(model, model.getGraphCopyFactory(), (Graph2D) model.getGraphCopyFactory().createGraph());
model - the graph for which local views are to be created.
public LocalViewCreator.AncestorGroups(Graph2D model,
GraphCopier.CopyFactory factory)
AncestorGroups instance for the specified
model graph and copy factory.
Invoking this constructor is equivalent to:
new AncestorGroups(model, factory, (Graph2D) factory.createGraph());
Note: The graph instances created by the specified factory have to
be of type Graph2D or subclasses thereof. Moreover,
the factory.
model - the graph for which local views are to be created.factory - that CopyFactory that will be used to create
graph elements in the creator's view graph.
public LocalViewCreator.AncestorGroups(Graph2D model,
GraphCopier.CopyFactory factory,
Graph2D view)
AncestorGroups instance for the specified
model graph, copy factory, and view graph.
Note: The specified factory has to be able to create graph elements in the specified view graph.
model - the graph for which local views are to be created.factory - that CopyFactory that will be used to create
graph elements in the creator's view graph.view - the graph that will be modified by the creator.| Method Detail |
|---|
public boolean isIncludeFocusNodes()
By default, this property is set to true.
true if the creator's focus nodes should be
included in the created local view as well and false
otherwise.setIncludeFocusNodes(boolean)public void setIncludeFocusNodes(boolean includeFocusNodes)
By default, this property is set to true.
includeFocusNodes - true if the creator's focus
nodes should be included in the created local view as well and
false otherwise.isIncludeFocusNodes()protected void buildViewGraph()
LocalViewCreator
buildViewGraph in class LocalViewCreatorLocalViewCreator.updateViewGraph()public Graph2D getModel()
LocalViewCreator
getModel in class LocalViewCreatorpublic Graph2D getViewGraph()
LocalViewCreatorupdateViewGraph method.
getViewGraph in class LocalViewCreatorupdateViewGraph method.LocalViewCreator.updateViewGraph()public Node getModelNode(Node view)
LocalViewCreatornull if there
is no corresponding node.
getModelNode in class LocalViewCreatorview - a node in the creator's view graph.
null if there
is no corresponding node.public Node getViewNode(Node model)
LocalViewCreatornull if
there is no corresponding node.
getViewNode in class LocalViewCreatormodel - a node in the creator's model graph.
null if
there is no corresponding node.public Edge getModelEdge(Edge view)
LocalViewCreatornull if
there is no corresponding edge.
getModelEdge in class LocalViewCreatorview - a edge in the creator's view graph.
null if
there is no corresponding edge.public Edge getViewEdge(Edge model)
LocalViewCreatornull if
there is no corresponding edge.
getViewEdge in class LocalViewCreatormodel - a edge in the creator's model graph.
null if
there is no corresponding edge.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||