Packagecom.yworks.graph.model
Classpublic class StripeTypes
InheritanceStripeTypes Inheritance Object

This class defines constants for use in various properties that can take a bitwise combination of item types that make up an ITable.

The enumeration can be used to create bitwise combination of the types.



Public Methods
 MethodDefined By
  
[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
Public Constants
 ConstantDefined 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
Method Detail
getItemType()method
public static function getItemType(item:IModelItem):uint

The type of the item.

Parameters

item:IModelItem — The item.

Returns
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.

Returns
Boolean — Whether the given item's type is among the given types.
Constant Detail
ALLConstant
public static const ALL:uint = 3

Constant for all item types.

This is a bitwise combination of all other types declared in this enum.

COLUMNConstant 
public static const COLUMN:uint = 2

Constant for columns.

NONEConstant 
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.

ROWConstant 
public static const ROW:uint = 1

Constant for rows.