Class: Layout::Group
Relationships | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Entity
|
|
Instance Chain:
self,
Entity
|
|
Inherits: |
Layout::Entity
|
Overview
A group is a special type of Entity
that does not belong to a Layer
and contains other Entity
s as children. A Group
‘s children may include other Group
s, allowing for a hierarchical tree structure of Entity
s. A Group
must contain at least one child and will be automatically collapsed if an operation is performed that results in the Group
being empty.
Constant Summary
-
RESIZE_BEHAVIOR_BOUNDS =
Constants
nil
-
RESIZE_BEHAVIOR_BOUNDS_AND_FONTS =
Stub value.
nil
-
RESIZE_BEHAVIOR_NONE =
Stub value.
nil
Class Method Summary
-
.new(entities) ⇒ Layout::Group
constructor
The
#initialize
method creates a newGroup
.
Instance Attribute Summary
-
#scale_precision ⇒ Float
rw
The #scale_precision method returns the precision used for the scale of the
Group
. -
#scale_precision=(precision)
rw
The #scale_precision= method sets the precision for the scale of the
Group
. -
#scale_units ⇒ Integer
rw
The #scale_units method returns the units format used in the scale for the
Group
. -
#scale_units=(units_format)
rw
The #scale_units= method sets the the units format for the scale of the
Group
.
Entity
- Inherited
#locked= | The |
#locked? | The |
#on_shared_layer? | |
#style | |
#style= | |
#untransformed_bounds | The |
#untransformed_bounds= | The |
Instance Method Summary
- #entities ⇒ Layout::Entities
-
#remove_scale_factor(resize_behavior)
The #remove_scale_factor method removes the scale factor from the
Group
. -
#scale_factor ⇒ Float?
The #scale_factor method returns the the scale factor associated with the
Group
. -
#set_scale_factor(scale_factor, units_format, resize_behavior)
The #set_scale_factor method sets the the scale factor for the
Group
. - #ungroup ⇒ Boolean
Entity
- Inherited
#== | The |
#bounds | The |
#document | |
#drawing_bounds | The |
#group | The |
#layer_instance | The |
#move_to_group | The |
#move_to_layer | |
#page | |
#transform! | The |
#transformation | The |
Constructor Details
.new(entities) ⇒ Group
The #initialize
method creates a new Group
.
Instance Attribute Details
#scale_precision ⇒ Float
(rw)
The #scale_precision
method returns the precision used for the scale of the Group
.
#scale_precision=(precision) (rw)
LayOut only allows for a finite set of precision values for each units setting, so it will set the precision to the closest valid setting for the specified units. See the “Units” section of LayOut’s “Document Setup” dialog for a reference of the available precisions for each units setting.
The #scale_precision=
method sets the precision for the scale of the Group
.
#scale_units ⇒ Integer
(rw)
The #scale_units
method returns the units format used in the scale for the Group
.
The units format can be any of the following values:
- Layout::Document::FRACTIONAL_INCHES
- Layout::Document::DECIMAL_INCHES
- Layout::Document::DECIMAL_FEET
- Layout::Document::DECIMAL_MILLIMETERS
- Layout::Document::DECIMAL_CENTIMETERS
- Layout::Document::DECIMAL_METERS
- Layout::Document::DECIMAL_POINTS
- Layout::Document::DECIMAL_INCHES
#scale_units=(units_format) (rw)
The #scale_units=
method sets the the units format for the scale of the Group
.
The units format can be any of the following values:
- Layout::Document::FRACTIONAL_INCHES
- Layout::Document::DECIMAL_INCHES
- Layout::Document::DECIMAL_FEET
- Layout::Document::DECIMAL_MILLIMETERS
- Layout::Document::DECIMAL_CENTIMETERS
- Layout::Document::DECIMAL_METERS
- Layout::Document::DECIMAL_POINTS
- Layout::Document::DECIMAL_INCHES
Instance Method Details
#entities ⇒ Layout::Entities
The #entities
method returns the Entities
that belong to the Group
.
#remove_scale_factor(resize_behavior)
The #remove_scale_factor
method removes the scale factor from the Group
.
The resize behavior can be one of the following values:
Layout::Group::RESIZE_BEHAVIOR_NONE
Layout::Group::RESIZE_BEHAVIOR_BOUNDS
Layout::Group::RESIZE_BEHAVIOR_BOUNDS_AND_FONTS
#scale_factor ⇒ Float
?
The #scale_factor
method returns the the scale factor associated with the Group
.
#set_scale_factor(scale_factor, units_format, resize_behavior)
The #set_scale_factor
method sets the the scale factor for the Group
.
The units format can be any of the following values:
- Layout::Document::FRACTIONAL_INCHES
- Layout::Document::DECIMAL_INCHES
- Layout::Document::DECIMAL_FEET
- Layout::Document::DECIMAL_MILLIMETERS
- Layout::Document::DECIMAL_CENTIMETERS
- Layout::Document::DECIMAL_METERS
- Layout::Document::DECIMAL_POINTS
- Layout::Document::DECIMAL_INCHES
-
The resize behavior can be one of the following values:
Layout::Group::RESIZE_BEHAVIOR_NONE
Layout::Group::RESIZE_BEHAVIOR_BOUNDS
Layout::Group::RESIZE_BEHAVIOR_BOUNDS_AND_FONTS
#ungroup ⇒ Boolean
The #ungroup
method removes all Entity
s from the Group
and deletes the Group
.