Package | Description |
---|---|
com.mxgraph.io |
This package contains all classes for input/output.
|
com.mxgraph.model |
This package contains the classes that define a graph model.
|
Modifier and Type | Method and Description |
---|---|
mxICell |
mxCodec.decodeCell(Node node,
boolean restoreStructures)
Decodes cells that have been encoded using inversion, ie.
|
Modifier and Type | Method and Description |
---|---|
void |
mxCodec.encodeCell(mxICell cell,
Node node,
boolean includeChildren)
Encoding of cell hierarchies is built-into the core, but is a
higher-level function that needs to be explicitely used by the
respective object encoders (eg.
|
void |
mxCodec.insertIntoGraph(mxICell cell)
Inserts the given cell into its parent and terminal cells.
|
Modifier and Type | Class and Description |
---|---|
class |
mxCell
Cells are the elements of the graph model.
|
Modifier and Type | Field and Description |
---|---|
protected mxICell |
mxCell.parent
Reference to the parent cell and source and target terminals for edges.
|
protected mxICell |
mxGraphModel.root
Holds the root cell, which in turn contains the cells that represent the
layers of the diagram as child cells.
|
protected mxICell |
mxCell.source
Reference to the parent cell and source and target terminals for edges.
|
protected mxICell |
mxCell.target
Reference to the parent cell and source and target terminals for edges.
|
Modifier and Type | Method and Description |
---|---|
mxICell |
mxICell.getChildAt(int index)
Returns the child at the specified index.
|
mxICell |
mxCell.getChildAt(int index) |
mxICell |
mxICell.getEdgeAt(int index)
Returns the edge at the specified index in the edge array.
|
mxICell |
mxCell.getEdgeAt(int index) |
mxICell |
mxICell.getParent()
Returns the cell's parent.
|
mxICell |
mxCell.getParent() |
mxICell |
mxCell.getSource()
Returns the source terminal.
|
mxICell |
mxCell.getTarget()
Returns the target terminal.
|
mxICell |
mxICell.getTerminal(boolean source)
Returns the source or target terminal.
|
mxICell |
mxCell.getTerminal(boolean source) |
mxICell |
mxICell.insert(mxICell child)
Appends the specified child into the child array and updates the parent
reference of the child.
|
mxICell |
mxCell.insert(mxICell child) |
mxICell |
mxICell.insert(mxICell child,
int index)
Inserts the specified child into the child array at the specified index
and updates the parent reference of the child.
|
mxICell |
mxCell.insert(mxICell child,
int index) |
mxICell |
mxICell.insertEdge(mxICell edge,
boolean isOutgoing)
Inserts the specified edge into the edge array and returns the edge.
|
mxICell |
mxCell.insertEdge(mxICell edge,
boolean isOutgoing) |
mxICell |
mxICell.remove(int index)
Removes the child at the specified index from the child array and
returns the child that was removed.
|
mxICell |
mxCell.remove(int index) |
mxICell |
mxICell.remove(mxICell child)
Removes the given child from the child array and returns it.
|
mxICell |
mxCell.remove(mxICell child) |
mxICell |
mxICell.removeEdge(mxICell edge,
boolean isOutgoing)
Removes the specified edge from the edge array and returns the edge.
|
mxICell |
mxCell.removeEdge(mxICell edge,
boolean isOutgoing) |
static mxICell |
mxCellPath.resolve(mxICell root,
String path)
Returns the cell for the specified cell path using the given root as the
root of the path.
|
mxICell |
mxICell.setTerminal(mxICell terminal,
boolean isSource)
Sets the source or target terminal and returns the new terminal.
|
mxICell |
mxCell.setTerminal(mxICell terminal,
boolean isSource) |
Modifier and Type | Method and Description |
---|---|
static String |
mxCellPath.create(mxICell cell)
Creates the cell path for the given cell.
|
int |
mxICell.getEdgeIndex(mxICell edge)
Returns the index of the specified edge in the edge array.
|
int |
mxCell.getEdgeIndex(mxICell edge) |
int |
mxICell.getIndex(mxICell child)
Returns the index of the specified child in the child array.
|
int |
mxCell.getIndex(mxICell child) |
mxICell |
mxICell.insert(mxICell child)
Appends the specified child into the child array and updates the parent
reference of the child.
|
mxICell |
mxCell.insert(mxICell child) |
mxICell |
mxICell.insert(mxICell child,
int index)
Inserts the specified child into the child array at the specified index
and updates the parent reference of the child.
|
mxICell |
mxCell.insert(mxICell child,
int index) |
mxICell |
mxICell.insertEdge(mxICell edge,
boolean isOutgoing)
Inserts the specified edge into the edge array and returns the edge.
|
mxICell |
mxCell.insertEdge(mxICell edge,
boolean isOutgoing) |
void |
mxGraphModel.mergeChildren(mxICell from,
mxICell to,
boolean cloneAllEdges)
Merges the children of the given cell into the given target cell inside
this model.
|
protected void |
mxGraphModel.mergeChildrenImpl(mxICell from,
mxICell to,
boolean cloneAllEdges,
Hashtable<Object,Object> mapping)
Clones the children of the source cell into the given target cell in
this model and adds an entry to the mapping that maps from the source
cell to the target cell with the same id or the clone of the source cell
that was inserted into this model.
|
mxICell |
mxICell.remove(mxICell child)
Removes the given child from the child array and returns it.
|
mxICell |
mxCell.remove(mxICell child) |
mxICell |
mxICell.removeEdge(mxICell edge,
boolean isOutgoing)
Removes the specified edge from the edge array and returns the edge.
|
mxICell |
mxCell.removeEdge(mxICell edge,
boolean isOutgoing) |
static mxICell |
mxCellPath.resolve(mxICell root,
String path)
Returns the cell for the specified cell path using the given root as the
root of the path.
|
void |
mxICell.setParent(mxICell parent)
Sets the parent cell.
|
void |
mxCell.setParent(mxICell parent) |
void |
mxCell.setSource(mxICell source)
Sets the source terminal.
|
void |
mxCell.setTarget(mxICell target)
Sets the target terminal.
|
mxICell |
mxICell.setTerminal(mxICell terminal,
boolean isSource)
Sets the source or target terminal and returns the new terminal.
|
mxICell |
mxCell.setTerminal(mxICell terminal,
boolean isSource) |
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.