Class: Layout::Style
- Inherits:
-
Object
- Object
- Layout::Style
- Defined in:
- SketchUp/Layout/Style.rb
Overview
References a collection of style attributes that determine the visual appearance of Entitys. Style attributes are those attributes which the user can manipulate in LayOut’s inspector windows. For example, shape style attributes that define stroke and fill, or text style attributes that define the font for FormattedText. The Document maintains a default style for various types of Entitys, and it is possible to apply the style of one entity to another. Style objects are transient and do not belong to a Document.
Constant Summary collapse
- ALIGN_CENTER =
Constants
nil- ALIGN_LEFT =
Stub value.
nil- ALIGN_RIGHT =
Stub value.
nil- ARCHITECTURAL_INCHES =
Stub value.
nil- ANCHOR_BOTTOM =
Stub value.
nil- ANCHOR_CENTER =
Stub value.
nil- ANCHOR_TOP =
Stub value.
nil- ARROW_FILLED_CIRCLE =
Stub value.
nil- ARROW_FILLED_DIAMOND =
Stub value.
nil- ARROW_FILLED_SKINNY_TRIANGLE =
Stub value.
nil- ARROW_FILLED_SQUARE =
Stub value.
nil- ARROW_FILLED_TRIANGLE =
Stub value.
nil- ARROW_NONE =
Stub value.
nil- ARROW_OPEN_ARROW_120 =
Stub value.
nil- ARROW_OPEN_ARROW_90 =
Stub value.
nil- ARROW_OPEN_CIRCLE =
Stub value.
nil- ARROW_OPEN_DIAMOND =
Stub value.
nil- ARROW_OPEN_SKINNY_TRIANGLE =
Stub value.
nil- ARROW_OPEN_SQUARE =
Stub value.
nil- ARROW_OPEN_TRIANGLE =
Stub value.
nil- ARROW_OVERRUN =
Stub value.
nil- ARROW_SLASH_LEFT =
Stub value.
nil- ARROW_SLASH_RIGHT =
Stub value.
nil- ARROW_STAR =
Stub value.
nil- ARROW_T =
Stub value.
nil- ARROW_UNDERRUN =
Stub value.
nil- CAP_STYLE_FLAT =
Stub value.
nil- CAP_STYLE_ROUND =
Stub value.
nil- CAP_STYLE_SQUARE =
Stub value.
nil- DECIMAL_CENTIMETERS =
Stub value.
nil- DECIMAL_FEET =
Stub value.
nil- DECIMAL_INCHES =
Stub value.
nil- DECIMAL_METERS =
Stub value.
nil- DECIMAL_MILLIMETERS =
Stub value.
nil- DECIMAL_POINTS =
Stub value.
nil- DEGREES =
Stub value.
nil- DIMENSION_END_EXTENSION_LINE =
Stub value.
nil- DIMENSION_LEADER_LINE =
Stub value.
nil- DIMENSION_LINE =
Stub value.
nil- DIMENSION_START_EXTENSION_LINE =
Stub value.
nil- DIMENSION_TEXT =
Stub value.
nil- DIMENSION_TEXT_ABOVE =
Stub value.
nil- DIMENSION_TEXT_BELOW =
Stub value.
nil- DIMENSION_TEXT_CENTER =
Stub value.
nil- DIMENSION_TEXT_HORIZONTAL =
Stub value.
nil- DIMENSION_TEXT_OFFSET =
Stub value.
nil- DIMENSION_TEXT_PARALLEL =
Stub value.
nil- DIMENSION_TEXT_PERPENDICULAR =
Stub value.
nil- DIMENSION_TEXT_VERTICAL =
Stub value.
nil- ENGINEERING_FEET =
Stub value.
nil- FRACTIONAL_INCHES =
Stub value.
nil- JOIN_STYLE_BEVEL =
Stub value.
nil- JOIN_STYLE_MITER =
Stub value.
nil- JOIN_STYLE_ROUND =
Stub value.
nil- LABEL_LEADER_LINE =
Stub value.
nil- LABEL_TEXT =
Stub value.
nil- NORMAL_SCRIPT =
Stub value.
nil- RADIANS =
Stub value.
nil- SUPER_SCRIPT =
Stub value.
nil- STROKE_PATTERN_CENTER =
Stub value.
nil- STROKE_PATTERN_DASH =
Stub value.
nil- STROKE_PATTERN_DASH_DASH_DOT =
Stub value.
nil- STROKE_PATTERN_DASH_DASH_DOT_DOT =
Stub value.
nil- STROKE_PATTERN_DASH_DASH_DOT_DOT_DOT =
Stub value.
nil- STROKE_PATTERN_DASH_DOT =
Stub value.
nil- STROKE_PATTERN_DASH_DOT_DOT =
Stub value.
nil- STROKE_PATTERN_DASH_DOT_DOT_DOT =
Stub value.
nil- STROKE_PATTERN_DASH_SPACE =
Stub value.
nil- STROKE_PATTERN_DOT =
Stub value.
nil- STROKE_PATTERN_PHANTOM =
Stub value.
nil- STROKE_PATTERN_SOLID =
Stub value.
nil- SUB_SCRIPT =
Stub value.
nil- UNDERLINE_DOUBLE =
Stub value.
nil- UNDERLINE_NONE =
Stub value.
nil- UNDERLINE_SINGLE =
Stub value.
nil
Class Method Summary collapse
-
.arrow_type_filled?(arrow_type) ⇒ Boolean
The Style.arrow_type_filled? method returns whether the specified arrow type is filled or not.
Instance Method Summary collapse
-
#dimension_rotation_alignment ⇒ Integer?
The #dimension_rotation_alignment method returns the rotational text alignment for LinearDimension text, or
nilif the Style does not have a value for that setting. -
#dimension_rotation_alignment=(alignment_type) ⇒ Object
The #dimension_rotation_alignment= method sets the rotational text alignment.
-
#dimension_units ⇒ Array(Integer, Float)?
The #dimension_units method returns the unit format and precision for dimensions, or
nilif the Style does not have a value for that setting. -
#dimension_vertical_alignment ⇒ Integer?
The #dimension_vertical_alignment method returns the vertical text alignment for LinearDimension text, or
nilif the Style does not have a value for that setting. -
#dimension_vertical_alignment=(alignment_type) ⇒ Object
The #dimension_vertical_alignment= method sets the vertical text alignment for LinearDimension text.
-
#end_arrow_size ⇒ Float?
The #end_arrow_size method returns the size of the end arrow, or
nilif the Style does not have a value for that setting. -
#end_arrow_size=(arrow_size) ⇒ Object
The #end_arrow_size= method sets the size of the end arrow.
-
#end_arrow_type ⇒ Integer?
The #end_arrow_type method returns the type of end arrow, or
nilif the Style does not have a value for that setting. -
#end_arrow_type=(arrow_type) ⇒ Object
The #end_arrow_type= method sets the type of end arrow.
-
#fill_color ⇒ Sketchup::Color?
The #fill_color method returns the solid file color, or
nilif the Style does not have a value for that setting. -
#fill_color=(fill_color) ⇒ Object
The #fill_color= method sets the solid fill color.
-
#font_family ⇒ String?
The #font_family method returns the text font name, or
nilif the Style does not have a value for that setting. -
#font_family=(font_family) ⇒ Object
The #font_family= method sets the text font name.
-
#font_size ⇒ Float?
The #font_size method returns the font size, or
nilif the Style does not have a value for that setting. -
#font_size=(font_size) ⇒ Object
The #font_size= method sets the font size.
-
#get_sub_style(type) ⇒ Layout::Style
The #get_sub_style method returns the Style for a sub-entity from the Style.
-
#initialize ⇒ Layout::Style
constructor
The #initialize method creates a new Style.
-
#pattern_fill_origin ⇒ Geom::Point2d?
The #pattern_fill_origin method returns the starting piont for the pattern fill, or
nilif the Style does not have a value for that setting. -
#pattern_fill_origin=(origin) ⇒ Object
The #pattern_fill_origin= method sets the starting point for the pattern fill.
-
#pattern_fill_path ⇒ String?
The #pattern_fill_path method returns the file path to the pattern fill image, or
nilif the Style does not have a value for that setting. -
#pattern_fill_path=(path) ⇒ Object
The #pattern_fill_path= method sets the path to the image to use for the pattern fill.
-
#pattern_fill_rotation ⇒ Float?
The #pattern_fill_rotation method returns the rotation of the pattern fill image in degrees, or
nilif the Style does not have a value for that setting. -
#pattern_fill_rotation=(rotation) ⇒ Object
The #pattern_fill_rotation= method sets the rotation in degrees of the pattern fill image.
-
#pattern_fill_scale ⇒ Float?
The #pattern_fill_scale method returns the pattern fill scale, or
nilif the Style does not have a value for that setting. -
#pattern_fill_scale=(scale) ⇒ Object
The #pattern_fill_scale= method sets the pattern fill scale.
-
#pattern_filled ⇒ Boolean?
The #pattern_filled method returns whether the Style has a pattern fill, or
nilif the Style does not have a value for that setting. -
#pattern_filled=(filled) ⇒ Object
The #pattern_filled= method sets whether the Style has a pattern fill.
-
#set_dimension_units(units, precision) ⇒ Object
The #set_dimension_units method sets the unit format and precision for dimensions.
-
#set_sub_style(type, sub_style) ⇒ Object
The #set_sub_style method adds a Style to apply to a Entity‘s sub-entity.
-
#solid_filled ⇒ Boolean?
The #solid_filled method returns whether the Style has a solid fill, or
nilif the Style does not have a value for that setting. -
#solid_filled=(filled) ⇒ Object
The #solid_filled= method sets whether the Style has a solid fill.
-
#start_arrow_size ⇒ Float?
The #start_arrow_size method returns the size of the start arrow, or
nilif the Style does not have a value for that setting. -
#start_arrow_size=(arrow_size) ⇒ Object
The #start_arrow_size= method sets the size of the start arrow.
-
#start_arrow_type ⇒ Integer?
The #start_arrow_type method returns the type of start arrow, or
nilif the Style does not have a value for that setting. -
#start_arrow_type=(arrow_type) ⇒ Object
The #start_arrow_type= method sets the type of start arrow.
-
#stroke_cap_style ⇒ Integer?
The #stroke_cap_style method returns the stroke cap style, or
nilif the Style does not have a value for that setting. -
#stroke_cap_style=(cap_style) ⇒ Object
The #stroke_cap_style= method sets the stroke cap style.
-
#stroke_color ⇒ Sketchup::Color?
The #stroke_color method returns the stroke color, or
nilif the Style does not have a value for that setting. -
#stroke_color=(stroke_color) ⇒ Object
The #stroke_color= method sets the stroke color.
-
#stroke_join_style ⇒ Integer?
The #stroke_join_style method returns the stroke join style, or
nilif the Style does not have a value for that setting. -
#stroke_join_style=(join_style) ⇒ Object
The #stroke_join_style= method sets the stroke join style.
-
#stroke_pattern ⇒ Integer?
The #stroke_pattern method returns the stroke pattern, or
nilif the Style does not have a value for that setting. -
#stroke_pattern=(pattern) ⇒ Object
The #stroke_pattern= method sets the stroke pattern.
-
#stroke_pattern_scale ⇒ Float?
The #stroke_pattern_scale method returns the stroke pattern scale, or
nilif the Style does not have a value for that setting. -
#stroke_pattern_scale=(scale) ⇒ Object
The #stroke_pattern_scale= method sets the stroke pattern scale.
-
#stroke_width ⇒ Float?
The #stroke_width method returns the stroke width, or
nilif the Style does not have a value for that setting. -
#stroke_width=(stroke_width) ⇒ Object
The #stroke_width= method sets the stroke width.
- #stroked ⇒ Boolean?
- #stroked=(stroked) ⇒ Object
-
#suppress_dimension_units ⇒ Boolean?
The #suppress_dimension_units method returns whether the units for dimensions are suppressed, or
nilif the Style does not have a value for that setting. -
#suppress_dimension_units=(suppress) ⇒ Object
The #suppress_dimension_units= method sets whether the units for dimensions are suppressed.
-
#text_alignment ⇒ Integer?
The #text_alignment method returns the text alignment, or
nilif the Style does not have a value for that setting. -
#text_alignment=(alignment_type) ⇒ Object
The #text_alignment= method sets the text alignment.
-
#text_anchor ⇒ Integer?
The #text_anchor method returns the text anchor type, or
nilif the Style does not have a value for that setting. -
#text_anchor=(anchor_type) ⇒ Object
The #text_anchor= method sets the text anchor type.
-
#text_bold ⇒ Boolean?
The #text_bold method returns whether text is bold, or
nilif the Style does not have a value for that setting. -
#text_bold=(bold) ⇒ Object
The #text_bold= method sets whether text is bold.
-
#text_color ⇒ Sketchup::Color?
The #text_color method returns the text color, or
nilif the Style does not have a value for that setting. -
#text_color=(color) ⇒ Object
The #text_color= method sets the text color.
-
#text_elevation ⇒ Integer?
The #text_elevation method returns the text elevation, or
nilif the Style does not have a value for that setting. -
#text_elevation=(elevation_type) ⇒ Object
The #text_elevation= method sets the text elevation.
-
#text_italic ⇒ Boolean?
The #text_italic method returns whether text is italic, or
nilif the Style does not have a value for that setting. -
#text_italic=(italic) ⇒ Object
The #text_italic= method sets whether text is italic.
-
#text_underline ⇒ Integer?
The #text_underline method returns the text underline type, or
nilif the Style does not have a value for that setting. -
#text_underline=(underline_type) ⇒ Object
The #text_underline= method sets the text underline type.
Constructor Details
#initialize ⇒ Layout::Style
The #initialize method creates a new Layout::Style.
525 526 |
# File 'SketchUp/Layout/Style.rb', line 525 def initialize end |
Class Method Details
.arrow_type_filled?(arrow_type) ⇒ Boolean
The arrow_type_filled? method returns whether the specified arrow type is filled or not.
The arrow type can be one of the following values:
Layout::Style::ARROW_NONELayout::Style::ARROW_FILLED_TRIANGLELayout::Style::ARROW_OPEN_TRIANGLELayout::Style::ARROW_FILLED_SKINNY_TRIANGLELayout::Style::ARROW_OPEN_SKINNY_TRIANGLELayout::Style::ARROW_OPEN_ARROW_90Layout::Style::ARROW_OPEN_ARROW_120Layout::Style::ARROW_FILLED_CIRCLELayout::Style::ARROW_OPEN_CIRCLELayout::Style::ARROW_FILLED_SQUARELayout::Style::ARROW_OPEN_SQUARELayout::Style::ARROW_FILLED_DIAMONDLayout::Style::ARROW_OPEN_DIAMONDLayout::Style::ARROW_STARLayout::Style::ARROW_TLayout::Style::ARROW_SLASH_RIGHTLayout::Style::ARROW_SLASH_LEFTLayout::Style::ARROW_UNDERRUNLayout::Style::ARROW_OVERRUN
149 150 |
# File 'SketchUp/Layout/Style.rb', line 149 def self.arrow_type_filled?(arrow_type) end |
Instance Method Details
#dimension_rotation_alignment ⇒ Integer?
The #dimension_rotation_alignment method returns the rotational text alignment for LinearDimension text, or nil if the Layout::Style does not have a value for that setting.
The rotational alignment type can be one of the following values:
Layout::Style::DIMENSION_TEXT_HORIZONTALLayout::Style::DIMENSION_TEXT_VERTICALLayout::Style::DIMENSION_TEXT_PARALLELLayout::Style::DIMENSION_TEXT_PERPENDICULAR
174 175 |
# File 'SketchUp/Layout/Style.rb', line 174 def dimension_rotation_alignment end |
#dimension_rotation_alignment=(alignment_type) ⇒ Object
The #dimension_rotation_alignment= method sets the rotational text alignment.
The rotational alignment type can be one of the following values:
Layout::Style::DIMENSION_TEXT_HORIZONTALLayout::Style::DIMENSION_TEXT_VERTICALLayout::Style::DIMENSION_TEXT_PARALLELLayout::Style::DIMENSION_TEXT_PERPENDICULAR
200 201 |
# File 'SketchUp/Layout/Style.rb', line 200 def dimension_rotation_alignment=(alignment_type) end |
#dimension_units ⇒ Array(Integer, Float)?
The #dimension_units method returns the unit format and precision for dimensions, or nil if the Layout::Style does not have a value for that setting. Units may be for either LinearDimensions or AngularDimensions, but not both.
The units can be one of the following values:
Layout::Style::FRACTIONAL_INCHESLayout::Style::ARCHITECTURAL_INCHESLayout::Style::ENGINEERING_FEETLayout::Style::DECIMAL_INCHESLayout::Style::DECIMAL_FEETLayout::Style::DECIMAL_MILLIMETERSLayout::Style::DECIMAL_CENTIMETERSLayout::Style::DECIMAL_METERSLayout::Style::DECIMAL_POINTSLayout::Style::DEGREESLayout::Style::RADIANS
231 232 |
# File 'SketchUp/Layout/Style.rb', line 231 def dimension_units end |
#dimension_vertical_alignment ⇒ Integer?
The #dimension_vertical_alignment method returns the vertical text alignment for LinearDimension text, or nil if the Layout::Style does not have a value for that setting.
The vertical alignment type can be one of the following values:
Layout::Style::DIMENSION_TEXT_ABOVELayout::Style::DIMENSION_TEXT_CENTERLayout::Style::DIMENSION_TEXT_BELOWLayout::Style::DIMENSION_TEXT_OFFSET
254 255 |
# File 'SketchUp/Layout/Style.rb', line 254 def dimension_vertical_alignment end |
#dimension_vertical_alignment=(alignment_type) ⇒ Object
The #dimension_vertical_alignment= method sets the vertical text alignment for LinearDimension text.
The vertical alignment type can be one of the following values:
Layout::Style::DIMENSION_TEXT_ABOVELayout::Style::DIMENSION_TEXT_CENTERLayout::Style::DIMENSION_TEXT_BELOWLayout::Style::DIMENSION_TEXT_OFFSET
280 281 |
# File 'SketchUp/Layout/Style.rb', line 280 def dimension_vertical_alignment=(alignment_type) end |
#end_arrow_size ⇒ Float?
The #end_arrow_size method returns the size of the end arrow, or nil if the Layout::Style does not have a value for that setting.
296 297 |
# File 'SketchUp/Layout/Style.rb', line 296 def end_arrow_size end |
#end_arrow_size=(arrow_size) ⇒ Object
The #end_arrow_size= method sets the size of the end arrow. The minimum size is 0.25.
316 317 |
# File 'SketchUp/Layout/Style.rb', line 316 def end_arrow_size=(arrow_size) end |
#end_arrow_type ⇒ Integer?
The #end_arrow_type method returns the type of end arrow, or nil if the Layout::Style does not have a value for that setting.
The arrow type can be one of the following values:
Layout::Style::ARROW_NONELayout::Style::ARROW_FILLED_TRIANGLELayout::Style::ARROW_OPEN_TRIANGLELayout::Style::ARROW_FILLED_SKINNY_TRIANGLELayout::Style::ARROW_OPEN_SKINNY_TRIANGLELayout::Style::ARROW_OPEN_ARROW_90Layout::Style::ARROW_OPEN_ARROW_120Layout::Style::ARROW_FILLED_CIRCLELayout::Style::ARROW_OPEN_CIRCLELayout::Style::ARROW_FILLED_SQUARELayout::Style::ARROW_OPEN_SQUARELayout::Style::ARROW_FILLED_DIAMONDLayout::Style::ARROW_OPEN_DIAMONDLayout::Style::ARROW_STARLayout::Style::ARROW_TLayout::Style::ARROW_SLASH_RIGHTLayout::Style::ARROW_SLASH_LEFTLayout::Style::ARROW_UNDERRUNLayout::Style::ARROW_OVERRUN
353 354 |
# File 'SketchUp/Layout/Style.rb', line 353 def end_arrow_type end |
#end_arrow_type=(arrow_type) ⇒ Object
The #end_arrow_type= method sets the type of end arrow.
The arrow type can be one of the following values:
Layout::Style::ARROW_NONELayout::Style::ARROW_FILLED_TRIANGLELayout::Style::ARROW_OPEN_TRIANGLELayout::Style::ARROW_FILLED_SKINNY_TRIANGLELayout::Style::ARROW_OPEN_SKINNY_TRIANGLELayout::Style::ARROW_OPEN_ARROW_90Layout::Style::ARROW_OPEN_ARROW_120Layout::Style::ARROW_FILLED_CIRCLELayout::Style::ARROW_OPEN_CIRCLELayout::Style::ARROW_FILLED_SQUARELayout::Style::ARROW_OPEN_SQUARELayout::Style::ARROW_FILLED_DIAMONDLayout::Style::ARROW_OPEN_DIAMONDLayout::Style::ARROW_STARLayout::Style::ARROW_TLayout::Style::ARROW_SLASH_RIGHTLayout::Style::ARROW_SLASH_LEFTLayout::Style::ARROW_UNDERRUNLayout::Style::ARROW_OVERRUN
393 394 |
# File 'SketchUp/Layout/Style.rb', line 393 def end_arrow_type=(arrow_type) end |
#fill_color ⇒ Sketchup::Color?
The #fill_color method returns the solid file color, or nil if the Layout::Style does not have a value for that setting.
409 410 |
# File 'SketchUp/Layout/Style.rb', line 409 def fill_color end |
#fill_color=(fill_color) ⇒ Object
The #fill_color= method sets the solid fill color.
427 428 |
# File 'SketchUp/Layout/Style.rb', line 427 def fill_color=(fill_color) end |
#font_family ⇒ String?
The #font_family method returns the text font name, or nil if the Layout::Style does not have a value for that setting.
443 444 |
# File 'SketchUp/Layout/Style.rb', line 443 def font_family end |
#font_family=(font_family) ⇒ Object
The #font_family= method sets the text font name.
460 461 |
# File 'SketchUp/Layout/Style.rb', line 460 def font_family=(font_family) end |
#font_size ⇒ Float?
The #font_size method returns the font size, or nil if the Layout::Style does not have a value for that setting.
476 477 |
# File 'SketchUp/Layout/Style.rb', line 476 def font_size end |
#font_size=(font_size) ⇒ Object
The #font_size= method sets the font size.
493 494 |
# File 'SketchUp/Layout/Style.rb', line 493 def font_size=(font_size) end |
#get_sub_style(type) ⇒ Layout::Style
The #get_sub_style method returns the Layout::Style for a sub-entity from the Layout::Style. This would be used to get the current style of a LinearDimension‘s text, for example.
514 515 |
# File 'SketchUp/Layout/Style.rb', line 514 def get_sub_style(type) end |
#pattern_fill_origin ⇒ Geom::Point2d?
The #pattern_fill_origin method returns the starting piont for the pattern fill, or nil if the Layout::Style does not have a value for that setting.
541 542 |
# File 'SketchUp/Layout/Style.rb', line 541 def pattern_fill_origin end |
#pattern_fill_origin=(origin) ⇒ Object
The #pattern_fill_origin= method sets the starting point for the pattern fill.
561 562 |
# File 'SketchUp/Layout/Style.rb', line 561 def pattern_fill_origin=(origin) end |
#pattern_fill_path ⇒ String?
The #pattern_fill_path method returns the file path to the pattern fill image, or nil if the Layout::Style does not have a value for that setting.
577 578 |
# File 'SketchUp/Layout/Style.rb', line 577 def pattern_fill_path end |
#pattern_fill_path=(path) ⇒ Object
The #pattern_fill_path= method sets the path to the image to use for the pattern fill.
598 599 |
# File 'SketchUp/Layout/Style.rb', line 598 def pattern_fill_path=(path) end |
#pattern_fill_rotation ⇒ Float?
The #pattern_fill_rotation method returns the rotation of the pattern fill image in degrees, or nil if the Layout::Style does not have a value for that setting.
615 616 |
# File 'SketchUp/Layout/Style.rb', line 615 def pattern_fill_rotation end |
#pattern_fill_rotation=(rotation) ⇒ Object
The #pattern_fill_rotation= method sets the rotation in degrees of the pattern fill image.
635 636 |
# File 'SketchUp/Layout/Style.rb', line 635 def pattern_fill_rotation=(rotation) end |
#pattern_fill_scale ⇒ Float?
The #pattern_fill_scale method returns the pattern fill scale, or nil if the Layout::Style does not have a value for that setting.
651 652 |
# File 'SketchUp/Layout/Style.rb', line 651 def pattern_fill_scale end |
#pattern_fill_scale=(scale) ⇒ Object
The #pattern_fill_scale= method sets the pattern fill scale.
672 673 |
# File 'SketchUp/Layout/Style.rb', line 672 def pattern_fill_scale=(scale) end |
#pattern_filled ⇒ Boolean?
The #pattern_filled method returns whether the Layout::Style has a pattern fill, or nil if the Layout::Style does not have a value for that setting.
689 690 |
# File 'SketchUp/Layout/Style.rb', line 689 def pattern_filled end |
#pattern_filled=(filled) ⇒ Object
The #pattern_filled= method sets whether the Layout::Style has a pattern fill.
708 709 |
# File 'SketchUp/Layout/Style.rb', line 708 def pattern_filled=(filled) end |
#set_dimension_units(units, precision) ⇒ Object
The #set_dimension_units method sets the unit format and precision for dimensions. Units may be for either LinearDimensions or AngularDimensions, but not both.
The units can be one of the following values:
Layout::Style::FRACTIONAL_INCHESLayout::Style::ARCHITECTURAL_INCHESLayout::Style::ENGINEERING_FEETLayout::Style::DECIMAL_INCHESLayout::Style::DECIMAL_FEETLayout::Style::DECIMAL_MILLIMETERSLayout::Style::DECIMAL_CENTIMETERSLayout::Style::DECIMAL_METERSLayout::Style::DECIMAL_POINTSLayout::Style::DEGREESLayout::Style::RADIANS
744 745 |
# File 'SketchUp/Layout/Style.rb', line 744 def set_dimension_units(units, precision) end |
#set_sub_style(type, sub_style) ⇒ Object
The #set_sub_style method adds a Layout::Style to apply to a Entity‘s sub-entity. This would be used to set the arrow type for extension lines of a LinearDimension, for example.
769 770 |
# File 'SketchUp/Layout/Style.rb', line 769 def set_sub_style(type, sub_style) end |
#solid_filled ⇒ Boolean?
The #solid_filled method returns whether the Layout::Style has a solid fill, or nil if the Layout::Style does not have a value for that setting.
785 786 |
# File 'SketchUp/Layout/Style.rb', line 785 def solid_filled end |
#solid_filled=(filled) ⇒ Object
The #solid_filled= method sets whether the Layout::Style has a solid fill.
803 804 |
# File 'SketchUp/Layout/Style.rb', line 803 def solid_filled=(filled) end |
#start_arrow_size ⇒ Float?
The #start_arrow_size method returns the size of the start arrow, or nil if the Layout::Style does not have a value for that setting.
819 820 |
# File 'SketchUp/Layout/Style.rb', line 819 def start_arrow_size end |
#start_arrow_size=(arrow_size) ⇒ Object
The #start_arrow_size= method sets the size of the start arrow. The minimum size is 0.25.
839 840 |
# File 'SketchUp/Layout/Style.rb', line 839 def start_arrow_size=(arrow_size) end |
#start_arrow_type ⇒ Integer?
The #start_arrow_type method returns the type of start arrow, or nil if the Layout::Style does not have a value for that setting.
The arrow type can be one of the following values:
Layout::Style::ARROW_NONELayout::Style::ARROW_FILLED_TRIANGLELayout::Style::ARROW_OPEN_TRIANGLELayout::Style::ARROW_FILLED_SKINNY_TRIANGLELayout::Style::ARROW_OPEN_SKINNY_TRIANGLELayout::Style::ARROW_OPEN_ARROW_90Layout::Style::ARROW_OPEN_ARROW_120Layout::Style::ARROW_FILLED_CIRCLELayout::Style::ARROW_OPEN_CIRCLELayout::Style::ARROW_FILLED_SQUARELayout::Style::ARROW_OPEN_SQUARELayout::Style::ARROW_FILLED_DIAMONDLayout::Style::ARROW_OPEN_DIAMONDLayout::Style::ARROW_STARLayout::Style::ARROW_TLayout::Style::ARROW_SLASH_RIGHTLayout::Style::ARROW_SLASH_LEFTLayout::Style::ARROW_UNDERRUNLayout::Style::ARROW_OVERRUN
876 877 |
# File 'SketchUp/Layout/Style.rb', line 876 def start_arrow_type end |
#start_arrow_type=(arrow_type) ⇒ Object
The #start_arrow_type= method sets the type of start arrow.
The arrow type can be one of the following values:
Layout::Style::ARROW_NONELayout::Style::ARROW_FILLED_TRIANGLELayout::Style::ARROW_OPEN_TRIANGLELayout::Style::ARROW_FILLED_SKINNY_TRIANGLELayout::Style::ARROW_OPEN_SKINNY_TRIANGLELayout::Style::ARROW_OPEN_ARROW_90Layout::Style::ARROW_OPEN_ARROW_120Layout::Style::ARROW_FILLED_CIRCLELayout::Style::ARROW_OPEN_CIRCLELayout::Style::ARROW_FILLED_SQUARELayout::Style::ARROW_OPEN_SQUARELayout::Style::ARROW_FILLED_DIAMONDLayout::Style::ARROW_OPEN_DIAMONDLayout::Style::ARROW_STARLayout::Style::ARROW_TLayout::Style::ARROW_SLASH_RIGHTLayout::Style::ARROW_SLASH_LEFTLayout::Style::ARROW_UNDERRUNLayout::Style::ARROW_OVERRUN
916 917 |
# File 'SketchUp/Layout/Style.rb', line 916 def start_arrow_type=(arrow_type) end |
#stroke_cap_style ⇒ Integer?
The #stroke_cap_style method returns the stroke cap style, or nil if the Layout::Style does not have a value for that setting.
The cap style can be one of the following:
Layout::Style::CAP_STYLE_FLATLayout::Style::CAP_STYLE_ROUNDLayout::Style::CAP_STYLE_SQUARE
937 938 |
# File 'SketchUp/Layout/Style.rb', line 937 def stroke_cap_style end |
#stroke_cap_style=(cap_style) ⇒ Object
The #stroke_cap_style= method sets the stroke cap style.
The cap style can be one of the following:
Layout::Style::CAP_STYLE_FLATLayout::Style::CAP_STYLE_ROUNDLayout::Style::CAP_STYLE_SQUARE
961 962 |
# File 'SketchUp/Layout/Style.rb', line 961 def stroke_cap_style=(cap_style) end |
#stroke_color ⇒ Sketchup::Color?
The #stroke_color method returns the stroke color, or nil if the Layout::Style does not have a value for that setting.
977 978 |
# File 'SketchUp/Layout/Style.rb', line 977 def stroke_color end |
#stroke_color=(stroke_color) ⇒ Object
The #stroke_color= method sets the stroke color.
994 995 |
# File 'SketchUp/Layout/Style.rb', line 994 def stroke_color=(stroke_color) end |
#stroke_join_style ⇒ Integer?
The #stroke_join_style method returns the stroke join style, or nil if the Layout::Style does not have a value for that setting.
The join style can be one of the following:
Layout::Style::JOIN_STYLE_MITERLayout::Style::JOIN_STYLE_ROUNDLayout::Style::JOIN_STYLE_BEVEL
1015 1016 |
# File 'SketchUp/Layout/Style.rb', line 1015 def stroke_join_style end |
#stroke_join_style=(join_style) ⇒ Object
The #stroke_join_style= method sets the stroke join style.
The join style can be one of the following:
Layout::Style::JOIN_STYLE_MITERLayout::Style::JOIN_STYLE_ROUNDLayout::Style::JOIN_STYLE_BEVEL
1039 1040 |
# File 'SketchUp/Layout/Style.rb', line 1039 def stroke_join_style=(join_style) end |
#stroke_pattern ⇒ Integer?
The #stroke_pattern method returns the stroke pattern, or nil if the Layout::Style does not have a value for that setting.
The stroke pattern can be one of the following:
Layout::Style::STROKE_PATTERN_SOLIDLayout::Style::STROKE_PATTERN_DASHLayout::Style::STROKE_PATTERN_DOTLayout::Style::STROKE_PATTERN_DASH_DOTLayout::Style::STROKE_PATTERN_DASH_DOT_DOTLayout::Style::STROKE_PATTERN_DASH_SPACELayout::Style::STROKE_PATTERN_DASH_DOT_DOT_DOTLayout::Style::STROKE_PATTERN_DASH_DASH_DOTLayout::Style::STROKE_PATTERN_DASH_DASH_DOT_DOTLayout::Style::STROKE_PATTERN_DASH_DASH_DOT_DOT_DOTLayout::Style::STROKE_PATTERN_CENTERLayout::Style::STROKE_PATTERN_PHANTOM
1069 1070 |
# File 'SketchUp/Layout/Style.rb', line 1069 def stroke_pattern end |
#stroke_pattern=(pattern) ⇒ Object
The #stroke_pattern= method sets the stroke pattern.
The stroke pattern can be one of the following:
Layout::Style::STROKE_PATTERN_SOLIDLayout::Style::STROKE_PATTERN_DASHLayout::Style::STROKE_PATTERN_DOTLayout::Style::STROKE_PATTERN_DASH_DOTLayout::Style::STROKE_PATTERN_DASH_DOT_DOTLayout::Style::STROKE_PATTERN_DASH_SPACELayout::Style::STROKE_PATTERN_DASH_DOT_DOT_DOTLayout::Style::STROKE_PATTERN_DASH_DASH_DOTLayout::Style::STROKE_PATTERN_DASH_DASH_DOT_DOTLayout::Style::STROKE_PATTERN_DASH_DASH_DOT_DOT_DOTLayout::Style::STROKE_PATTERN_CENTERLayout::Style::STROKE_PATTERN_PHANTOM
1102 1103 |
# File 'SketchUp/Layout/Style.rb', line 1102 def stroke_pattern=(pattern) end |
#stroke_pattern_scale ⇒ Float?
The #stroke_pattern_scale method returns the stroke pattern scale, or nil if the Layout::Style does not have a value for that setting.
1118 1119 |
# File 'SketchUp/Layout/Style.rb', line 1118 def stroke_pattern_scale end |
#stroke_pattern_scale=(scale) ⇒ Object
The #stroke_pattern_scale= method sets the stroke pattern scale.
1137 1138 |
# File 'SketchUp/Layout/Style.rb', line 1137 def stroke_pattern_scale=(scale) end |
#stroke_width ⇒ Float?
The #stroke_width method returns the stroke width, or nil if the Layout::Style does not have a value for that setting.
1153 1154 |
# File 'SketchUp/Layout/Style.rb', line 1153 def stroke_width end |
#stroke_width=(stroke_width) ⇒ Object
The #stroke_width= method sets the stroke width.
1172 1173 |
# File 'SketchUp/Layout/Style.rb', line 1172 def stroke_width=(stroke_width) end |
#stroked ⇒ Boolean?
The #stroked method returns whether the Layout::Style has a stroke, or nil if the Layout::Style does not have a value for that setting.
1188 1189 |
# File 'SketchUp/Layout/Style.rb', line 1188 def stroked end |
#stroked=(stroked) ⇒ Object
The #stroked= method sets whether the Layout::Style has a stroke.
1205 1206 |
# File 'SketchUp/Layout/Style.rb', line 1205 def stroked=(stroked) end |
#suppress_dimension_units ⇒ Boolean?
The #suppress_dimension_units method returns whether the units for dimensions are suppressed, or nil if the Layout::Style does not have a value for that setting.
1222 1223 |
# File 'SketchUp/Layout/Style.rb', line 1222 def suppress_dimension_units end |
#suppress_dimension_units=(suppress) ⇒ Object
The #suppress_dimension_units= method sets whether the units for dimensions are suppressed.
1238 1239 |
# File 'SketchUp/Layout/Style.rb', line 1238 def suppress_dimension_units=(suppress) end |
#text_alignment ⇒ Integer?
The #text_alignment method returns the text alignment, or nil if the Layout::Style does not have a value for that setting.
The alignment type can be one of the following values:
Layout::Style::ALIGN_LEFTLayout::Style::ALIGN_RIGHTLayout::Style::ALIGN_CENTER
1259 1260 |
# File 'SketchUp/Layout/Style.rb', line 1259 def text_alignment end |
#text_alignment=(alignment_type) ⇒ Object
The #text_alignment= method sets the text alignment.
The alignment type can be one of the following values:
Layout::Style::ALIGN_LEFTLayout::Style::ALIGN_RIGHTLayout::Style::ALIGN_CENTER
1283 1284 |
# File 'SketchUp/Layout/Style.rb', line 1283 def text_alignment=(alignment_type) end |
#text_anchor ⇒ Integer?
The #text_anchor method returns the text anchor type, or nil if the Layout::Style does not have a value for that setting.
The anchor type can be one of the following values:
Layout::Style::ANCHOR_TOPLayout::Style::ANCHOR_CENTERLayout::Style::ANCHOR_BOTTOM
1304 1305 |
# File 'SketchUp/Layout/Style.rb', line 1304 def text_anchor end |
#text_anchor=(anchor_type) ⇒ Object
The #text_anchor= method sets the text anchor type.
The anchor type can be one of the following values:
Layout::Style::ANCHOR_TOPLayout::Style::ANCHOR_CENTERLayout::Style::ANCHOR_BOTTOM
1328 1329 |
# File 'SketchUp/Layout/Style.rb', line 1328 def text_anchor=(anchor_type) end |
#text_bold ⇒ Boolean?
The #text_bold method returns whether text is bold, or nil if the Layout::Style does not have a value for that setting.
1344 1345 |
# File 'SketchUp/Layout/Style.rb', line 1344 def text_bold end |
#text_bold=(bold) ⇒ Object
The #text_bold= method sets whether text is bold.
1361 1362 |
# File 'SketchUp/Layout/Style.rb', line 1361 def text_bold=(bold) end |
#text_color ⇒ Sketchup::Color?
The #text_color method returns the text color, or nil if the Layout::Style does not have a value for that setting.
1377 1378 |
# File 'SketchUp/Layout/Style.rb', line 1377 def text_color end |
#text_color=(color) ⇒ Object
The #text_color= method sets the text color.
1394 1395 |
# File 'SketchUp/Layout/Style.rb', line 1394 def text_color=(color) end |
#text_elevation ⇒ Integer?
The #text_elevation method returns the text elevation, or nil if the Layout::Style does not have a value for that setting.
The elevation type can be one of the following values:
Layout::Style::NORMAL_SCRIPTLayout::Style::SUPER_SCRIPTLayout::Style::SUB_SCRIPT
1415 1416 |
# File 'SketchUp/Layout/Style.rb', line 1415 def text_elevation end |
#text_elevation=(elevation_type) ⇒ Object
The #text_elevation= method sets the text elevation.
The elevation type can be one of the following values:
Layout::Style::NORMAL_SCRIPTLayout::Style::SUPER_SCRIPTLayout::Style::SUB_SCRIPT
1439 1440 |
# File 'SketchUp/Layout/Style.rb', line 1439 def text_elevation=(elevation_type) end |
#text_italic ⇒ Boolean?
The #text_italic method returns whether text is italic, or nil if the Layout::Style does not have a value for that setting.
1455 1456 |
# File 'SketchUp/Layout/Style.rb', line 1455 def text_italic end |
#text_italic=(italic) ⇒ Object
The #text_italic= method sets whether text is italic.
1472 1473 |
# File 'SketchUp/Layout/Style.rb', line 1472 def text_italic=(italic) end |
#text_underline ⇒ Integer?
The #text_underline method returns the text underline type, or nil if the Layout::Style does not have a value for that setting.
The underline type can be one of the following values:
Layout::Style::UNDERLINE_NONELayout::Style::UNDERLINE_SINGLELayout::Style::UNDERLINE_DOUBLE
1493 1494 |
# File 'SketchUp/Layout/Style.rb', line 1493 def text_underline end |
#text_underline=(underline_type) ⇒ Object
The #text_underline= method sets the text underline type.
The underline type can be one of the following values:
Layout::Style::UNDERLINE_NONELayout::Style::UNDERLINE_SINGLELayout::Style::UNDERLINE_DOUBLE
1517 1518 |
# File 'SketchUp/Layout/Style.rb', line 1517 def text_underline=(underline_type) end |