Packagecom.yworks.graph.model
Interfacepublic interface IStripeDefaults
Implementors StripeDefaults

Interface used by ITable and the like to declare and obtain the defaults for stripes and their labels.

See also

ITable.rowDefaults
ITable.columnDefaults


Public Properties
 PropertyDefined By
  autoAdjustPreferredSize : Boolean
Determines whether to automatically adjust the preferred size of a label.
IStripeDefaults
  insets : IRectangle
The default insets for a stripe.
IStripeDefaults
  labelModelParameter : ILabelModelParameter
The label model parameter to use for labels.
IStripeDefaults
  labelStyle : ILabelStyle
The default style to use for labels.
IStripeDefaults
  minimumSize : Number
The default minimum size for a stripe.
IStripeDefaults
  shareLabelModelParameterInstance : Boolean
Whether the labelModelParameter instance should be shared referentially or cloned upon a call to getLabelModelParameterInstance().
IStripeDefaults
  shareLabelStyleInstance : Boolean
Whether the labelStyle instance should be shared referentially or cloned upon a call to getLabelStyleInstance.
IStripeDefaults
  shareStyleInstance : Boolean
Indicates whether the style instance should be shared referentially or cloned upon a call to getStyleInstance.
IStripeDefaults
  size : Number
The default stripe size.
IStripeDefaults
  style : INodeStyle
The default style to use for stripes.
IStripeDefaults
Public Methods
 MethodDefined By
  
Factory method that returns a label model parameter instance for use with newly created labels.
IStripeDefaults
  
Factory method that returns a style instance for use with newly created labels.
IStripeDefaults
  
Factory method that returns a style instance for use with newly created stripes.
IStripeDefaults
Property Detail
autoAdjustPreferredSizeproperty
autoAdjustPreferredSize:Boolean

Determines whether to automatically adjust the preferred size of a label.

On a call to IGraph.setLabelText() or IGraph.setLabelStyle(), the preferred size of the label will automatically be adjusted to the preferred size that is suggested by the label's style renderer, if this property is set to true.


Implementation
    public function get autoAdjustPreferredSize():Boolean
    public function set autoAdjustPreferredSize(value:Boolean):void

See also

insetsproperty 
insets:IRectangle

The default insets for a stripe.


Implementation
    public function get insets():IRectangle
    public function set insets(value:IRectangle):void
labelModelParameterproperty 
labelModelParameter:ILabelModelParameter

The label model parameter to use for labels.

Depending on the setting of shareLabelModelParameterInstance, the getLabelModelParameterInstance method should return a clone of this instance or the very same instance.


Implementation
    public function get labelModelParameter():ILabelModelParameter
    public function set labelModelParameter(value:ILabelModelParameter):void

See also

labelStyleproperty 
labelStyle:ILabelStyle

The default style to use for labels.

Depending on the setting of shareLabelStyleInstance, the getLabelStyleInstance() method should return a clone of this instance or the very same instance.


Implementation
    public function get labelStyle():ILabelStyle
    public function set labelStyle(value:ILabelStyle):void

See also

minimumSizeproperty 
minimumSize:Number

The default minimum size for a stripe.


Implementation
    public function get minimumSize():Number
    public function set minimumSize(value:Number):void
shareLabelModelParameterInstanceproperty 
shareLabelModelParameterInstance:Boolean

Whether the labelModelParameter instance should be shared referentially or cloned upon a call to getLabelModelParameterInstance().

true if the reference should be shared; otherwise, false.


Implementation
    public function get shareLabelModelParameterInstance():Boolean
    public function set shareLabelModelParameterInstance(value:Boolean):void

See also

shareLabelStyleInstanceproperty 
shareLabelStyleInstance:Boolean

Whether the labelStyle instance should be shared referentially or cloned upon a call to getLabelStyleInstance.

true if the reference should be shared; otherwise, false.


Implementation
    public function get shareLabelStyleInstance():Boolean
    public function set shareLabelStyleInstance(value:Boolean):void

See also

shareStyleInstanceproperty 
shareStyleInstance:Boolean

Indicates whether the style instance should be shared referentially or cloned upon a call to getStyleInstance.

Set to true if the reference should be shared; otherwise, false.


Implementation
    public function get shareStyleInstance():Boolean
    public function set shareStyleInstance(value:Boolean):void

See also

sizeproperty 
size:Number

The default stripe size.


Implementation
    public function get size():Number
    public function set size(value:Number):void
styleproperty 
style:INodeStyle

The default style to use for stripes.

Depending on the setting of shareStyleInstance, the getStyleInstance method should return a clone of this instance or the very same instance.


Implementation
    public function get style():INodeStyle
    public function set style(value:INodeStyle):void
Method Detail
getLabelModelParameterInstance()method
public function getLabelModelParameterInstance(owner:ILabeledItem):ILabelModelParameter

Factory method that returns a label model parameter instance for use with newly created labels.

Most implementations will yield either a clone of or the labelModelParameter property, if shareLabelModelParameterInstance is enabled, but they might use more complicated logic, too.

Parameters

owner:ILabeledItem — The owner of the label that will be created.

Returns
ILabelModelParameter — The parameter to use, which for most implementations is either a clone of or the labelModelParameter property, if shareLabelModelParameterInstance is enabled.
getLabelStyleInstance()method 
public function getLabelStyleInstance(owner:ILabeledItem):ILabelStyle

Factory method that returns a style instance for use with newly created labels.

Most implementations will yield either a clone of or the labelStyle property if shareLabelStyleInstance is enabled, but they might use more complicated logic, too.

Parameters

owner:ILabeledItem — The owner of the label that will be created.

Returns
ILabelStyle — The style to use, which for most implementations is either a clone of or the labelStyle property, if shareLabelStyleInstance is enabled.
getStyleInstance()method 
public function getStyleInstance():INodeStyle

Factory method that returns a style instance for use with newly created stripes.

Most implementations will yield either, a clone of or the style property, if shareStyleInstance is enabled, but they might use more complicated logic, too.

Returns
INodeStyle — The style to use, which for most implementations is either a clone of or the style property, if shareStyleInstance is enabled.