public final class GraphUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
clearGraph(com.mxgraph.view.mxGraph graph) |
static void |
deleteCells(com.mxgraph.view.mxGraph graph,
java.lang.Object[] cells) |
static java.lang.Object[] |
getAllCells(com.mxgraph.model.mxIGraphModel model,
de.ims.icarus.util.Filter filter) |
static java.lang.Object |
getAncestor(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell) |
static java.lang.Object[] |
getDescendants(GraphOwner owner,
java.lang.Object cell) |
static java.lang.Object[] |
getDescendants(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell) |
static java.lang.Object |
getEdgeValue(GraphOwner owner,
java.lang.Object cell) |
static java.lang.Object |
getEdgeValue(com.mxgraph.view.mxCellState state) |
static int |
getIncomingEdgeCount(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell) |
static int |
getIncomingEdgeCount(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell,
boolean includeNormal,
boolean includeOrder) |
static java.lang.Object |
getNodeValue(GraphOwner owner,
java.lang.Object cell) |
static java.lang.Object |
getNodeValue(com.mxgraph.view.mxCellState state) |
static java.lang.Object[] |
getNonOrderEdges(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell) |
static java.lang.Object[] |
getNonOrderEdges(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell,
boolean outgoing,
boolean incoming) |
static java.lang.Object[] |
getOrderEdges(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell) |
static java.lang.Object[] |
getOrderEdges(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell,
boolean outgoing,
boolean incoming) |
static int |
getOutgoingEdgeCount(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell) |
static int |
getOutgoingEdgeCount(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell,
boolean includeNormal,
boolean includeOrder) |
static java.lang.Object[] |
getRootCells(com.mxgraph.model.mxIGraphModel model,
java.lang.Object[] cells) |
static void |
importCells(com.mxgraph.view.mxGraph graph,
CellBuffer buffer) |
static boolean |
isAncestor(com.mxgraph.model.mxIGraphModel model,
java.lang.Object node,
java.lang.Object ancestor,
boolean includeNormalEdges,
boolean includeOrderEdges) |
static boolean |
isLinkEdge(GraphOwner owner,
java.lang.Object cell) |
static boolean |
isLtrEdge(com.mxgraph.model.mxIGraphModel model,
java.lang.Object edge)
Checks whether some edge is directed from "left" to "right".
|
static boolean |
isOrderEdge(GraphOwner owner,
com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell) |
static boolean |
isOrderEdge(com.mxgraph.model.mxIGraphModel model,
java.lang.Object edge) |
static void |
moveCells(com.mxgraph.view.mxGraph graph,
java.lang.Object[] cells,
double dx,
double dy) |
static void |
translatePoint(java.util.List<com.mxgraph.util.mxPoint> points,
int index,
com.mxgraph.util.mxPoint offset) |
public static void translatePoint(java.util.List<com.mxgraph.util.mxPoint> points, int index, com.mxgraph.util.mxPoint offset)
public static java.lang.Object getEdgeValue(GraphOwner owner, java.lang.Object cell)
public static java.lang.Object getNodeValue(GraphOwner owner, java.lang.Object cell)
public static java.lang.Object getEdgeValue(com.mxgraph.view.mxCellState state)
public static java.lang.Object getNodeValue(com.mxgraph.view.mxCellState state)
public static boolean isOrderEdge(com.mxgraph.model.mxIGraphModel model, java.lang.Object edge)
public static boolean isOrderEdge(GraphOwner owner, com.mxgraph.model.mxIGraphModel model, java.lang.Object cell)
public static boolean isLinkEdge(GraphOwner owner, java.lang.Object cell)
public static boolean isLtrEdge(com.mxgraph.model.mxIGraphModel model, java.lang.Object edge)
public static int getIncomingEdgeCount(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell)
public static int getIncomingEdgeCount(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell, boolean includeNormal, boolean includeOrder)
public static int getOutgoingEdgeCount(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell)
public static int getOutgoingEdgeCount(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell, boolean includeNormal, boolean includeOrder)
public static java.lang.Object[] getOrderEdges(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell)
public static java.lang.Object[] getOrderEdges(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell, boolean outgoing, boolean incoming)
public static java.lang.Object[] getNonOrderEdges(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell)
public static java.lang.Object[] getNonOrderEdges(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell, boolean outgoing, boolean incoming)
public static java.lang.Object getAncestor(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell)
public static java.lang.Object[] getDescendants(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell)
public static java.lang.Object[] getDescendants(GraphOwner owner, java.lang.Object cell)
public static java.lang.Object[] getRootCells(com.mxgraph.model.mxIGraphModel model, java.lang.Object[] cells)
public static java.lang.Object[] getAllCells(com.mxgraph.model.mxIGraphModel model, de.ims.icarus.util.Filter filter)
public static void importCells(com.mxgraph.view.mxGraph graph, CellBuffer buffer)
public static void clearGraph(com.mxgraph.view.mxGraph graph)
public static void deleteCells(com.mxgraph.view.mxGraph graph, java.lang.Object[] cells)
public static void moveCells(com.mxgraph.view.mxGraph graph, java.lang.Object[] cells, double dx, double dy)
public static boolean isAncestor(com.mxgraph.model.mxIGraphModel model, java.lang.Object node, java.lang.Object ancestor, boolean includeNormalEdges, boolean includeOrderEdges)