Package | com.yworks.graph.model |
Class | public class StripeTypes |
Inheritance | StripeTypes Object |
ITable
.
The enumeration can be used to create bitwise combination of the types.
Method | Defined By | ||
---|---|---|---|
getItemType(item:IModelItem):uint [static]
The type of the item. | StripeTypes | ||
isOfType(item:IModelItem, types:uint):Boolean [static]
Whether the given item is represented by the given type. | StripeTypes |
Constant | Defined By | ||
---|---|---|---|
ALL : uint = 3 [static]
Constant for all item types. | StripeTypes | ||
COLUMN : uint = 2 [static]
Constant for columns. | StripeTypes | ||
NONE : uint = 0 [static]
Constant for no item type. | StripeTypes | ||
ROW : uint = 1 [static]
Constant for rows. | StripeTypes |
getItemType | () | method |
public static function getItemType(item:IModelItem):uint
The type of the item.
Parameters
item:IModelItem — The item.
|
uint — The type as defined by 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 = 3
Constant for all item types.
This is a bitwise combination of all other types declared in this enum.
COLUMN | Constant |
public static const COLUMN:uint = 2
Constant for columns.
NONE | Constant |
public static const NONE:uint = 0
Constant for no item type.
This is a constant where no type bit has been set, i.e. it is 0
.
ROW | Constant |
public static const ROW:uint = 1
Constant for rows.