mxGraph
|
Implements a graph object that allows to create diagrams from a graph model and stylesheet. More...
Public Member Functions | |
mxGraph () | |
Constructs a new graph with an empty graph model. More... | |
mxGraph (mxIGraphModel model) | |
Constructs a new graph for the specified model. If no model is specified, then a new, empty graph model is used. More... | |
mxGraph (mxStylesheet stylesheet) | |
Constructs a new graph for the specified model. If no model is specified, then a new, empty graph model is used. More... | |
mxGraph (mxIGraphModel model, mxStylesheet stylesheet) | |
Constructs a new graph for the specified model. If no model is specified, then a new, empty graph model is used. More... | |
double | Snap (double value) |
Snaps the given numeric value to the grid if gridEnabled is true. More... | |
Object | GetDefaultParent () |
Returns the first child of the root in the model, that is, the first or default layer of the diagram. More... | |
string | ConvertValueToString (Object cell) |
Returns the textual representation for the given cell. More... | |
string | GetLabel (Object cell) |
Returns a string or markup that represents the label for the given cell. This implementation uses ConvertValueToString if labelsVisible is true. Otherwise it returns an empty string. More... | |
mxPoint | GetChildOffsetForCell (Object cell) |
Returns the offset to be used for the cells inside the given cell. The root and layer cells may be identified using mxGraphModel.isRoot and mxGraphModel.isLayer. This implementation returns null. More... | |
bool | IsOrthogonal (mxCellState edge) |
Returns true if perimeter points should be computed such that the resulting edge has only horizontal or vertical segments. More... | |
bool | IsSwimlane (Object cell) |
Returns true if the given cell is a swimlane. More... | |
bool | IsCellMovable (Object cell) |
Returns true if the given cell is movable. This implementation always returns true. More... | |
bool | IsCellVisible (Object cell) |
Returns true if the given cell is visible. This implementation returns true if the visible state of the cell in the model is true. More... | |
bool | IsCellCollapsed (Object cell) |
Returns true if the given cell is collapsed. This implementation returns true if the collapsed state of the cell in the model is true. More... | |
bool | IsCellConnectable (Object cell) |
Returns true if the given cell is connectable. This implementation returns true if the connectable state of the cell in the model is true. More... | |
mxGeometry | GetCellGeometry (Object cell) |
Returns the geometry for the given cell. More... | |
Dictionary< string, Object > | GetCellStyle (Object cell) |
Returns the style for the given cell. More... | |
void | AddImageBundle (mxImageBundle bundle) |
Adds the specified bundle. More... | |
void | RemoveImageBundle (mxImageBundle bundle) |
Removes the specified bundle. More... | |
String | GetImageFromBundles (String key) |
Searches all bundles for the specified key and returns the value for the first match or null if the key is not found. More... | |
void | SetCellStyles (String key, String value, Object[] cells) |
Sets the key to value in the styles of the given cells. This will modify the existing cell styles in-place and override any existing assignment for the given key. If no cells are specified, then the selection cells are changed. If no value is specified, then the respective key is removed from the styles. More... | |
Object | InsertVertex (Object parent, string id, Object value, double x, double y, double width, double height) |
Creates and adds a new vertex with an empty style, see AddVertex. More... | |
Object | InsertVertex (Object parent, string id, Object value, double x, double y, double width, double height, string style) |
Creates and adds a new vertex with an empty style, see AddVertex. More... | |
Object | InsertVertex (Object parent, string id, Object value, double x, double y, double width, double height, string style, bool relative) |
Adds a new vertex into the given parent using value as the user object and the given coordinates as the geometry of the new vertex. The id and style are used for the respective properties of the new cell, which is returned. More... | |
Object | CreateVertex (Object parent, string id, Object value, double x, double y, double width, double height, string style) |
Creates a new vertex to be used in insertVertex. More... | |
Object | CreateVertex (Object parent, string id, Object value, double x, double y, double width, double height, string style, bool relative) |
Creates a new vertex to be used in insertVertex. More... | |
Object | InsertEdge (Object parent, string id, Object value, Object source, Object target) |
Creates and adds a new edge with an empty style. More... | |
Object | InsertEdge (Object parent, string id, Object value, Object source, Object target, string style) |
Adds a new edge into the given parent using value as the user object and the given source and target as the terminals of the new edge. The Id and style are used for the respective properties of the new cell, which is returned. More... | |
Object | CreateEdge (Object parent, string id, Object value, Object source, Object target, string style) |
Creates the edge to be used in insertEdge. This implementation does not set the source and target of the edge, these are set when the edge is added to the model. More... | |
mxRectangle | GetGraphBounds () |
Returns the bounds of the visible graph. More... | |
mxRectangle | GetCellBounds (Object cell) |
Returns the bounds of the given cell. More... | |
mxRectangle | GetCellBounds (Object cell, bool includeEdges) |
Returns the bounds of the given cell including all connected edges if includeEdge is true. More... | |
mxRectangle | GetCellBounds (Object cell, bool includeEdges, bool includeDescendants) |
Returns the bounds of the given cell including all connected edges if includeEdge is true. More... | |
mxRectangle | GetBoundingBox (Object cell) |
Returns the bounds of the given cell. More... | |
mxRectangle | GetBoundingBox (Object cell, bool includeEdges) |
Returns the bounding box of the given cell including all connected edges if includeEdge is true. More... | |
mxRectangle | GetBoundingBox (Object cell, bool includeEdges, bool includeDescendants) |
Returns the bounding box of the given cell including all connected edges if includeEdge is true. More... | |
mxRectangle | GetPaintBounds (Object[] cells) |
Returns the bounding box of the given cells and their descendants. More... | |
mxRectangle | GetBoundsForCells (Object[] cells, bool includeEdges, bool includeDescendants, bool boundingBox) |
Returns the bounds for the given cells. More... | |
mxRectangle | GetCellBounds (Object cell, bool includeEdges, bool includeDescendants, bool boundingBox) |
Returns the bounds of the given cell including all connected edges if includeEdge is true. More... | |
mxConnectionConstraint | GetConnectionConstraint (mxCellState edge, mxCellState terminal, bool source) |
Returns a connection constraint that describes the given connection point. This result can then be passed to getConnectionPoint. More... | |
mxPoint | GetConnectionPoint (mxCellState vertex, mxConnectionConstraint constraint) |
Returns the nearest point in the list of absolute points or the center of the opposite terminal. More... | |
Object | GetCellAt (int x, int y) |
Returns the cell at the given location. More... | |
Object | GetCellAt (int x, int y, bool hitSwimlaneContent) |
Returns the cell at the given location. More... | |
Object | GetCellAt (int x, int y, bool hitSwimlaneContent, Object parent) |
Returns the bottom-most cell that intersects the given point (x, y) in the cell hierarchy starting at the given parent. More... | |
bool | Intersects (mxCellState state, Rectangle rect) |
Returns the bottom-most cell that intersects the given point (x, y) in the cell hierarchy that starts at the given parent. More... | |
bool | HitsSwimlaneContent (Object swimlane, int x, int y) |
Returns true if the given point is inside the content area of the given swimlane. (The content area of swimlanes is transparent to events.) This implementation does not check if the given state is a swimlane, it is assumed that the caller has checked this before using this method. More... | |
Object[] | GetChildVertices (Object parent) |
Returns the visible child vertices of the given parent. More... | |
Object[] | GetChildEdges (Object parent) |
Returns the visible child edges of the given parent. More... | |
Object[] | GetChildCells (Object parent) |
Returns the visible children of the given parent. More... | |
Object[] | GetChildCells (Object parent, bool vertices, bool edges) |
Returns the visible child vertices or edges in the given parent. If vertices and edges is false, then all children are returned. More... | |
Object[] | GetConnections (Object cell) |
Returns all visible edges connected to the given cell without loops. More... | |
Object[] | GetConnections (Object cell, Object parent) |
Returns all visible edges connected to the given cell without loops. More... | |
Object[] | GetIncomingEdges (Object cell) |
Returns all incoming visible edges connected to the given cell without loops. More... | |
Object[] | GetIncomingEdges (Object cell, Object parent) |
Returns the visible incoming edges for the given cell. If the optional parent argument is specified, then only child edges of the given parent are returned. More... | |
Object[] | GetOutgoingEdges (Object cell) |
Returns all outgoing visible edges connected to the given cell without loops. More... | |
Object[] | GetOutgoingEdges (Object cell, Object parent) |
Returns the visible outgoing edges for the given cell. If the optional parent argument is specified, then only child edges of the given parent are returned. More... | |
Object[] | GetEdges (Object cell) |
Returns all visible edges connected to the given cell including loops. More... | |
Object[] | GetEdges (Object cell, Object parent) |
Returns all visible edges connected to the given cell including loops. More... | |
Object[] | GetEdges (Object cell, Object parent, bool incoming, bool outgoing, bool includeLoops) |
Returns the incoming and/or outgoing edges for the given cell. If the optional parent argument is specified, then only edges are returned where the opposite is in the given parent cell. If at least one of incoming or outgoing is true, then loops are ignored, if both are false, then all edges connected to the given cell are returned including loops. More... | |
Object[] | GetEdges (Object cell, Object parent, bool incoming, bool outgoing, bool includeLoops, bool recurse) |
Returns the incoming and/or outgoing edges for the given cell. If the optional parent argument is specified, then only edges are returned where the opposite is in the given parent cell. If at least one of incoming or outgoing is true, then loops are ignored, if both are false, then all edges connected to the given cell are returned including loops. More... | |
bool | IsValidAncestor (Object cell, Object parent, bool recurse) |
Returns whether or not the specified parent is a valid ancestor of the specified cell, either direct or indirectly based on whether ancestor recursion is enabled. More... | |
Object[] | GetOpposites (Object[] edges, Object terminal) |
Returns all distinct visible opposite cells of the terminal on the given edges. More... | |
Object[] | GetOpposites (Object[] edges, Object terminal, bool sources, bool targets) |
Returns all distincts visible opposite cells for the specified terminal on the given edges. More... | |
Object[] | GetEdgesBetween (Object source, Object target) |
Returns the edges between the given source and target. This takes into account collapsed and invisible cells and returns the connected edges as displayed on the screen. More... | |
Object[] | GetEdgesBetween (Object source, Object target, bool directed) |
Returns the edges between the given source and target. This takes into account collapsed and invisible cells and returns the connected edges as displayed on the screen. More... | |
List< Object > | FindTreeRoots (Object parent) |
Returns all children in the given parent which do not have incoming edges. If the result is empty then the with the greatest difference between incoming and outgoing edges is returned. More... | |
List< Object > | FindTreeRoots (Object parent, bool isolate) |
Returns all children in the given parent which do not have incoming edges. If the result is empty then the with the greatest difference between incoming and outgoing edges is returned. More... | |
List< Object > | FindTreeRoots (Object parent, bool isolate, bool invert) |
Returns all children in the given parent which do not have incoming edges. If the result is empty then the with the greatest difference between incoming and outgoing edges is returned. More... | |
void | DrawGraph (mxICanvas canvas) |
Draws the graph onto the given canvas. More... | |
void | DrawCell (mxICanvas canvas, Object cell) |
Draws the given cell onto the specified canvas. More... | |
void | DrawState (mxICanvas canvas, mxCellState state, String label) |
Draws the given cell and label onto the specified canvas. No children or descendants are painted. More... | |
void | GraphModelChanged () |
Called when the graph model has changed to invalidate the view. More... | |
Public Attributes | |
const String | VERSION = "3.4.0.2" |
Holds the version number of this release. Current version is 3.4.0.2. More... | |
Protected Member Functions | |
mxStylesheet | CreateStylesheet () |
Constructs a new stylesheet to be used in this graph. More... | |
mxGraphView | CreateGraphView () |
Constructs a new view to be used in this graph. More... | |
Dictionary< string, Object > | PostProcessCellStyle (Dictionary< string, Object > style) |
Tries to resolve the value for the image style in the image bundles and turns short data URIs as defined in mxImageBundle to data URIs as defined in RFC 2397 of the IETF. More... | |
Protected Attributes | |
mxIGraphModel | model |
Holds the model that contains the cells to be displayed. More... | |
mxStylesheet | stylesheet |
Holds the stylesheet that defines the appearance of the cells. More... | |
mxGraphView | view |
Holds the view that caches the cell states. More... | |
mxEdgeStyleFunction | defaultLoopStyle = mxEdgeStyle.Loop |
Specifies the default style for loops. More... | |
int | tolerance = 4 |
Specifies the tolerance for mouse clicks. Default is 4. More... | |
bool | labelsVisible = true |
Specifies if labels should be visible. This is used in GetLabel. Default is true. More... | |
int | gridSize = 10 |
Specifies the grid size. Default is 10. More... | |
bool | gridEnabled = true |
Specifies if the grid is enabled. Default is true. More... | |
List< mxImageBundle > | imageBundles = new List<mxImageBundle>() |
Holds the list of image bundles. More... | |
Properties | |
mxIGraphModel | Model [get, set] |
Sets or returns the graph model that contains the graph data. More... | |
mxStylesheet | Stylesheet [get, set] |
Sets or returns the stylesheet that provides the style. More... | |
mxGraphView | View [get, set] |
Sets or returns the view that contains the cell states. More... | |
mxEdgeStyleFunction | DefaultLoopStyle [get, set] |
Sets or returns the default edge style for loops. More... | |
bool | GridEnabled [get, set] |
Sets or returns the enabled state of the grid. More... | |
int | GridSize [get, set] |
Sets or returns the grid size. More... | |
bool | LabelsVisible [get, set] |
Sets or returns if labels are visible More... | |
List< mxImageBundle > | ImageBundles [get, set] |
Sets or returns the image bundles. More... | |
Implements a graph object that allows to create diagrams from a graph model and stylesheet.
|
inline |
Constructs a new graph with an empty graph model.
|
inline |
Constructs a new graph for the specified model. If no model is specified, then a new, empty graph model is used.
|
inline |
Constructs a new graph for the specified model. If no model is specified, then a new, empty graph model is used.
|
inline |
Constructs a new graph for the specified model. If no model is specified, then a new, empty graph model is used.
|
inline |
Adds the specified bundle.
|
inline |
Returns the textual representation for the given cell.
cell | Cell to be converted to a string. |
|
inline |
Creates the edge to be used in insertEdge. This implementation does not set the source and target of the edge, these are set when the edge is added to the model.
|
inlineprotected |
Constructs a new view to be used in this graph.
|
inlineprotected |
Constructs a new stylesheet to be used in this graph.
|
inline |
Creates a new vertex to be used in insertVertex.
|
inline |
Creates a new vertex to be used in insertVertex.
|
inline |
Draws the given cell onto the specified canvas.
canvas | Canvas onto which the cell should be drawn. |
cell | Cell that should be drawn onto the canvas. |
|
inline |
Draws the graph onto the given canvas.
canvas | Canvas onto which the graph should be drawn. |
|
inline |
Draws the given cell and label onto the specified canvas. No children or descendants are painted.
References com.mxgraph.mxCellState.Cell, com.mxgraph.mxRectangle.GetRectangle(), and com.mxgraph.mxCellState.LabelBounds.
|
inline |
Returns all children in the given parent which do not have incoming edges. If the result is empty then the with the greatest difference between incoming and outgoing edges is returned.
parent | Cell whose children should be checked. |
|
inline |
Returns all children in the given parent which do not have incoming edges. If the result is empty then the with the greatest difference between incoming and outgoing edges is returned.
parent | Cell whose children should be checked. |
isolate | Specifies if edges should be ignored if the opposite end is not a child of the given parent cell. |
|
inline |
Returns all children in the given parent which do not have incoming edges. If the result is empty then the with the greatest difference between incoming and outgoing edges is returned.
parent | Cell whose children should be checked. |
isolate | Specifies if edges should be ignored if the opposite end is not a child of the given parent cell. |
invert | Specifies if outgoing or incoming edges should be counted for a tree root. If false then outgoing edges will be counted. |
|
inline |
Returns the bounds of the given cell.
|
inline |
Returns the bounding box of the given cell including all connected edges if includeEdge is true.
|
inline |
Returns the bounding box of the given cell including all connected edges if includeEdge is true.
|
inline |
Returns the bounds for the given cells.
|
inline |
Returns the cell at the given location.
|
inline |
Returns the cell at the given location.
|
inline |
Returns the bottom-most cell that intersects the given point (x, y) in the cell hierarchy starting at the given parent.
x | X-coordinate of the location to be checked. |
y | Y-coordinate of the location to be checked. |
hitSwimlaneContent | |
parent | that should be used as the root of the recursion. |
|
inline |
Returns the bounds of the given cell.
|
inline |
Returns the bounds of the given cell including all connected edges if includeEdge is true.
|
inline |
Returns the bounds of the given cell including all connected edges if includeEdge is true.
|
inline |
Returns the bounds of the given cell including all connected edges if includeEdge is true.
|
inline |
Returns the geometry for the given cell.
cell | Cell whose geometry should be returned. |
|
inline |
Returns the style for the given cell.
cell | Cell whose style should be returned. |
|
inline |
Returns the visible children of the given parent.
|
inline |
Returns the visible child vertices or edges in the given parent. If vertices and edges is false, then all children are returned.
parent | Cell whose children should be returned. |
vertices | Specifies if child vertices should be returned. |
edges | Specifies if child edges should be returned. |
|
inline |
Returns the visible child edges of the given parent.
parent | Cell whose children should be returned. |
|
inline |
Returns the offset to be used for the cells inside the given cell. The root and layer cells may be identified using mxGraphModel.isRoot and mxGraphModel.isLayer. This implementation returns null.
cell | Cell whose offset should be returned. |
|
inline |
Returns the visible child vertices of the given parent.
parent | Cell whose children should be returned. |
|
inline |
Returns a connection constraint that describes the given connection point. This result can then be passed to getConnectionPoint.
edge | Cell state that represents the edge. |
terminal | Cell state that represents the terminal. |
source | Boolean indicating if the terminal is the source or target. |
References com.mxgraph.mxCellState.Style, com.mxgraph.mxConstants.STYLE_ENTRY_PERIMETER, com.mxgraph.mxConstants.STYLE_ENTRY_X, com.mxgraph.mxConstants.STYLE_ENTRY_Y, com.mxgraph.mxConstants.STYLE_EXIT_PERIMETER, com.mxgraph.mxConstants.STYLE_EXIT_X, and com.mxgraph.mxConstants.STYLE_EXIT_Y.
|
inline |
Returns the nearest point in the list of absolute points or the center of the opposite terminal.
vertex | Cell state that represents the vertex. |
constraint | Connection constraint that represents the connection point constraint as returned by getConnectionConstraint. |
References com.mxgraph.mxRectangle.Height, com.mxgraph.mxConnectionConstraint.Perimeter, com.mxgraph.mxConnectionConstraint.Point, com.mxgraph.mxRectangle.Width, com.mxgraph.mxPoint.X, and com.mxgraph.mxPoint.Y.
|
inline |
Returns all visible edges connected to the given cell without loops.
cell | Cell whose connections should be returned. |
|
inline |
Returns all visible edges connected to the given cell without loops.
cell | Cell whose connections should be returned. |
parent | Optional parent of the opposite end for a connection to be returned. |
|
inline |
Returns the first child of the root in the model, that is, the first or default layer of the diagram.
|
inline |
Returns all visible edges connected to the given cell including loops.
cell | Cell whose edges should be returned. |
|
inline |
Returns all visible edges connected to the given cell including loops.
cell | Cell whose edges should be returned. |
parent | Optional parent of the opposite end for an edge to be returned. |
|
inline |
Returns the incoming and/or outgoing edges for the given cell. If the optional parent argument is specified, then only edges are returned where the opposite is in the given parent cell. If at least one of incoming or outgoing is true, then loops are ignored, if both are false, then all edges connected to the given cell are returned including loops.
cell | Cell whose edges should be returned. |
parent | Optional parent of the opposite end for an edge to be returned. |
incoming | Specifies if incoming edges should be included in the result. |
outgoing | Specifies if outgoing edges should be included in the result. |
includeLoops | Specifies if loops should be included in the result. |
|
inline |
Returns the incoming and/or outgoing edges for the given cell. If the optional parent argument is specified, then only edges are returned where the opposite is in the given parent cell. If at least one of incoming or outgoing is true, then loops are ignored, if both are false, then all edges connected to the given cell are returned including loops.
cell | Cell whose edges should be returned. |
parent | Optional parent of the opposite end for an edge to be returned. |
incoming | Specifies if incoming edges should be included in the result. |
outgoing | Specifies if outgoing edges should be included in the result. |
includeLoops | Specifies if loops should be included in the result. |
recurse | Boolean the specifies if the parent specified only need be an ancestral parent, true, or the direct parent, false. |
|
inline |
Returns the edges between the given source and target. This takes into account collapsed and invisible cells and returns the connected edges as displayed on the screen.
source | |
target |
|
inline |
Returns the edges between the given source and target. This takes into account collapsed and invisible cells and returns the connected edges as displayed on the screen.
source | |
target | |
directed |
|
inline |
Returns the bounds of the visible graph.
|
inline |
Searches all bundles for the specified key and returns the value for the first match or null if the key is not found.
key |
|
inline |
Returns all incoming visible edges connected to the given cell without loops.
cell | Cell whose incoming edges should be returned. |
|
inline |
Returns the visible incoming edges for the given cell. If the optional parent argument is specified, then only child edges of the given parent are returned.
cell | Cell whose incoming edges should be returned. |
parent | Optional parent of the opposite end for a connection to be returned. |
|
inline |
Returns a string or markup that represents the label for the given cell. This implementation uses ConvertValueToString if labelsVisible is true. Otherwise it returns an empty string.
cell |
References com.mxgraph.mxUtils.IsTrue(), com.mxgraph.mxCellState.Style, and com.mxgraph.mxConstants.STYLE_NOLABEL.
|
inline |
Returns all distinct visible opposite cells of the terminal on the given edges.
edges | |
terminal |
|
inline |
Returns all distincts visible opposite cells for the specified terminal on the given edges.
edges | Edges whose opposite terminals should be returned. |
terminal | Terminal that specifies the end whose opposite should be returned. |
sources | Specifies if source terminals should be included in the result. |
targets | Specifies if targer terminals should be included in the result. |
|
inline |
Returns all outgoing visible edges connected to the given cell without loops.
cell | Cell whose outgoing edges should be returned. |
|
inline |
Returns the visible outgoing edges for the given cell. If the optional parent argument is specified, then only child edges of the given parent are returned.
cell | Cell whose outgoing edges should be returned. |
parent | Optional parent of the opposite end for a connection to be returned. |
|
inline |
Returns the bounding box of the given cells and their descendants.
|
inline |
Called when the graph model has changed to invalidate the view.
|
inline |
Returns true if the given point is inside the content area of the given swimlane. (The content area of swimlanes is transparent to events.) This implementation does not check if the given state is a swimlane, it is assumed that the caller has checked this before using this method.
References com.mxgraph.mxConstants.DEFAULT_STARTSIZE, com.mxgraph.mxUtils.GetDouble(), com.mxgraph.mxUtils.IsTrue(), com.mxgraph.mxCellState.Style, com.mxgraph.mxConstants.STYLE_HORIZONTAL, and com.mxgraph.mxConstants.STYLE_STARTSIZE.
|
inline |
Creates and adds a new edge with an empty style.
|
inline |
Adds a new edge into the given parent using value as the user object and the given source and target as the terminals of the new edge. The Id and style are used for the respective properties of the new cell, which is returned.
parent | Cell that specifies the parent of the new edge. |
id | Optional string that defines the Id of the new edge. |
value | Object to be used as the user object. |
source | Cell that defines the source of the edge. |
target | Cell that defines the target of the edge. |
style | Optional string that defines the cell style. |
|
inline |
Creates and adds a new vertex with an empty style, see AddVertex.
|
inline |
Creates and adds a new vertex with an empty style, see AddVertex.
|
inline |
Adds a new vertex into the given parent using value as the user object and the given coordinates as the geometry of the new vertex. The id and style are used for the respective properties of the new cell, which is returned.
parent | Cell that specifies the parent of the new vertex. |
id | Optional string that defines the Id of the new vertex. |
value | Object to be used as the user object. |
x | Integer that defines the x coordinate of the vertex. |
y | Integer that defines the y coordinate of the vertex. |
width | Integer that defines the width of the vertex. |
height | Integer that defines the height of the vertex. |
style | Optional string that defines the cell style. |
|
inline |
Returns the bottom-most cell that intersects the given point (x, y) in the cell hierarchy that starts at the given parent.
state | |
rect |
References com.mxgraph.mxRectangle.GetRectangle(), and com.mxgraph.mxCellState.LabelBounds.
|
inline |
Returns true if the given cell is collapsed. This implementation returns true if the collapsed state of the cell in the model is true.
cell | Cell whose collapsed state should be returned. |
|
inline |
Returns true if the given cell is connectable. This implementation returns true if the connectable state of the cell in the model is true.
cell | Cell whose connectable state should be returned. |
|
inline |
Returns true if the given cell is movable. This implementation always returns true.
cell | Cell whose movable state should be returned. |
|
inline |
Returns true if the given cell is visible. This implementation returns true if the visible state of the cell in the model is true.
cell | Cell whose visible state should be returned. |
|
inline |
Returns true if perimeter points should be computed such that the resulting edge has only horizontal or vertical segments.
edge | Cell state that represents the edge. |
References com.mxgraph.mxEdgeStyleFunction(), com.mxgraph.mxCellState.Style, and com.mxgraph.mxConstants.STYLE_ORTHOGONAL.
|
inline |
Returns true if the given cell is a swimlane.
cell | Cell that should be checked. |
References com.mxgraph.mxConstants.SHAPE_SWIMLANE, and com.mxgraph.mxCellState.Style.
|
inline |
Returns whether or not the specified parent is a valid ancestor of the specified cell, either direct or indirectly based on whether ancestor recursion is enabled.
cell | The possible child cell |
parent | The possible parent cell |
recurse | boolean whether or not to recurse the child ancestors |
|
inlineprotected |
Tries to resolve the value for the image style in the image bundles and turns short data URIs as defined in mxImageBundle to data URIs as defined in RFC 2397 of the IETF.
|
inline |
Removes the specified bundle.
|
inline |
Sets the key to value in the styles of the given cells. This will modify the existing cell styles in-place and override any existing assignment for the given key. If no cells are specified, then the selection cells are changed. If no value is specified, then the respective key is removed from the styles.
key | String representing the key to be assigned. |
value | String representing the new value for the key. |
cells | Array of cells to change the style for. |
|
inline |
Snaps the given numeric value to the grid if gridEnabled is true.
value | Numeric value to be snapped to the grid. |
|
protected |
Specifies the default style for loops.
|
protected |
Specifies if the grid is enabled. Default is true.
|
protected |
Specifies the grid size. Default is 10.
|
protected |
Holds the list of image bundles.
|
protected |
Specifies if labels should be visible. This is used in GetLabel. Default is true.
|
protected |
Holds the model that contains the cells to be displayed.
|
protected |
Holds the stylesheet that defines the appearance of the cells.
|
protected |
Specifies the tolerance for mouse clicks. Default is 4.
const String com.mxgraph.mxGraph.VERSION = "3.4.0.2" |
Holds the version number of this release. Current version is 3.4.0.2.
|
protected |
Holds the view that caches the cell states.
|
getset |
Sets or returns the default edge style for loops.
|
getset |
Sets or returns the enabled state of the grid.
|
getset |
Sets or returns the grid size.
|
getset |
Sets or returns the image bundles.
|
getset |
Sets or returns if labels are visible
|
getset |
Sets or returns the graph model that contains the graph data.
|
getset |
Sets or returns the stylesheet that provides the style.
|
getset |
Sets or returns the view that contains the cell states.