| Package | com.yworks.util |
| Class | public final class Util |
| Inheritance | Util Object |
| Method | Defined By | ||
|---|---|---|---|
classIsAssignableFrom(cls:Class, cls2:Class):Boolean [static] | Util | ||
deepCopy(obj:Object):* [static] | Util | ||
formatNumber(number:Object, radix:uint = 10, minChars:uint = 0):String [static]
Format a number as a string using the given radix. | Util | ||
registerLicense(license:XML):Boolean [static]
Register a license xml file with the application. | Util | ||
| _viewSourceURL | property |
yworks_internal static var _viewSourceURL:String = viewSource/index.html| classIsAssignableFrom | () | method |
public static function classIsAssignableFrom(cls:Class, cls2:Class):BooleanParameters
cls:Class | |
cls2:Class |
Boolean |
| configureViewSource | () | method |
yworks_internal static function configureViewSource(app:InteractiveObject, canvas:GraphCanvasComponent):voidParameters
app:InteractiveObject | |
canvas:GraphCanvasComponent |
| deepCopy | () | method |
public static function deepCopy(obj:Object):*Parameters
obj:Object |
* |
| formatNumber | () | method |
public static function formatNumber(number:Object, radix:uint = 10, minChars:uint = 0):StringFormat a number as a string using the given radix.
Parameters
number:Object — The Number to be converted to string. The given number object can be of type Number, uint, int or String.
| |
radix:uint (default = 10) — The radix to use when converting the number.
| |
minChars:uint (default = 0) — If the resulting string is shorter that minChars, it will be filled with leading zeros.
|
String — A string representation of the given number
|
| millisToDays | () | method |
yworks_internal static function millisToDays(millis:Number):NumberParameters
millis:Number |
Number |
| registerLicense | () | method |
public static function registerLicense(license:XML):BooleanRegister a license xml file with the application. If the license file can not be validated, the application will not work.
Parameters
license:XML — A XML object containing license information.
|
Boolean |