mxGraph Class |
Namespace: imbSCI.Graph.MXGraph.view
The mxGraph type exposes the following members.
| Name | Description | |
|---|---|---|
| mxGraph |
Constructs a new graph with an empty graph model.
| |
| mxGraph(mxIGraphModel) |
Constructs a new graph for the specified model. If no model is
specified, then a new, empty graph model is used.
| |
| mxGraph(mxStylesheet) |
Constructs a new graph for the specified model. If no model is
specified, then a new, empty graph model is used.
| |
| mxGraph(mxIGraphModel, mxStylesheet) |
Constructs a new graph for the specified model. If no model is
specified, then a new, empty graph model is used.
|
| Name | Description | |
|---|---|---|
| DefaultLoopStyle |
Sets or returns the default edge style for loops.
| |
| GridEnabled |
Sets or returns the enabled state of the grid.
| |
| GridSize |
Sets or returns the grid size.
| |
| ImageBundles |
Sets or returns the image bundles.
| |
| LabelsVisible |
Sets or returns if labels are visible
| |
| Model |
Sets or returns the graph model that contains the graph data.
| |
| Stylesheet |
Sets or returns the stylesheet that provides the style.
| |
| View |
Sets or returns the view that contains the cell states.
|
| Name | Description | |
|---|---|---|
| AddImageBundle |
Adds the specified bundle.
| |
| ConvertValueToString |
Returns the textual representation for the given cell.
| |
| CreateEdge |
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.
| |
| CreateVertex(Object, String, Object, Double, Double, Double, Double, String) |
Creates a new vertex to be used in insertVertex.
| |
| CreateVertex(Object, String, Object, Double, Double, Double, Double, String, Boolean) |
Creates a new vertex to be used in insertVertex.
| |
| DrawCell |
Draws the given cell onto the specified canvas.
| |
| DrawGraph |
Draws the graph onto the given canvas.
| |
| DrawState |
Draws the given cell and label onto the specified canvas. No
children or descendants are painted.
| |
| FindTreeRoots(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.
| |
| FindTreeRoots(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.
| |
| FindTreeRoots(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.
| |
| GetBoundingBox(Object) |
Returns the bounds of the given cell.
| |
| GetBoundingBox(Object, Boolean) |
Returns the bounding box of the given cell including all connected edges
if includeEdge is true.
| |
| GetBoundingBox(Object, Boolean, Boolean) |
Returns the bounding box of the given cell including all connected edges
if includeEdge is true.
| |
| GetBoundsForCells |
Returns the bounds for the given cells.
| |
| GetCellAt(Int32, Int32) |
Returns the cell at the given location.
| |
| GetCellAt(Int32, Int32, Boolean) |
Returns the cell at the given location.
| |
| GetCellAt(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.
| |
| GetCellBounds(Object) |
Returns the bounds of the given cell.
| |
| GetCellBounds(Object, Boolean) |
Returns the bounds of the given cell including all connected edges
if includeEdge is true.
| |
| GetCellBounds(Object, Boolean, Boolean) |
Returns the bounds of the given cell including all connected edges
if includeEdge is true.
| |
| GetCellBounds(Object, Boolean, Boolean, Boolean) |
Returns the bounds of the given cell including all connected edges
if includeEdge is true.
| |
| GetCellGeometry |
Returns the geometry for the given cell.
| |
| GetCellStyle |
Returns the style for the given cell.
| |
| GetChildCells(Object) |
Returns the visible children of the given parent.
| |
| GetChildCells(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.
| |
| GetChildEdges |
Returns the visible child edges of the given parent.
| |
| GetChildOffsetForCell |
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.
| |
| GetChildVertices |
Returns the visible child vertices of the given parent.
| |
| GetConnectionConstraint |
Returns a connection constraint that describes the given connection
point. This result can then be passed to getConnectionPoint.
| |
| GetConnectionPoint |
Returns the nearest point in the list of absolute points or the center
of the opposite terminal.
| |
| GetConnections(Object) |
Returns all visible edges connected to the given cell without loops.
| |
| GetConnections(Object, Object) |
Returns all visible edges connected to the given cell without loops.
| |
| GetDefaultParent |
Returns the first child of the root in the model, that is, the first or
default layer of the diagram.
| |
| GetEdges(Object) |
Returns all visible edges connected to the given cell including loops.
| |
| GetEdges(Object, Object) |
Returns all visible edges connected to the given cell including loops.
| |
| GetEdges(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.
| |
| GetEdges(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.
| |
| GetEdgesBetween(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.
| |
| GetEdgesBetween(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.
| |
| GetGraphBounds |
Returns the bounds of the visible graph.
| |
| GetImageFromBundles |
Searches all bundles for the specified key and returns the value for the
first match or null if the key is not found.
| |
| GetIncomingEdges(Object) |
Returns all incoming visible edges connected to the given cell without
loops.
| |
| GetIncomingEdges(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.
| |
| GetLabel |
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.
| |
| GetOpposites(Object, Object) |
Returns all distinct visible opposite cells of the terminal on the
given edges.
| |
| GetOpposites(Object, Object, Boolean, Boolean) |
Returns all distincts visible opposite cells for the specified
terminal on the given edges.
| |
| GetOutgoingEdges(Object) |
Returns all outgoing visible edges connected to the given cell without
loops.
| |
| GetOutgoingEdges(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.
| |
| GetPaintBounds |
Returns the bounding box of the given cells and their descendants.
| |
| GraphModelChanged |
Called when the graph model has changed to invalidate the view.
| |
| HitsSwimlaneContent |
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.
| |
| InsertEdge(Object, String, Object, Object, Object) |
Creates and adds a new edge with an empty style.
| |
| InsertEdge(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.
| |
| InsertVertex(Object, String, Object, Double, Double, Double, Double) |
Creates and adds a new vertex with an empty style, see AddVertex.
| |
| InsertVertex(Object, String, Object, Double, Double, Double, Double, String) |
Creates and adds a new vertex with an empty style, see AddVertex.
| |
| InsertVertex(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.
| |
| Intersects |
Returns the bottom-most cell that intersects the given point (x, y) in
the cell hierarchy that starts at the given parent.
| |
| IsCellCollapsed |
Returns true if the given cell is collapsed. This implementation returns
true if the collapsed state of the cell in the model is true.
| |
| IsCellConnectable |
Returns true if the given cell is connectable. This implementation returns
true if the connectable state of the cell in the model is true.
| |
| IsCellMovable |
Returns true if the given cell is movable. This implementation always
returns true.
| |
| IsCellVisible |
Returns true if the given cell is visible. This implementation returns
true if the visible state of the cell in the model is true.
| |
| IsOrthogonal |
Returns true if perimeter points should be computed such that the
resulting edge has only horizontal or vertical segments.
| |
| IsSwimlane |
Returns true if the given cell is a swimlane.
| |
| IsValidAncestor |
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.
| |
| RemoveImageBundle |
Removes the specified bundle.
| |
| SetCellStyles |
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.
| |
| Snap |
Snaps the given numeric value to the grid if gridEnabled is true.
|
| Name | Description | |
|---|---|---|
| BuildDataShema |
Builds the data table.
(Defined by PropertyDataStructureTools.) | |
| buildDataTable(String, DataTableBuildersbuildDataTableOptions, PropertyCollectionExtended, String, ILogBuilder) | Overloaded.
2017:: Builds horizontal data table with columns mapping properties of the type.
(Defined by DataTableBuilders.) | |
| buildDataTable(String, Boolean, Boolean, Boolean, PropertyCollectionExtended, String) | Overloaded.
Builds the horizontal data table
(Defined by DataTableBuilders.) | |
| buildDataTableVerticalSummaryTable |
Builds the vertical table with all data
(Defined by DataTableBuilders.) | |
| buildPCE | (Defined by imbPropertyCollectionExtensions.) | |
| buildPropertyCollectionT |
Create or update property collection out of object properties
(Defined by imbPropertyCollectionExtensions.) | |
| changeValueAsInt32 |
Changes the value as int32.
(Defined by imbValueChangers.) | |
| changeValueDouble |
Step je 0.01
(Defined by imbValueChangers.) | |
| ConstructTableWithRandomContent |
Constructs the data table and populates with random content of the table with.
(Defined by imbDataTableExtensions.) | |
| getDataTypeSafe |
V3.5> Experimentalna funkcija - na osnovu tipa vrsi konverziju
(Defined by imbStringCommonTools.) | |
| GetDefaultValueT |
Vraca tipiziranu podrazumevanu vrednost
(Defined by imbTypologyHelpers.) | |
| getDescriptionForDictionary |
Gets the description for dictionary, property table etc
(Defined by settingsEntriesInfoModelApi.) | |
| getDictionaryFromMappedSource |
Vraca recnik sa vrednostima iz objekta.
(Defined by propertyMappingTools.) | |
| getEnumMemberPath |
Vraca enum member path koji moze da se koristi za preuzimanje enumeracije i njenog tipa
(Defined by imbEnumExtendBase.) | |
| GetExpressionResolved |
Resolves the specified expresion path, having host as starting node
(Defined by PropertyExpressionTools.) | |
| getPathForObject |
2014c: Univerzalni konstruktor putanje
(Defined by resourcePathGenerator.) | |
| getPathForObjectAndParent |
Univerzalni konstruktor putanje za bilo koji tip i parent
(Defined by resourcePathGenerator.) | |
| getProperty |
Retrieves PropertyInfo found on path specified
(Defined by imbTypeQueryExtensions.) | |
| getSPEC | (Defined by imbTypeQueryExtensions.) | |
| getStringValue |
2013a> bezbedno vraca string verziju prosledjene vrednosti - Kreira stringValue
(Defined by imbDataExecutor.) | |
| GetUserManual |
Generates property manual
(Defined by settingsEntriesTools.) | |
| GetUserManualSaved |
Gets the user manual saved:
(Defined by settingsEntriesTools.) | |
| getValuesFromMappedSource | (Defined by propertyMappingTools.) | |
| imbAttributeToProperties |
Prebacuje vrednost iz atributa u propertije - u skladu sa podesenim mapiranjem (imbAttributeName.metaValueFromAttribute)
(Defined by imbAttributeTools.) | |
| imbConvertValueSafe |
2014c> bezbedna konverzija vrednosti
(Defined by imbTypeExtensions.) | |
| imbConvertValueSafeTypedT | (Defined by imbTypeExtensions.) | |
| imbGetAllProperties |
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.) | |
| imbGetAllValues |
Vraca sve vrednosti iz svih propertija koji su Public i Instance
(Defined by imbTypologyPropertyGetSet.) | |
| imbGetCodeMark | (Defined by imbStringExtensions.) | |
| imbGetPropertySafe(String, Object, String) | Overloaded.
2013> Sigurno preuzimanje vrednosti objekta - podržava path:
(Defined by imbTypologyPropertyGetSet.) | |
| imbGetPropertySafe(PropertyInfo, Object, Boolean, Object) | Overloaded.
2013> Sigurno preuzimanje vrednosti objekta - podržava path:
(Defined by imbTypologyPropertyGetSet.) | |
| imbGetPropertySafe(PropertyInfo, Object, Boolean, Object, Boolean) | Overloaded. (Defined by imbTypologyPropertyGetSet.) | |
| imbGetPropertySafeT(PropertyInfo) | Overloaded.
2014:Maj - uzima property i odmah vrsi bezbednu konverziju!
(Defined by imbTypologyPropertyGetSet.) | |
| imbPropertyToString |
Sigurno iscitavanje stringa
(Defined by imbTypologyPropertyGetSet.) | |
| imbSetPropertyConvertSafe |
Algoritam sa konverzijom koja podrzava i Collection objekta koji imaju Add method.
(Defined by imbTypologyPropertyGetSet.) | |
| imbSetPropertySafe(String, Object, Boolean, Object, Boolean) | Overloaded.
2013> Sigurano postavljanje vrednosti objekta
(Defined by imbTypologyPropertyGetSet.) | |
| imbSetPropertySafe(PropertyInfo, Object, Boolean, Object, Boolean) | Overloaded.
2013> Sigurano postavljanje vrednosti objekta
(Defined by imbTypologyPropertyGetSet.) | |
| imbToBoolean |
Konvertuje bilo koju vrednost u Boolean
(Defined by imbTypeExtensions.) | |
| imbToEnumeration(Type, Enum) | Overloaded.
Convers an value to the best fit Enumeration member
(Defined by imbTypeEnumExtensions.) | |
| imbToEnumerationT | Overloaded. (Defined by imbTypeEnumExtensions.) | |
| imbToInstance |
Konvertuje u potrebni tip. Ukoliko postoji konstruktor sa parametrom koji je IsInstanceOfType(input) onda ce koristit njega
(Defined by imbTypeExtensions.) | |
| imbToNumber(Type) | Overloaded.
Konvertuje u broj prema zadatom tipu
(Defined by imbTypeExtensions.) | |
| imbToNumberT(Type) | Overloaded. (Defined by imbTypeExtensions.) | |
| isCoreColumn | (Defined by PropertyEntryColumnExtensions.) | |
| isNullOrEmpty | (Defined by imbSciStringExtensions.) | |
| isNullOrEmptyString |
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.) | |
| keyToString | (Defined by imbPropertyCollectionExtensions.) | |
| renderToTemplate |
Vraca string koji definise placeholder u template stringu
(Defined by stringTemplateTools.) | |
| resolvePath(String, pathResolveFlag) | Overloaded.
Najčešće korišćen metod za upit nad putanjom i objektom
(Defined by resourcePathResolver.) | |
| resolvePathT(String, pathResolveFlag) | Overloaded. (Defined by resourcePathResolver.) | |
| saveObjectToXML | (Defined by objectSerialization.) | |
| setObjectByMappedSource |
Primenjuje prosledjenu property mapu
(Defined by propertyMappingTools.) | |
| setObjectBySource |
Sets the object by source.
(Defined by imbTypeObjectOperations.) | |
| setObjectValueTypesBySource |
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.) | |
| setValuesToMappedTarget |
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.) | |
| sumValues |
Supports> String, Int32, any number via Double and Boolean
(Defined by imbTypeExtensions.) | |
| toExpressionString |
Returns expression-ready string, wrapped in proper quotes if required
(Defined by imbStringFormats.) | |
| toStringSafe | Overloaded. (Defined by imbStringFormats.) | |
| toStringSafe(String) | Overloaded. (Defined by imbStringFormats.) | |
| toStringSafe(String, String) | Overloaded.
Bezbedna konverzija u String -- ako je null onda valueForNull
(Defined by imbStringFormats.) |