| Package | com.yworks.graph.model |
| Class | public final class GraphItemTypes |
| Inheritance | GraphItemTypes Object |
IGraph item types as well
as static methods to determine whether a given item matches the type.
| Method | Defined By | ||
|---|---|---|---|
getItemType(item:IModelItem):uint [static]
Gets the type of the item. | GraphItemTypes | ||
isOfType(item:IModelItem, type:uint):Boolean [static] | GraphItemTypes | ||
| Constant | Defined By | ||
|---|---|---|---|
| ALL : uint = 63 [static]
Constant for all item types. | GraphItemTypes | ||
| BEND : uint = 32 [static]
Constant for bends. | GraphItemTypes | ||
| EDGE : uint = 2 [static]
Constant for edges. | GraphItemTypes | ||
| EDGE_LABEL : uint = 8 [static]
Constant for edge labels. | GraphItemTypes | ||
| LABEL : uint = 12 [static]
Constant for all kinds of labels. | GraphItemTypes | ||
| LABELED_ITEM : uint = 3 [static]
Constant for labeled items. | GraphItemTypes | ||
| NODE : uint = 1 [static]
Constant for nodes. | GraphItemTypes | ||
| NODE_LABEL : uint = 4 [static]
Constant for node labels. | GraphItemTypes | ||
| NONE : uint = 0 [static]
Constant for no item type. | GraphItemTypes | ||
| PORT : uint = 16 [static]
Constant for ports. | GraphItemTypes | ||
| getItemType | () | method |
public static function getItemType(item:IModelItem):uintGets the type of the item.
Parameters
item:IModelItem — The item.
|
uint — The type as defined the constants of this class.
|
| isOfType | () | method |
public static function isOfType(item:IModelItem, type:uint):BooleanParameters
item:IModelItem | |
type:uint |
Boolean |
| ALL | Constant |
public static const ALL:uint = 63Constant for all item types.
This is a bitwise combination of all other types declared in this class.
| BEND | Constant |
| EDGE | Constant |
| EDGE_LABEL | Constant |
public static const EDGE_LABEL:uint = 8Constant for edge labels.
See also
| LABEL | Constant |
public static const LABEL:uint = 12Constant for all kinds of labels.
This is a bitwise combination of NODE_LABEL
and EDGE_LABEL
See also
| LABELED_ITEM | Constant |
public static const LABELED_ITEM:uint = 3Constant for labeled items.
A bitwise combination of NODE and EDGE.
See also
| NODE | Constant |
| NODE_LABEL | Constant |
public static const NODE_LABEL:uint = 4Constant for node labels.
See also
| NONE | Constant |
public static const NONE:uint = 0Constant for no item type.
This is a constant where no type bit is set, i.e. it is 0.
| PORT | Constant |