|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.Selections
public abstract class Selections
This abstract class provides static methods, that perform several
different actions and create objects that can be used in conjunction
with selections on a Graph2D
| Nested Class Summary | |
|---|---|
static class |
Selections.SelectionStateObserver
Base class that can be subclassed to receive notification about changes in the selection state of a Graph2D. |
| Method Summary | |
|---|---|
static DataProvider |
createSelectionDataProvider(Graph2D graph)
Creates a DataProvider, that can be used to query the selection state of graph elements in the given graph. |
static EdgeMap |
createSelectionEdgeMap(Graph2D graph)
Creates an EdgeMap view of the selection state of the edges in the given graph. |
static NodeMap |
createSelectionNodeMap(Graph2D graph)
Creates a NodeMap view of the selection state of the nodes in the given graph. |
static void |
deselectNodeAndSelfLoopBends(Graph2D graph,
Node v)
Deselects a node and the bends of its self-loop. |
static void |
findExtendedGroupingSelection(Graph2D graph,
NodeList childNodes,
NodeList parentNodes,
BendList additionalBends)
Collects additional elements within a grouped graph that depend on the current node selection. |
static boolean |
isEdgeSelectionEmpty(Graph2D graph)
Queries the given graph if it contains any selected edges. |
static boolean |
isNodeSelectionEmpty(Graph2D graph)
Queries the given graph if it contains any selected nodes. |
static void |
selectNodeAndSelfLoopBends(Graph2D graph,
Node v)
Selects a node and the bends of its self-loop. |
static void |
selectNodesAndSelfLoopBends(Graph2D graph)
Selects all nodes and the bends of self-loops. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void selectNodesAndSelfLoopBends(Graph2D graph)
graph - the graph
public static void selectNodeAndSelfLoopBends(Graph2D graph,
Node v)
graph - the graphv - the vertex
public static void deselectNodeAndSelfLoopBends(Graph2D graph,
Node v)
graph - the graphv - the nodepublic static DataProvider createSelectionDataProvider(Graph2D graph)
graph - the graph
public static NodeMap createSelectionNodeMap(Graph2D graph)
graph - the graph
public static EdgeMap createSelectionEdgeMap(Graph2D graph)
graph - the graph
public static void findExtendedGroupingSelection(Graph2D graph,
NodeList childNodes,
NodeList parentNodes,
BendList additionalBends)
childNodes - return value. collects all unselected nodes whose ancestor nodes are already selectedparentNodes - return value collects all unselected decendant nodes of nodes that are already selectedadditionalBends - return value returns all unselected bends that belong to edges connecting the nodes
collected in the list childNodes.public static boolean isNodeSelectionEmpty(Graph2D graph)
public static boolean isEdgeSelectionEmpty(Graph2D graph)
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||