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]
The type of the item. | GraphItemTypes | ||
isOfType(item:IModelItem, types:uint):Boolean [static]
Whether the given item is represented by the given type. | 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):uint
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, types:uint):Boolean
Whether the given item is represented by the given type.
Parameters
item:IModelItem — The item to test.
| |
types:uint — A bitwise combination of one or more of the constants of this class.
|
Boolean — Whether the given item's type is among the given types.
|
ALL | Constant |
public static const ALL:uint = 63
Constant 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 = 8
Constant for edge labels.
See also
LABEL | Constant |
public static const LABEL:uint = 12
Constant 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 = 3
Constant for labeled items.
A bitwise combination of NODE
and EDGE
.
See also
NODE | Constant |
NODE_LABEL | Constant |
public static const NODE_LABEL:uint = 4
Constant for node labels.
See also
NONE | Constant |
public static const NONE:uint = 0
Constant for no item type.
This is a constant where no type bit is set, i.e. it is 0
.
PORT | Constant |