Package | com.yworks.graph.model |
Class | public class StripeEvent |
Inheritance | StripeEvent flash.events.Event |
IStripe
type and carries
additional owner information.
Since for some events (STRIPE_REMOVED
) it is unclear by what owner
the stripe was owned by before the event, this event can be used to carry
exactly that information.
See also
Property | Defined By | ||
---|---|---|---|
label : ILabel [read-only]
The label which was affected. | StripeEvent | ||
parent : IStripe [read-only]
The parent of the stripe. | StripeEvent | ||
stripe : IStripe [read-only]
The stripe which was affected. | StripeEvent |
Method | Defined By | ||
---|---|---|---|
StripeEvent(type:String, stripe:IStripe, parent:IStripe = null, label:ILabel = null, bubbles:Boolean = false, cancelable:Boolean = false)
Initializes a new instance. | StripeEvent | ||
clone():Event [override] | StripeEvent |
Constant | Defined By | ||
---|---|---|---|
LABEL_ADDED : String = labelAdded [static]
Event which is dispatched when a new label has been added to a stripe (column or row). | StripeEvent | ||
LABEL_CHANGED : String = labelChanged [static]
Event which is dispatched when the label of a stripe (column or row) has been changed. | StripeEvent | ||
LABEL_REMOVED : String = labelRemoved [static]
Event which is dispatched when a label has been removed from its stripe (column or row). | StripeEvent | ||
STRIPE_CHANGED : String = stripeChanged [static]
Event which is dispatched when a stripe (column or row) has been changed. | StripeEvent | ||
STRIPE_CREATED : String = stripeCreated [static]
Event which is dispatched when a new stripe (column or row) is created. | StripeEvent | ||
STRIPE_REMOVED : String = stripeRemoved [static]
Event which is dispatched when a stripe (column or row) is removed from its parent. | StripeEvent |
label | property |
label:ILabel
[read-only] The label which was affected.
This property has a meaningful value only for one of the
LABEL_CHANGED
, LABEL_ADDED
, or LABEL_REMOVED
events. For the other events it is null
.
public function get label():ILabel
parent | property |
parent:IStripe
[read-only]
The parent of the stripe. May be null
.
public function get parent():IStripe
stripe | property |
stripe:IStripe
[read-only] The stripe which was affected.
public function get stripe():IStripe
StripeEvent | () | Constructor |
public function StripeEvent(type:String, stripe:IStripe, parent:IStripe = null, label:ILabel = null, bubbles:Boolean = false, cancelable:Boolean = false)
Initializes a new instance.
Parameterstype:String — The type of the event, as defined in this class's constants.
| |
stripe:IStripe — The stripe which was affected.
| |
parent:IStripe (default = null ) — The owner of the stripe. May be null .
| |
label:ILabel (default = null ) — The label which was affected in case of one of the
LABEL_CHANGED , LABEL_ADDED , or LABEL_REMOVED
events.
| |
bubbles:Boolean (default = false ) — Whether this event bubbles.
| |
cancelable:Boolean (default = false ) — Whether this event is cancelable.
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
LABEL_ADDED | Constant |
public static const LABEL_ADDED:String = labelAdded
Event which is dispatched when a new label has been added to a stripe (column or row).
LABEL_CHANGED | Constant |
public static const LABEL_CHANGED:String = labelChanged
Event which is dispatched when the label of a stripe (column or row) has been changed.
LABEL_REMOVED | Constant |
public static const LABEL_REMOVED:String = labelRemoved
Event which is dispatched when a label has been removed from its stripe (column or row).
STRIPE_CHANGED | Constant |
public static const STRIPE_CHANGED:String = stripeChanged
Event which is dispatched when a stripe (column or row) has been changed.
STRIPE_CREATED | Constant |
public static const STRIPE_CREATED:String = stripeCreated
Event which is dispatched when a new stripe (column or row) is created.
STRIPE_REMOVED | Constant |
public static const STRIPE_REMOVED:String = stripeRemoved
Event which is dispatched when a stripe (column or row) is removed from its parent.