Click or drag to resize

mxGraphView Class

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Implements a view for the graph. This class is in charge of computing the absolute coordinates for the relative child geometries, the points for perimeters and edge styles and keeping them cached in mxCellStates for faster retrieval. The states are updated whenever the model or the view state (translate, scale) changes. The scale and translate are honoured in the bounds.
Inheritance Hierarchy
SystemObject
  imbSCI.Graph.MXGraph.viewmxGraphView

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

The mxGraphView type exposes the following members.

Constructors
  NameDescription
Public methodmxGraphView
Constructs a new view for the given graph.
Top
Properties
  NameDescription
Public propertyGraph
Returns the enclosing graph.
Public propertyGraphBounds
Returns the cached diagram bounds.
Public propertyIsEventsEnabled
Sets or returns the current scale.
Public propertyScale
Sets or returns the current scale.
Public propertyStates
Sets or returns the current translation.
Public propertyTranslate
Sets or returns the current translation.
Top
Methods
  NameDescription
Public methodCreateState
Creates and returns a cell state for the given cell.
Public methodGetBoundingBox(Object)
Returns the bounding box for an array of cells or null, if no cells are specified.
Public methodGetBoundingBox(mxCellState)
Shortcut to validateCell with visible set to true.
Public methodGetBoundingBox(mxCellState, Boolean)
Returns the bounding box of the shape and the label for the given cell state and its children if recurse is true.
Public methodGetBounds(Object)
Returns the bounding box for an array of cells or null, if no cells are specified.
Public methodGetBounds(Object, Boolean)
Returns the bounding box for an array of cells or null, if no cells are specified.
Public methodGetCellStates
Returns the states for the given array of cells. The array contains all states that are not null, that is, the returned array may have less elements than the given array.
Public methodGetEdgeStyle
Returns the edge style function to be used to render the given edge state.
Public methodGetNextPoint
Returns the nearest point in the list of absolute points or the center of the opposite terminal.
Public methodGetPerimeterBounds
Returns the perimeter bounds for the given terminal, edge pair.
Public methodGetPerimeterFunction
Returns the perimeter function for the given state.
Public methodGetPerimeterPoint(mxCellState, mxPoint, Boolean)
Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
Public methodGetPerimeterPoint(mxCellState, mxPoint, Boolean, Double)
Returns a point that defines the location of the intersection point between the perimeter and the line between the center of the shape and the given point.
Public methodGetPoint(mxCellState)
Returns the absolute center point along the given edge.
Public methodGetPoint(mxCellState, mxGeometry)
Returns the absolute point on the edge for the given relative geometry as a point. The edge is represented by the given cell state.
Public methodGetRoutingCenterX
Returns the x-coordinate of the center point for automatic routing.
Public methodGetRoutingCenterY
Returns the y-coordinate of the center point for automatic routing.
Public methodGetState(Object)
Returns the state for the given cell or null if no state is defined for the cell.
Public methodGetState(Object, Boolean)
Returns the cell state for the given cell. If create is true, then the state is created if it does not yet exist.
Public methodGetStates
Returns the object that maps from cells to states.
Public methodGetTerminalPort
Returns the given terminal or the port defined in the given edge state if a cell state exists for that port.
Public methodGetVisibleTerminal
Returns the nearest ancestor terminal that is visible. The edge appears to be connected to this terminal on the display.
Public methodInvalidate
Invalidates all cell states.
Public methodRemoveState(Object)
Shortcut to removeState with recurse set to false.
Public methodRemoveState(Object, Boolean)
Removes and returns the mxCellState for the given cell.
Public methodRevalidate
First invalidates, then validates all cell states.
Public methodTransformControlPoint
Transforms the given control point to an absolute point.
Public methodUpdateBoundingBox
Updates the bounding box in the given cell state.
Public methodUpdateCellState
Updates the given cell state.
Public methodUpdateEdgeBounds
Updates the given state using the bounding box of the absolute points. Also updates terminal distance, length and segments.
Public methodUpdateEdgeState
Validates the given cell state.
Public methodUpdateFixedTerminalPoint
Sets the fixed source or target terminal point on the given edge.
Public methodUpdateFixedTerminalPoints
Sets the initial absolute terminal points in the given state before the edge style is computed.
Public methodUpdateFloatingTerminalPoint
Updates the absolute terminal point in the given state for the given start and end state, where start is the source if source is true.
Public methodUpdateFloatingTerminalPoints
Updates the terminal points in the given state after the edge style was computed for the edge.
Public methodUpdateLabelBounds
Updates the label bounds in the given state.
Public methodUpdatePoints
Updates the absolute points in the given state using the specified array of points as the relative points.
Public methodUpdateVertexLabelOffset
Updates the absoluteOffset of the given vertex cell state. This takes into account the label position styles.
Public methodUpdateVertexState
Validates the given cell state.
Public methodValidate
First validates all bounds and then validates all points recursively on all visible cells.
Public methodValidateCell(Object)
Shortcut to validateCell with visible set to true.
Public methodValidateCell(Object, Boolean)
Recursively creates the cell state for the given cell if visible is true and the given cell is visible. If the cell is not visible but the state exists then it is removed using removeState.
Public methodValidateCellState(Object)
Shortcut to validateCellState with recurse set to true.
Public methodValidateCellState(Object, Boolean)
Validates the cell state for the given cell.
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