Click or drag to resize

mxGraph Class

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Implements a graph object that allows to create diagrams from a graph model and stylesheet.
Inheritance Hierarchy
SystemObject
  imbSCI.Graph.MXGraph.viewmxGraph

Namespace:  imbSCI.Graph.MXGraph.view
Assembly:  imbSCI.Graph (in imbSCI.Graph.dll) Version: 0.3.70.
Syntax
C#
public class mxGraph
Request Example View Source

The mxGraph type exposes the following members.

Constructors
  NameDescription
Public methodmxGraph
Constructs a new graph with an empty graph model.
Public methodmxGraph(mxIGraphModel)
Constructs a new graph for the specified model. If no model is specified, then a new, empty graph model is used.
Public methodmxGraph(mxStylesheet)
Constructs a new graph for the specified model. If no model is specified, then a new, empty graph model is used.
Public methodmxGraph(mxIGraphModel, mxStylesheet)
Constructs a new graph for the specified model. If no model is specified, then a new, empty graph model is used.
Top
Properties
  NameDescription
Public propertyDefaultLoopStyle
Sets or returns the default edge style for loops.
Public propertyGridEnabled
Sets or returns the enabled state of the grid.
Public propertyGridSize
Sets or returns the grid size.
Public propertyImageBundles
Sets or returns the image bundles.
Public propertyLabelsVisible
Sets or returns if labels are visible
Public propertyModel
Sets or returns the graph model that contains the graph data.
Public propertyStylesheet
Sets or returns the stylesheet that provides the style.
Public propertyView
Sets or returns the view that contains the cell states.
Top
Methods
  NameDescription
Public methodAddImageBundle
Adds the specified bundle.
Public methodConvertValueToString
Returns the textual representation for the given cell.
Public methodCreateEdge
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.
Public methodCreateVertex(Object, String, Object, Double, Double, Double, Double, String)
Creates a new vertex to be used in insertVertex.
Public methodCreateVertex(Object, String, Object, Double, Double, Double, Double, String, Boolean)
Creates a new vertex to be used in insertVertex.
Public methodDrawCell
Draws the given cell onto the specified canvas.
Public methodDrawGraph
Draws the graph onto the given canvas.
Public methodDrawState
Draws the given cell and label onto the specified canvas. No children or descendants are painted.
Public methodFindTreeRoots(Object)
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.
Public methodFindTreeRoots(Object, Boolean)
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.
Public methodFindTreeRoots(Object, Boolean, Boolean)
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.
Public methodGetBoundingBox(Object)
Returns the bounds of the given cell.
Public methodGetBoundingBox(Object, Boolean)
Returns the bounding box of the given cell including all connected edges if includeEdge is true.
Public methodGetBoundingBox(Object, Boolean, Boolean)
Returns the bounding box of the given cell including all connected edges if includeEdge is true.
Public methodGetBoundsForCells
Returns the bounds for the given cells.
Public methodGetCellAt(Int32, Int32)
Returns the cell at the given location.
Public methodGetCellAt(Int32, Int32, Boolean)
Returns the cell at the given location.
Public methodGetCellAt(Int32, Int32, Boolean, Object)
Returns the bottom-most cell that intersects the given point (x, y) in the cell hierarchy starting at the given parent.
Public methodGetCellBounds(Object)
Returns the bounds of the given cell.
Public methodGetCellBounds(Object, Boolean)
Returns the bounds of the given cell including all connected edges if includeEdge is true.
Public methodGetCellBounds(Object, Boolean, Boolean)
Returns the bounds of the given cell including all connected edges if includeEdge is true.
Public methodGetCellBounds(Object, Boolean, Boolean, Boolean)
Returns the bounds of the given cell including all connected edges if includeEdge is true.
Public methodGetCellGeometry
Returns the geometry for the given cell.
Public methodGetCellStyle
Returns the style for the given cell.
Public methodGetChildCells(Object)
Returns the visible children of the given parent.
Public methodGetChildCells(Object, Boolean, Boolean)
Returns the visible child vertices or edges in the given parent. If vertices and edges is false, then all children are returned.
Public methodGetChildEdges
Returns the visible child edges of the given parent.
Public methodGetChildOffsetForCell
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.
Public methodGetChildVertices
Returns the visible child vertices of the given parent.
Public methodGetConnectionConstraint
Returns a connection constraint that describes the given connection point. This result can then be passed to getConnectionPoint.
Public methodGetConnectionPoint
Returns the nearest point in the list of absolute points or the center of the opposite terminal.
Public methodGetConnections(Object)
Returns all visible edges connected to the given cell without loops.
Public methodGetConnections(Object, Object)
Returns all visible edges connected to the given cell without loops.
Public methodGetDefaultParent
Returns the first child of the root in the model, that is, the first or default layer of the diagram.
Public methodGetEdges(Object)
Returns all visible edges connected to the given cell including loops.
Public methodGetEdges(Object, Object)
Returns all visible edges connected to the given cell including loops.
Public methodGetEdges(Object, Object, Boolean, Boolean, Boolean)
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.
Public methodGetEdges(Object, Object, Boolean, Boolean, Boolean, Boolean)
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.
Public methodGetEdgesBetween(Object, Object)
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.
Public methodGetEdgesBetween(Object, Object, Boolean)
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.
Public methodGetGraphBounds
Returns the bounds of the visible graph.
Public methodGetImageFromBundles
Searches all bundles for the specified key and returns the value for the first match or null if the key is not found.
Public methodGetIncomingEdges(Object)
Returns all incoming visible edges connected to the given cell without loops.
Public methodGetIncomingEdges(Object, Object)
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.
Public methodGetLabel
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.
Public methodGetOpposites(Object, Object)
Returns all distinct visible opposite cells of the terminal on the given edges.
Public methodGetOpposites(Object, Object, Boolean, Boolean)
Returns all distincts visible opposite cells for the specified terminal on the given edges.
Public methodGetOutgoingEdges(Object)
Returns all outgoing visible edges connected to the given cell without loops.
Public methodGetOutgoingEdges(Object, Object)
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.
Public methodGetPaintBounds
Returns the bounding box of the given cells and their descendants.
Public methodGraphModelChanged
Called when the graph model has changed to invalidate the view.
Public methodHitsSwimlaneContent
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.
Public methodInsertEdge(Object, String, Object, Object, Object)
Creates and adds a new edge with an empty style.
Public methodInsertEdge(Object, String, Object, Object, Object, String)
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.
Public methodInsertVertex(Object, String, Object, Double, Double, Double, Double)
Creates and adds a new vertex with an empty style, see AddVertex.
Public methodInsertVertex(Object, String, Object, Double, Double, Double, Double, String)
Creates and adds a new vertex with an empty style, see AddVertex.
Public methodInsertVertex(Object, String, Object, Double, Double, Double, Double, String, Boolean)
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.
Public methodIntersects
Returns the bottom-most cell that intersects the given point (x, y) in the cell hierarchy that starts at the given parent.
Public methodIsCellCollapsed
Returns true if the given cell is collapsed. This implementation returns true if the collapsed state of the cell in the model is true.
Public methodIsCellConnectable
Returns true if the given cell is connectable. This implementation returns true if the connectable state of the cell in the model is true.
Public methodIsCellMovable
Returns true if the given cell is movable. This implementation always returns true.
Public methodIsCellVisible
Returns true if the given cell is visible. This implementation returns true if the visible state of the cell in the model is true.
Public methodIsOrthogonal
Returns true if perimeter points should be computed such that the resulting edge has only horizontal or vertical segments.
Public methodIsSwimlane
Returns true if the given cell is a swimlane.
Public methodIsValidAncestor
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.
Public methodRemoveImageBundle
Removes the specified bundle.
Public methodSetCellStyles
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.
Public methodSnap
Snaps the given numeric value to the grid if gridEnabled is true.
Top
Fields
  NameDescription
Public fieldStatic memberVERSION
Holds the version number of this release. Current version is 3.9.3.
Top
Extension Methods
  NameDescription
Public Extension MethodBuildDataShema
Builds the data table.
(Defined by PropertyDataStructureTools.)
Public Extension MethodbuildDataTable(String, DataTableBuildersbuildDataTableOptions, PropertyCollectionExtended, String, ILogBuilder)Overloaded.
2017:: Builds horizontal data table with columns mapping properties of the type.
(Defined by DataTableBuilders.)
Public Extension MethodbuildDataTable(String, Boolean, Boolean, Boolean, PropertyCollectionExtended, String)Overloaded.
Builds the horizontal data table
(Defined by DataTableBuilders.)
Public Extension MethodbuildDataTableVerticalSummaryTable
Builds the vertical table with all data
(Defined by DataTableBuilders.)
Public Extension MethodbuildPCE
Public Extension MethodbuildPropertyCollectionT
Create or update property collection out of object properties
(Defined by imbPropertyCollectionExtensions.)
Public Extension MethodchangeValueAsInt32
Changes the value as int32.
(Defined by imbValueChangers.)
Public Extension MethodchangeValueDouble
Step je 0.01
(Defined by imbValueChangers.)
Public Extension MethodConstructTableWithRandomContent
Constructs the data table and populates with random content of the table with.
(Defined by imbDataTableExtensions.)
Public Extension MethodgetDataTypeSafe
V3.5> Experimentalna funkcija - na osnovu tipa vrsi konverziju
(Defined by imbStringCommonTools.)
Public Extension MethodGetDefaultValueT
Vraca tipiziranu podrazumevanu vrednost
(Defined by imbTypologyHelpers.)
Public Extension MethodgetDescriptionForDictionary
Gets the description for dictionary, property table etc
(Defined by settingsEntriesInfoModelApi.)
Public Extension MethodgetDictionaryFromMappedSource
Vraca recnik sa vrednostima iz objekta.
(Defined by propertyMappingTools.)
Public Extension MethodgetEnumMemberPath
Vraca enum member path koji moze da se koristi za preuzimanje enumeracije i njenog tipa
(Defined by imbEnumExtendBase.)
Public Extension MethodGetExpressionResolved
Resolves the specified expresion path, having host as starting node
(Defined by PropertyExpressionTools.)
Public Extension MethodgetPathForObject
2014c: Univerzalni konstruktor putanje
(Defined by resourcePathGenerator.)
Public Extension MethodgetPathForObjectAndParent
Univerzalni konstruktor putanje za bilo koji tip i parent
(Defined by resourcePathGenerator.)
Public Extension MethodgetProperty
Retrieves PropertyInfo found on path specified
(Defined by imbTypeQueryExtensions.)
Public Extension MethodgetSPEC (Defined by imbTypeQueryExtensions.)
Public Extension MethodgetStringValue
2013a> bezbedno vraca string verziju prosledjene vrednosti - Kreira stringValue
(Defined by imbDataExecutor.)
Public Extension MethodGetUserManual
Generates property manual
(Defined by settingsEntriesTools.)
Public Extension MethodGetUserManualSaved
Gets the user manual saved:
(Defined by settingsEntriesTools.)
Public Extension MethodgetValuesFromMappedSource (Defined by propertyMappingTools.)
Public Extension MethodimbAttributeToProperties
Prebacuje vrednost iz atributa u propertije - u skladu sa podesenim mapiranjem (imbAttributeName.metaValueFromAttribute)
(Defined by imbAttributeTools.)
Public Extension MethodimbConvertValueSafe
2014c> bezbedna konverzija vrednosti
(Defined by imbTypeExtensions.)
Public Extension MethodimbConvertValueSafeTypedT (Defined by imbTypeExtensions.)
Public Extension MethodimbGetAllProperties
Vraca sve propertije iz objekta koji su Public i Instance. Vraca i nasledjene propertije ali ako su pregazeni onda vraca samo najnoviji
(Defined by imbTypologyPropertyGetSet.)
Public Extension MethodimbGetAllValues
Vraca sve vrednosti iz svih propertija koji su Public i Instance
(Defined by imbTypologyPropertyGetSet.)
Public Extension MethodimbGetCodeMark (Defined by imbStringExtensions.)
Public Extension MethodimbGetPropertySafe(String, Object, String)Overloaded.
2013> Sigurno preuzimanje vrednosti objekta - podržava path:
(Defined by imbTypologyPropertyGetSet.)
Public Extension MethodimbGetPropertySafe(PropertyInfo, Object, Boolean, Object)Overloaded.
2013> Sigurno preuzimanje vrednosti objekta - podržava path:
(Defined by imbTypologyPropertyGetSet.)
Public Extension MethodimbGetPropertySafe(PropertyInfo, Object, Boolean, Object, Boolean)Overloaded. (Defined by imbTypologyPropertyGetSet.)
Public Extension MethodimbGetPropertySafeT(PropertyInfo)Overloaded.
2014:Maj - uzima property i odmah vrsi bezbednu konverziju!
(Defined by imbTypologyPropertyGetSet.)
Public Extension MethodimbPropertyToString
Sigurno iscitavanje stringa
(Defined by imbTypologyPropertyGetSet.)
Public Extension MethodimbSetPropertyConvertSafe
Algoritam sa konverzijom koja podrzava i Collection objekta koji imaju Add method.
(Defined by imbTypologyPropertyGetSet.)
Public Extension MethodimbSetPropertySafe(String, Object, Boolean, Object, Boolean)Overloaded.
2013> Sigurano postavljanje vrednosti objekta
(Defined by imbTypologyPropertyGetSet.)
Public Extension MethodimbSetPropertySafe(PropertyInfo, Object, Boolean, Object, Boolean)Overloaded.
2013> Sigurano postavljanje vrednosti objekta
(Defined by imbTypologyPropertyGetSet.)
Public Extension MethodimbToBoolean
Konvertuje bilo koju vrednost u Boolean
(Defined by imbTypeExtensions.)
Public Extension MethodimbToEnumeration(Type, Enum)Overloaded.
Convers an value to the best fit Enumeration member
(Defined by imbTypeEnumExtensions.)
Public Extension MethodimbToEnumerationTOverloaded. (Defined by imbTypeEnumExtensions.)
Public Extension MethodimbToInstance
Konvertuje u potrebni tip. Ukoliko postoji konstruktor sa parametrom koji je IsInstanceOfType(input) onda ce koristit njega
(Defined by imbTypeExtensions.)
Public Extension MethodimbToNumber(Type)Overloaded.
Konvertuje u broj prema zadatom tipu
(Defined by imbTypeExtensions.)
Public Extension MethodimbToNumberT(Type)Overloaded. (Defined by imbTypeExtensions.)
Public Extension MethodisCoreColumn (Defined by PropertyEntryColumnExtensions.)
Public Extension MethodisNullOrEmpty (Defined by imbSciStringExtensions.)
Public Extension MethodisNullOrEmptyString
Proverava da li je input null, ako je string onda ga proverava kao string ako je neki drugi objekat onda ga predvara u string pa proverava
(Defined by imbSciStringExtensions.)
Public Extension MethodkeyToString (Defined by imbPropertyCollectionExtensions.)
Public Extension MethodrenderToTemplate
Vraca string koji definise placeholder u template stringu
(Defined by stringTemplateTools.)
Public Extension MethodresolvePath(String, pathResolveFlag)Overloaded.
Najčešće korišćen metod za upit nad putanjom i objektom
(Defined by resourcePathResolver.)
Public Extension MethodresolvePathT(String, pathResolveFlag)Overloaded.
(Defined by resourcePathResolver.)
Public Extension MethodsaveObjectToXML (Defined by objectSerialization.)
Public Extension MethodsetObjectByMappedSource
Primenjuje prosledjenu property mapu
(Defined by propertyMappingTools.)
Public Extension MethodsetObjectBySource
Sets the object by source.
(Defined by imbTypeObjectOperations.)
Public Extension MethodsetObjectValueTypesBySource
Sets the object by source, but only ValueTypes and string and only properties declared at top inherence level. Returns dictionary with updated properties (only if value changed)
(Defined by imbTypeObjectOperations.)
Public Extension MethodsetValuesToMappedTarget
Postavlja vednosti iz recnika u dati ciljani objekat - da bi bilo kompatibilno niz mora biti u istom rasporedu kao i u property mapu
(Defined by propertyMappingTools.)
Public Extension MethodsumValues
Supports> String, Int32, any number via Double and Boolean
(Defined by imbTypeExtensions.)
Public Extension MethodtoExpressionString
Returns expression-ready string, wrapped in proper quotes if required
(Defined by imbStringFormats.)
Public Extension MethodtoStringSafeOverloaded. (Defined by imbStringFormats.)
Public Extension MethodtoStringSafe(String)Overloaded. (Defined by imbStringFormats.)
Public Extension MethodtoStringSafe(String, String)Overloaded.
Bezbedna konverzija u String -- ako je null onda valueForNull
(Defined by imbStringFormats.)
Top
See Also