Package | com.yworks.graph.model |
Interface | public interface IStripeDefaults |
Implementors | StripeDefaults |
ITable
and the like to declare and obtain the defaults
for stripes and their labels.
See also
Property | Defined 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 |
Method | Defined 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 |
autoAdjustPreferredSize | property |
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.
public function get autoAdjustPreferredSize():Boolean
public function set autoAdjustPreferredSize(value:Boolean):void
See also
insets | property |
insets:IRectangle
The default insets for a stripe.
public function get insets():IRectangle
public function set insets(value:IRectangle):void
labelModelParameter | property |
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.
public function get labelModelParameter():ILabelModelParameter
public function set labelModelParameter(value:ILabelModelParameter):void
See also
labelStyle | property |
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.
public function get labelStyle():ILabelStyle
public function set labelStyle(value:ILabelStyle):void
See also
minimumSize | property |
minimumSize:Number
The default minimum size for a stripe.
public function get minimumSize():Number
public function set minimumSize(value:Number):void
shareLabelModelParameterInstance | property |
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
.
public function get shareLabelModelParameterInstance():Boolean
public function set shareLabelModelParameterInstance(value:Boolean):void
See also
shareLabelStyleInstance | property |
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
.
public function get shareLabelStyleInstance():Boolean
public function set shareLabelStyleInstance(value:Boolean):void
See also
shareStyleInstance | property |
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
.
public function get shareStyleInstance():Boolean
public function set shareStyleInstance(value:Boolean):void
See also
size | property |
size:Number
The default stripe size.
public function get size():Number
public function set size(value:Number):void
style | property |
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.
public function get style():INodeStyle
public function set style(value:INodeStyle):void
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.
|
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.
|
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.
INodeStyle — The style to use, which for most implementations is either a
clone of or the style property, if shareStyleInstance
is enabled.
|