Click or drag to resize

mxGraphModel Class

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Implements a graph model. The graph model acts as a wrapper around the cells which are in charge of storing the actual graph datastructure. The model acts as a transactional wrapper with event notification for all changes, whereas the cells contain the atomic operations for updating the actual datastructure.
Inheritance Hierarchy
SystemObject
  imbSCI.Graph.MXGraph.modelmxGraphModel

Namespace:  imbSCI.Graph.MXGraph.model
Assembly:  imbSCI.Graph (in imbSCI.Graph.dll) Version: 0.3.70.
Syntax
C#
[XmlRootAttribute("mxGraphModel")]
public class mxGraphModel : mxIGraphModel
Request Example View Source

The mxGraphModel type exposes the following members.

Constructors
  NameDescription
Public methodmxGraphModel
Constructs a new empty graph model.
Public methodmxGraphModel(Object)
Constructs a new graph model. If no root is specified then a new root mxCell with a default layer is created.
Top
Properties
  NameDescription
Public propertyIsCreateIds
Sets or returns if the model automatically creates Ids and resolves Id collisions.
Public propertyIsMaintainEdgeParent
Sets of returns if edges should automatically be moved into the nearest common ancestor of their terminals.
Public propertyRoot
Top
Methods
  NameDescription
Public methodAdd
Public methodBeginUpdate
see com.mxgraph.mxIGraphModel.BeginUpdate()
Public methodClear
Sets a new root using createRoot.
Public methodCloneCells
Public methodContains
Public methodCreateId
Creates a new Id for the given cell and increments the global counter for creating new Ids.
Public methodCreateRoot
Creates a new root cell with a default layer (child 0).
Public methodEndUpdate
see com.mxgraph.mxIGraphModel.EndUpdate()
Public methodGetCell
Public methodGetChildAt
Public methodStatic membergetChildCells
Returns the children of the given cell that are vertices and/or edges depending on the arguments.
Public methodGetChildCount
Public methodStatic membergetChildEdges
Returns the child edges of the given parent.
Public methodStatic membergetChildVertices
Returns the child vertices of the given parent.
Public methodStatic memberGetConnections
Returns all edges connected to this cell without loops.
Public methodStatic memberGetDirectedEdgeCount(mxIGraphModel, Object, Boolean)
Returns the number of incoming or outgoing edges.
Public methodStatic memberGetDirectedEdgeCount(mxIGraphModel, Object, Boolean, Object)
Returns the number of incoming or outgoing edges, ignoring the given edge.
Public methodGetEdgeAt
see com.mxgraph.mxIGraphModel.GetEdgeAt(Object, int)
Public methodGetEdgeCount
see com.mxgraph.mxIGraphModel.GetEdgeCount(Object)
Public methodStatic memberGetEdges(mxIGraphModel, Object)
Returns all edges connected to this cell including loops.
Public methodStatic memberGetEdges(mxIGraphModel, Object, Boolean, Boolean, Boolean)
Returns all distinct edges connected to this cell. If at least one of incoming or outgoing is true, then loops are ignored, otherwise if both are false, then all edges connected to the given cell are returned including loops.
Public methodStatic memberGetEdgesBetween(mxIGraphModel, Object, Object)
Returns all edges between the given source and target mxCells. If the optional boolean directed argument is false, then a matching edge is returned regardless of its direction.
Public methodStatic memberGetEdgesBetween(mxIGraphModel, Object, Object, Boolean)
Returns all edges between the given source and target mxCells. If the optional boolean directed argument is false, then a matching edge is returned regardless of its direction.
Public methodGetGeometry
see com.mxgraph.mxIGraphModel.GetGeometry(Object)
Public methodStatic memberGetIncomingEdges
Returns the incoming edges of the given cell without loops.
Public methodGetNearestCommonAncestor
Returns the nearest common ancestor for the specified cells.
Public methodStatic memberGetOpposites
Returns all opposite vertices wrt terminal for the given edges, only$ returning sources and/or targets as specified. The result is returned as an array of mxCells.
Public methodGetOrigin
Returns the absolute, cummulated origin for the children inside the given parent.
Public methodStatic memberGetOutgoingEdges
Returns the outgoing edges of the given cell without loops.
Public methodGetParent
Public methodGetStyle
see com.mxgraph.mxIGraphModel.GetStyle(Object)
Public methodGetTerminal
Public methodGetValue
see com.mxgraph.mxIGraphModel.GetValue(Object)
Public methodIsAncestor
Public methodIsCollapsed
see com.mxgraph.mxIGraphModel.IsCollapsed(Object)
Public methodIsConnectable
see com.mxgraph.mxIGraphModel.IsConnectable(Object)
Public methodIsEdge
see com.mxgraph.mxIGraphModel.IsEdge(Object)
Public methodIsVertex
see com.mxgraph.mxIGraphModel.IsVertex(Object)
Public methodIsVisible
see com.mxgraph.mxIGraphModel.IsVisible(Object)
Public methodMergeChildren
Merges the children of the given cell into the given target cell inside this model. All cells are cloned unless there is a corresponding cell in the model with the same id, in which case the source cell is ignored and all edges are connected to the corresponding cell in this model. Edges are considered to have no identity and are always cloned unless the cloneAllEdges flag is set to false, in which case edges with the same id in the target model are reconnected to reflect the terminals of the source edges.
Public methodRemove
see com.mxgraph.mxIGraphModel.Remove(Object)
Public methodSetCollapsed
see com.mxgraph.mxIGraphModel.SetCollapsed(Object, bool)
Public methodSetGeometry
see com.mxgraph.mxIGraphModel.SetGeometry(Object, mxGeometry)
Public methodSetStyle
see com.mxgraph.mxIGraphModel.SetStyle(Object, string)
Public methodSetTerminal
Public methodStatic memberSetTerminals
Sets the source and target of the given edge in a single atomic change.
Public methodSetValue
see com.mxgraph.mxIGraphModel.SetValue(Object, Object)
Public methodSetVisible
see com.mxgraph.mxIGraphModel.SetVisible(Object, bool)
Public methodUpdateEdgeParent
Inner helper method to update the parent of the specified edge to the nearest-common-ancestor of its two terminals.
Public methodUpdateEdgeParents(Object)
Updates the parents of the edges connected to the given cell and all its descendants so that each edge is contained in the nearest common ancestor.
Public methodUpdateEdgeParents(Object, Object)
Updates the parents of the edges connected to the given cell and all its descendants so that the edge is contained in the nearest-common-ancestor.
Top
Events
  NameDescription
Public eventGraphModelChange
Fires when the graph model has changed.
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