Click or drag to resize

mxUtils Class

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Contains various helper methods for use with mxGraph.
Inheritance Hierarchy
SystemObject
  imbSCI.Graph.MXGraph.utilsmxUtils

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

The mxUtils type exposes the following members.

Constructors
  NameDescription
Public methodmxUtils
Initializes a new instance of the mxUtils class
Top
Methods
  NameDescription
Public methodAddStylename
Adds the specified stylename to the given style if it does not already contain the stylename.
Public methodStatic memberArcToCurves
Converts the given arc to a series of curves.
Public methodStatic memberCreateDocument
Returns a new, empty DOM document. External entities and DTDs are ignored.
Public methodStatic memberCreateImage
Creates an image for the given parameters.
Public methodStatic memberEval
Evaluates a Java expression to a class member using mxCodecRegistry. The range of supported expressions is limited to static class members such as mxEdgeStyle.ElbowConnector.
Public methodStatic memberFillClippedRect
Public methodStatic memberFindNode
Returns the first node where attr equals value. This implementation does not use XPath.
Public methodStatic memberGetBoundingBox
Returns the bounding box of the rotated rectangle.
Public methodStatic memberGetColor(DictionaryString, Object, String)
Returns the value for key in dictionary as a color or null if no value is defined for the key.
Public methodStatic memberGetColor(DictionaryString, Object, String, NullableColor)
Returns the value for key in dictionary as a color or the given default value if no value is defined for the key.
Public methodStatic memberGetDouble(DictionaryString, Object, String)
Returns the value for key in dictionary as a double or 0 if no value is defined for the key.
Public methodStatic memberGetDouble(DictionaryString, Object, String, Double)
Returns the value for key in dictionary as a double or the given default value if no value is defined for the key.
Public methodStatic memberGetFloat(DictionaryString, Object, String)
Returns the value for key in dictionary as a float or 0 if no value is defined for the key.
Public methodStatic memberGetFloat(DictionaryString, Object, String, Single)
Returns the value for key in dictionary as a float or the given default value if no value is defined for the key.
Public methodStatic memberGetFont(DictionaryString, Object)
Public methodStatic memberGetFont(DictionaryString, Object, Double)
Public methodStatic memberGetInt(DictionaryString, Object, String)
Returns the value for key in dictionary as an int or 0 if no value is defined for the key.
Public methodStatic memberGetInt(DictionaryString, Object, String, Int32)
Returns the value for key in dictionary as an int or the given default value if no value is defined for the key.
Public methodStatic memberGetLabelPaintBounds
Returns the paint bounds for the given label.
Public methodStatic memberGetLabelSize
Returns the size of the given label.
Public methodStatic memberGetMd5Hash
Returns the Md5 hash for the given text.
Public methodStatic memberGetPrettyXml
Returns a pretty-printed XML string for the given node.
Public methodStatic memberGetRotatedPoint(mxPoint, Double, Double)
Rotates the given point by the given cos and sin.
Public methodStatic memberGetRotatedPoint(mxPoint, Double, Double, mxPoint)
Rotates the given point by the given cos and sin.
Public methodStatic memberGetScaledLabelBounds
Returns the bounds for a label for the given location and size, taking into account the alignment and spacing in the specified style, as well as the width and height of the rectangle that contains the label. (For edge labels this width and height is 0.) The scale is used to scale the given size and the spacings in the specified style.
Public methodStatic memberGetSizeForString(String, Font)
Returns the size of the given text.
Public methodStatic memberGetSizeForString(String, Font, Int32)
Returns an mxRectangle with the size (width and height in pixels) of the given text.
Public methodStatic memberGetString(DictionaryString, Object, String)
Returns the value for key in dictionary as a string or null if no value is defined for the key.
Public methodStatic memberGetString(DictionaryString, Object, String, String)
Returns the value for key in dictionary as a string or the given default value if no value is defined for the key.
Public methodStatic memberGetStringFormat
Creates a new StringFormat object for the given style.
Public methodStatic memberGetStylename
Returns the stylename in a style of the form stylename[;key=value] or an empty string if the given style does not contain a stylename.
Public methodStatic memberGetStylenames
Returns the stylenames in a style of the form stylename[;key=value] or an empty array if the given style does not contain any stylenames.
Public methodStatic memberGetXml(XmlNode)
Returns a string that represents the given node.
Public methodStatic memberGetXml(XmlNode, Formatting)
Returns a pretty-printed XML string for the given node.
Public methodStatic memberHtmlEntities
Converts the ampersand, quote, prime, less-than and greater-than characters to their corresponding HTML entities in the given string.
Public methodStatic memberIndexOfStylename
Returns the index of the given stylename in the given style. This returns -1 if the given stylename does not occur (as a stylename) in the given style, otherwise it returns the index of the first character.
Public methodStatic memberIntersection
Returns the intersection of two lines as an mxPoint.
Public methodStatic memberIsNode(Object, String)
Returns true if the given value is an XML node with the specified nodename. specified.
Public methodStatic memberIsNode(Object, String, String, String)
Returns true if the user object is an XML node with the specified type and and the optional attribute has the specified value or is not specified.
Public methodStatic memberIsTrue(DictionaryString, Object, String)
Returns true if the dictionary contains true for the given key or false if no value is defined for the key.
Public methodStatic memberIsTrue(DictionaryString, Object, String, Boolean)
Returns true if the dictionary contains true for the given key or the given default value if no value is defined for the key.
Public methodStatic memberLoadDocument
Returns a new DOM document for the given URI.
Public methodStatic memberLoadImage
Loads an image from the local filesystem, a data URI or any other URL.
Public methodStatic memberParseXml
Returns a document that represents the given XML string.
Public methodStatic memberReadFile
Reads the given filename into a string.
Public methodStatic memberRemoveAllStylenames
Removes all stylenames from the given style and returns the updated style.
Public methodRemoveStylename
Removes all occurrences of the specified stylename in the given style and returns the updated style.
Public methodStatic memberSetCellStyleFlags
Sets or toggles the flag bit for the given key in the cell's styles. If value is null then the flag is toggled.
Public methodStatic memberSetCellStyles
Assigns the value for the given key in the styles of the given cells, or removes the key from the styles if the value is null.
Public methodStatic memberSetStyle
Adds or removes the given key, value pair to the style and returns the new style. If value is null or zero length then the key is removed from the style.
Public methodStatic memberSetStyleFlag
Sets or removes the given key from the specified style and returns the new style. If value is null then the flag is toggled.
Public methodStatic memberToRadians
Converts the given degree to radians.
Public methodStatic memberTranslatePoints
Creates a new list of new points obtained by translating the points in the given list by the given vector. Elements that are not mxPoints are added to the result as-is.
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