Class: Layout::Style
| Relationships | |
| Inherits: | Object | 
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
- 
    ALIGN_CENTER =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 18Constants nil
- 
    ALIGN_LEFT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 19Stub value. nil
- 
    ALIGN_RIGHT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 20Stub value. nil
- 
    ANCHOR_BOTTOM =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 22Stub value. nil
- 
    ANCHOR_CENTER =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 23Stub value. nil
- 
    ANCHOR_TOP =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 24Stub value. nil
- 
    ARCHITECTURAL_INCHES =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 26Stub value. nil
- 
    ARROW_FILLED_CIRCLE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 28Stub value. nil
- 
    ARROW_FILLED_DIAMOND =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 29Stub value. nil
- 
    ARROW_FILLED_SKINNY_TRIANGLE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 30Stub value. nil
- 
    ARROW_FILLED_SQUARE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 31Stub value. nil
- 
    ARROW_FILLED_TRIANGLE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 32Stub value. nil
- 
    ARROW_NONE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 33Stub value. nil
- 
    ARROW_OPEN_ARROW_120 =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 34Stub value. nil
- 
    ARROW_OPEN_ARROW_90 =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 35Stub value. nil
- 
    ARROW_OPEN_CIRCLE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 36Stub value. nil
- 
    ARROW_OPEN_DIAMOND =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 37Stub value. nil
- 
    ARROW_OPEN_SKINNY_TRIANGLE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 38Stub value. nil
- 
    ARROW_OPEN_SQUARE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 39Stub value. nil
- 
    ARROW_OPEN_TRIANGLE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 40Stub value. nil
- 
    ARROW_OVERRUN =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 41Stub value. nil
- 
    ARROW_SLASH_LEFT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 42Stub value. nil
- 
    ARROW_SLASH_RIGHT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 43Stub value. nil
- 
    ARROW_STAR =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 44Stub value. nil
- 
    ARROW_T =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 45Stub value. nil
- 
    ARROW_UNDERRUN =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 46Stub value. nil
- 
    CAP_STYLE_FLAT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 48Stub value. nil
- 
    CAP_STYLE_ROUND =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 49Stub value. nil
- 
    CAP_STYLE_SQUARE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 50Stub value. nil
- 
    DECIMAL_CENTIMETERS =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 61Stub value. nil
- 
    DECIMAL_FEET =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 62Stub value. nil
- 
    DECIMAL_INCHES =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 63Stub value. nil
- 
    DECIMAL_METERS =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 64Stub value. nil
- 
    DECIMAL_MILLIMETERS =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 65Stub value. nil
- 
    DECIMAL_POINTS =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 66Stub value. nil
- 
    DEGREES =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 68Stub value. nil
- 
    DIMENSION_END_EXTENSION_LINE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 70Stub value. nil
- 
    DIMENSION_LEADER_LINE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 71Stub value. nil
- 
    DIMENSION_LINE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 72Stub value. nil
- 
    DIMENSION_START_EXTENSION_LINE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 73Stub value. nil
- 
    DIMENSION_TEXT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 74Stub value. nil
- 
    DIMENSION_TEXT_ABOVE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 52Stub value. nil
- 
    DIMENSION_TEXT_BELOW =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 53Stub value. nil
- 
    DIMENSION_TEXT_CENTER =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 54Stub value. nil
- 
    DIMENSION_TEXT_HORIZONTAL =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 55Stub value. nil
- 
    DIMENSION_TEXT_OFFSET =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 56Stub value. nil
- 
    DIMENSION_TEXT_PARALLEL =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 57Stub value. nil
- 
    DIMENSION_TEXT_PERPENDICULAR =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 58Stub value. nil
- 
    DIMENSION_TEXT_VERTICAL =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 59Stub value. nil
- 
    ENGINEERING_FEET =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 76Stub value. nil
- 
    FRACTIONAL_INCHES =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 78Stub value. nil
- 
    JOIN_STYLE_BEVEL =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 80Stub value. nil
- 
    JOIN_STYLE_MITER =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 81Stub value. nil
- 
    JOIN_STYLE_ROUND =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 82Stub value. nil
- 
    LABEL_LEADER_LINE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 84Stub value. nil
- 
    LABEL_TEXT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 85Stub value. nil
- 
    NORMAL_SCRIPT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 87Stub value. nil
- 
    RADIANS =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 89Stub value. nil
- 
    STROKE_PATTERN_CENTER =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 91Stub value. nil
- 
    STROKE_PATTERN_DASH =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 92Stub value. nil
- 
    STROKE_PATTERN_DASH_DASH_DOT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 93Stub value. nil
- 
    STROKE_PATTERN_DASH_DASH_DOT_DOT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 94Stub value. nil
- 
    STROKE_PATTERN_DASH_DASH_DOT_DOT_DOT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 95Stub value. nil
- 
    STROKE_PATTERN_DASH_DOT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 96Stub value. nil
- 
    STROKE_PATTERN_DASH_DOT_DOT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 97Stub value. nil
- 
    STROKE_PATTERN_DASH_DOT_DOT_DOT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 98Stub value. nil
- 
    STROKE_PATTERN_DASH_SPACE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 99Stub value. nil
- 
    STROKE_PATTERN_DOT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 100Stub value. nil
- 
    STROKE_PATTERN_PHANTOM =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 101Stub value. nil
- 
    STROKE_PATTERN_SHORT_DASH =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 102Stub value. nil
- 
    STROKE_PATTERN_SOLID =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 103Stub value. nil
- 
    SUB_SCRIPT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 107Stub value. nil
- 
    SUPER_SCRIPT =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 105Stub value. nil
- 
    UNDERLINE_DOUBLE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 109Stub value. nil
- 
    UNDERLINE_NONE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 110Stub value. nil
- 
    UNDERLINE_SINGLE =
    # File 'lib/sketchup-api-stubs/stubs/Layout/Style.rb', line 111Stub value. nil
Class Method Summary
- 
    
      .arrow_type_filled?(arrow_type)  ⇒ Boolean 
    
    The .arrow_type_filled? method returns whether the specified arrow type is filled or not. 
- 
    
      .new  ⇒ Layout::Style 
    
    constructor
    The #initializemethod creates a newStyle.
Instance Attribute Summary
- 
    
      #dimension_rotation_alignment  ⇒ Integer? 
    
    rw
    The #dimension_rotation_alignment method returns the rotational text alignment for LinearDimensiontext, ornilif theStyledoes not have a value for that setting.
- 
    
      #dimension_rotation_alignment=(alignment_type)  
    
    rw
    The #dimension_rotation_alignment= method sets the rotational text alignment. 
- 
    
      #dimension_vertical_alignment  ⇒ Integer? 
    
    rw
    The #dimension_vertical_alignment method returns the vertical text alignment for LinearDimensiontext, ornilif theStyledoes not have a value for that setting.
- 
    
      #dimension_vertical_alignment=(alignment_type)  
    
    rw
    The #dimension_vertical_alignment= method sets the vertical text alignment for LinearDimensiontext.
- 
    
      #end_arrow_size  ⇒ Float? 
    
    rw
    The #end_arrow_size method returns the size of the end arrow, or nilif theStyledoes not have a value for that setting.
- 
    
      #end_arrow_size=(arrow_size)  
    
    rw
    The #end_arrow_size= method sets the size of the end arrow. 
- 
    
      #end_arrow_type  ⇒ Integer? 
    
    rw
    The #end_arrow_type method returns the type of end arrow, or nilif theStyledoes not have a value for that setting.
- 
    
      #end_arrow_type=(arrow_type)  
    
    rw
    The #end_arrow_type= method sets the type of end arrow. 
- 
    
      #fill_color  ⇒ Sketchup::Color? 
    
    rw
    The #fill_color method returns the solid file color, or nilif theStyledoes not have a value for that setting.
- 
    
      #fill_color=(fill_color)  
    
    rw
    The #fill_color= method sets the solid fill color. 
- 
    
      #font_family  ⇒ String? 
    
    rw
    The #font_family method returns the text font name, or nilif theStyledoes not have a value for that setting.
- 
    
      #font_family=(font_family)  
    
    rw
    The #font_family= method sets the text font name. 
- 
    
      #font_size  ⇒ Float? 
    
    rw
    The #font_size method returns the font size, or nilif theStyledoes not have a value for that setting.
- 
    
      #font_size=(font_size)  
    
    rw
    The #font_size= method sets the font size. 
- 
    
      #pattern_fill_origin  ⇒ Geom::Point2d? 
    
    rw
    The #pattern_fill_origin method returns the starting piont for the pattern fill, or nilif theStyledoes not have a value for that setting.
- 
    
      #pattern_fill_origin=(origin)  
    
    rw
    The #pattern_fill_origin= method sets the starting point for the pattern fill. 
- 
    
      #pattern_fill_path  ⇒ String? 
    
    rw
    The #pattern_fill_path method returns the file path to the pattern fill image, or nilif theStyledoes not have a value for that setting.
- 
    
      #pattern_fill_path=(path)  
    
    rw
    The #pattern_fill_path= method sets the path to the image to use for the pattern fill. 
- 
    
      #pattern_fill_rotation  ⇒ Float? 
    
    rw
    The #pattern_fill_rotation method returns the rotation of the pattern fill image in degrees, or nilif theStyledoes not have a value for that setting.
- 
    
      #pattern_fill_rotation=(rotation)  
    
    rw
    The #pattern_fill_rotation= method sets the rotation in degrees of the pattern fill image. 
- 
    
      #pattern_fill_scale  ⇒ Float? 
    
    rw
    The #pattern_fill_scale method returns the pattern fill scale, or nilif theStyledoes not have a value for that setting.
- 
    
      #pattern_fill_scale=(scale)  
    
    rw
    The #pattern_fill_scale= method sets the pattern fill scale. 
- 
    
      #pattern_filled  ⇒ Boolean? 
    
    rw
    The #pattern_filled method returns whether the Stylehas a pattern fill, ornilif theStyledoes not have a value for that setting.
- 
    
      #pattern_filled=(filled)  
    
    rw
    The #pattern_filled= method sets whether the Stylehas a pattern fill.
- 
    
      #solid_filled  ⇒ Boolean? 
    
    rw
    The #solid_filled method returns whether the Stylehas a solid fill, ornilif theStyledoes not have a value for that setting.
- 
    
      #solid_filled=(filled)  
    
    rw
    The #solid_filled= method sets whether the Stylehas a solid fill.
- 
    
      #start_arrow_size  ⇒ Float? 
    
    rw
    The #start_arrow_size method returns the size of the start arrow, or nilif theStyledoes not have a value for that setting.
- 
    
      #start_arrow_size=(arrow_size)  
    
    rw
    The #start_arrow_size= method sets the size of the start arrow. 
- 
    
      #start_arrow_type  ⇒ Integer? 
    
    rw
    The #start_arrow_type method returns the type of start arrow, or nilif theStyledoes not have a value for that setting.
- 
    
      #start_arrow_type=(arrow_type)  
    
    rw
    The #start_arrow_type= method sets the type of start arrow. 
- 
    
      #stroke_cap_style  ⇒ Integer? 
    
    rw
    The #stroke_cap_style method returns the stroke cap style, or nilif theStyledoes not have a value for that setting.
- 
    
      #stroke_cap_style=(cap_style)  
    
    rw
    The #stroke_cap_style= method sets the stroke cap style. 
- 
    
      #stroke_color  ⇒ Sketchup::Color? 
    
    rw
    The #stroke_color method returns the stroke color, or nilif theStyledoes not have a value for that setting.
- 
    
      #stroke_color=(stroke_color)  
    
    rw
    The #stroke_color= method sets the stroke color. 
- 
    
      #stroke_join_style  ⇒ Integer? 
    
    rw
    The #stroke_join_style method returns the stroke join style, or nilif theStyledoes not have a value for that setting.
- 
    
      #stroke_join_style=(join_style)  
    
    rw
    The #stroke_join_style= method sets the stroke join style. 
- 
    
      #stroke_pattern  ⇒ Integer? 
    
    rw
    The #stroke_pattern method returns the stroke pattern, or nilif theStyledoes not have a value for that setting.
- 
    
      #stroke_pattern=(pattern)  
    
    rw
    The #stroke_pattern= method sets the stroke pattern. 
- 
    
      #stroke_pattern_scale  ⇒ Float? 
    
    rw
    The #stroke_pattern_scale method returns the stroke pattern scale, or nilif theStyledoes not have a value for that setting.
- 
    
      #stroke_pattern_scale=(scale)  
    
    rw
    The #stroke_pattern_scale= method sets the stroke pattern scale. 
- 
    
      #stroke_width  ⇒ Float? 
    
    rw
    The #stroke_width method returns the stroke width, or nilif theStyledoes not have a value for that setting.
- 
    
      #stroke_width=(stroke_width)  
    
    rw
    The #stroke_width= method sets the stroke width. 
- 
    
      #stroked  ⇒ Boolean? 
    
    rw
    The #stroked method returns whether the Stylehas a stroke, ornilif theStyledoes not have a value for that setting.
- 
    
      #stroked=(stroked)  
    
    rw
    The #stroked= method sets whether the Stylehas a stroke.
- 
    
      #suppress_dimension_units  ⇒ Boolean? 
    
    rw
    The #suppress_dimension_units method returns whether the units for dimensions are suppressed, or nilif theStyledoes not have a value for that setting.
- 
    
      #suppress_dimension_units=(suppress)  
    
    rw
    The #suppress_dimension_units= method sets whether the units for dimensions are suppressed. 
- 
    
      #text_alignment  ⇒ Integer? 
    
    rw
    The #text_alignment method returns the text alignment, or nilif theStyledoes not have a value for that setting.
- 
    
      #text_alignment=(alignment_type)  
    
    rw
    The #text_alignment= method sets the text alignment. 
- 
    
      #text_anchor  ⇒ Integer? 
    
    rw
    The #text_anchor method returns the text anchor type, or nilif theStyledoes not have a value for that setting.
- 
    
      #text_anchor=(anchor_type)  
    
    rw
    The #text_anchor= method sets the text anchor type. 
- 
    
      #text_bold  ⇒ Boolean? 
    
    rw
    The #text_bold method returns whether text is bold, or nilif theStyledoes not have a value for that setting.
- 
    
      #text_bold=(bold)  
    
    rw
    The #text_bold= method sets whether text is bold. 
- 
    
      #text_color  ⇒ Sketchup::Color? 
    
    rw
    The #text_color method returns the text color, or nilif theStyledoes not have a value for that setting.
- 
    
      #text_color=(color)  
    
    rw
    The #text_color= method sets the text color. 
- 
    
      #text_elevation  ⇒ Integer? 
    
    rw
    The #text_elevation method returns the text elevation, or nilif theStyledoes not have a value for that setting.
- 
    
      #text_elevation=(elevation_type)  
    
    rw
    The #text_elevation= method sets the text elevation. 
- 
    
      #text_italic  ⇒ Boolean? 
    
    rw
    The #text_italic method returns whether text is italic, or nilif theStyledoes not have a value for that setting.
- 
    
      #text_italic=(italic)  
    
    rw
    The #text_italic= method sets whether text is italic. 
- 
    
      #text_underline  ⇒ Integer? 
    
    rw
    The #text_underline method returns the text underline type, or nilif theStyledoes not have a value for that setting.
- 
    
      #text_underline=(underline_type)  
    
    rw
    The #text_underline= method sets the text underline type. 
Instance Method Summary
- 
    
      #dimension_units  ⇒ Array(Integer, Float)? 
    
    The #dimension_units method returns the unit format and precision for dimensions, or nilif theStyledoes not have a value for that setting.
- 
    
      #get_sub_style(type)  ⇒ Layout::Style 
    
    The #get_sub_style method returns the Stylefor a sub-entity from theStyle.
- 
    
      #set_dimension_units(units, precision)  
    
    The #set_dimension_units method sets the unit format and precision for dimensions. 
- 
    
      #set_sub_style(type, sub_style)  
    
    The #set_sub_style method adds a Styleto apply to aEntity‘s sub-entity.
Constructor Details
    .new  ⇒ Style 
  
The #initialize method creates a new Style.
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_NONE- Layout::Style::ARROW_FILLED_TRIANGLE- Layout::Style::ARROW_OPEN_TRIANGLE- Layout::Style::ARROW_FILLED_SKINNY_TRIANGLE- Layout::Style::ARROW_OPEN_SKINNY_TRIANGLE- Layout::Style::ARROW_OPEN_ARROW_90- Layout::Style::ARROW_OPEN_ARROW_120- Layout::Style::ARROW_FILLED_CIRCLE- Layout::Style::ARROW_OPEN_CIRCLE- Layout::Style::ARROW_FILLED_SQUARE- Layout::Style::ARROW_OPEN_SQUARE- Layout::Style::ARROW_FILLED_DIAMOND- Layout::Style::ARROW_OPEN_DIAMOND- Layout::Style::ARROW_STAR- Layout::Style::ARROW_T- Layout::Style::ARROW_SLASH_RIGHT- Layout::Style::ARROW_SLASH_LEFT- Layout::Style::ARROW_UNDERRUN- Layout::Style::ARROW_OVERRUN
Instance Attribute Details
    #dimension_rotation_alignment  ⇒ Integer?  (rw)
  
The #dimension_rotation_alignment method returns the rotational text alignment for LinearDimension text, or nil if the Style does not have a value for that setting.
The rotational alignment type can be one of the following values:
- Layout::Style::DIMENSION_TEXT_HORIZONTAL- Layout::Style::DIMENSION_TEXT_VERTICAL- Layout::Style::DIMENSION_TEXT_PARALLEL- Layout::Style::DIMENSION_TEXT_PERPENDICULAR
#dimension_rotation_alignment=(alignment_type) (rw)
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_HORIZONTAL- Layout::Style::DIMENSION_TEXT_VERTICAL- Layout::Style::DIMENSION_TEXT_PARALLEL- Layout::Style::DIMENSION_TEXT_PERPENDICULAR
    #dimension_vertical_alignment  ⇒ Integer?  (rw)
  
The #dimension_vertical_alignment method returns the vertical text alignment for LinearDimension text, or nil if the Style does not have a value for that setting.
The vertical alignment type can be one of the following values:
- Layout::Style::DIMENSION_TEXT_ABOVE- Layout::Style::DIMENSION_TEXT_CENTER- Layout::Style::DIMENSION_TEXT_BELOW- Layout::Style::DIMENSION_TEXT_OFFSET
#dimension_vertical_alignment=(alignment_type) (rw)
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_ABOVE- Layout::Style::DIMENSION_TEXT_CENTER- Layout::Style::DIMENSION_TEXT_BELOW- Layout::Style::DIMENSION_TEXT_OFFSET
    #end_arrow_size  ⇒ Float?  (rw)
  
The #end_arrow_size method returns the size of the end arrow, or nil if the Style does not have a value for that setting.
#end_arrow_size=(arrow_size) (rw)
The #end_arrow_size= method sets the size of the end arrow. The minimum size is 0.25.
    #end_arrow_type  ⇒ Integer?  (rw)
  
The #end_arrow_type method returns the type of end arrow, or nil if the Style does not have a value for that setting.
The arrow type can be one of the following values:
- Layout::Style::ARROW_NONE- Layout::Style::ARROW_FILLED_TRIANGLE- Layout::Style::ARROW_OPEN_TRIANGLE- Layout::Style::ARROW_FILLED_SKINNY_TRIANGLE- Layout::Style::ARROW_OPEN_SKINNY_TRIANGLE- Layout::Style::ARROW_OPEN_ARROW_90- Layout::Style::ARROW_OPEN_ARROW_120- Layout::Style::ARROW_FILLED_CIRCLE- Layout::Style::ARROW_OPEN_CIRCLE- Layout::Style::ARROW_FILLED_SQUARE- Layout::Style::ARROW_OPEN_SQUARE- Layout::Style::ARROW_FILLED_DIAMOND- Layout::Style::ARROW_OPEN_DIAMOND- Layout::Style::ARROW_STAR- Layout::Style::ARROW_T- Layout::Style::ARROW_SLASH_RIGHT- Layout::Style::ARROW_SLASH_LEFT- Layout::Style::ARROW_UNDERRUN- Layout::Style::ARROW_OVERRUN
#end_arrow_type=(arrow_type) (rw)
The #end_arrow_type= method sets the type of end arrow.
The arrow type can be one of the following values:
- Layout::Style::ARROW_NONE- Layout::Style::ARROW_FILLED_TRIANGLE- Layout::Style::ARROW_OPEN_TRIANGLE- Layout::Style::ARROW_FILLED_SKINNY_TRIANGLE- Layout::Style::ARROW_OPEN_SKINNY_TRIANGLE- Layout::Style::ARROW_OPEN_ARROW_90- Layout::Style::ARROW_OPEN_ARROW_120- Layout::Style::ARROW_FILLED_CIRCLE- Layout::Style::ARROW_OPEN_CIRCLE- Layout::Style::ARROW_FILLED_SQUARE- Layout::Style::ARROW_OPEN_SQUARE- Layout::Style::ARROW_FILLED_DIAMOND- Layout::Style::ARROW_OPEN_DIAMOND- Layout::Style::ARROW_STAR- Layout::Style::ARROW_T- Layout::Style::ARROW_SLASH_RIGHT- Layout::Style::ARROW_SLASH_LEFT- Layout::Style::ARROW_UNDERRUN- Layout::Style::ARROW_OVERRUN
#fill_color ⇒ Sketchup::Color? (rw)
The #fill_color method returns the solid file color, or nil if the Style does not have a value for that setting.
#fill_color=(fill_color) (rw)
The #fill_color= method sets the solid fill color.
#font_family ⇒ String? (rw)
The #font_family method returns the text font name, or nil if the Style does not have a value for that setting.
#font_family=(font_family) (rw)
The #font_family= method sets the text font name.
    #font_size  ⇒ Float?  (rw)
  
The #font_size method returns the font size, or nil if the Style does not have a value for that setting.
#font_size=(font_size) (rw)
The #font_size= method sets the font size.
#pattern_fill_origin ⇒ Geom::Point2d? (rw)
The #pattern_fill_origin method returns the starting piont for the pattern fill, or nil if the Style does not have a value for that setting.
#pattern_fill_origin=(origin) (rw)
The #pattern_fill_origin= method sets the starting point for the pattern fill.
#pattern_fill_path ⇒ String? (rw)
The #pattern_fill_path method returns the file path to the pattern fill image, or nil if the Style does not have a value for that setting.
#pattern_fill_path=(path) (rw)
The #pattern_fill_path= method sets the path to the image to use for the pattern fill.
    #pattern_fill_rotation  ⇒ Float?  (rw)
  
The #pattern_fill_rotation method returns the rotation of the pattern fill image in degrees, or nil if the Style does not have a value for that setting.
#pattern_fill_rotation=(rotation) (rw)
The #pattern_fill_rotation= method sets the rotation in degrees of the pattern fill image.
    #pattern_fill_scale  ⇒ Float?  (rw)
  
The #pattern_fill_scale method returns the pattern fill scale, or nil if the Style does not have a value for that setting.
#pattern_fill_scale=(scale) (rw)
The #pattern_fill_scale= method sets the pattern fill scale.
    #pattern_filled  ⇒ Boolean?  (rw)
  
The #pattern_filled method returns whether the Style has a pattern fill, or nil if the Style does not have a value for that setting.
#pattern_filled=(filled) (rw)
The #pattern_filled= method sets whether the Style has a pattern fill.
    #solid_filled  ⇒ Boolean?  (rw)
  
The #solid_filled method returns whether the Style has a solid fill, or nil if the Style does not have a value for that setting.
#solid_filled=(filled) (rw)
The #solid_filled= method sets whether the Style has a solid fill.
    #start_arrow_size  ⇒ Float?  (rw)
  
The #start_arrow_size method returns the size of the start arrow, or nil if the Style does not have a value for that setting.
#start_arrow_size=(arrow_size) (rw)
The #start_arrow_size= method sets the size of the start arrow. The minimum size is 0.25.
    #start_arrow_type  ⇒ Integer?  (rw)
  
The #start_arrow_type method returns the type of start arrow, or nil if the Style does not have a value for that setting.
The arrow type can be one of the following values:
- Layout::Style::ARROW_NONE- Layout::Style::ARROW_FILLED_TRIANGLE- Layout::Style::ARROW_OPEN_TRIANGLE- Layout::Style::ARROW_FILLED_SKINNY_TRIANGLE- Layout::Style::ARROW_OPEN_SKINNY_TRIANGLE- Layout::Style::ARROW_OPEN_ARROW_90- Layout::Style::ARROW_OPEN_ARROW_120- Layout::Style::ARROW_FILLED_CIRCLE- Layout::Style::ARROW_OPEN_CIRCLE- Layout::Style::ARROW_FILLED_SQUARE- Layout::Style::ARROW_OPEN_SQUARE- Layout::Style::ARROW_FILLED_DIAMOND- Layout::Style::ARROW_OPEN_DIAMOND- Layout::Style::ARROW_STAR- Layout::Style::ARROW_T- Layout::Style::ARROW_SLASH_RIGHT- Layout::Style::ARROW_SLASH_LEFT- Layout::Style::ARROW_UNDERRUN- Layout::Style::ARROW_OVERRUN
#start_arrow_type=(arrow_type) (rw)
The #start_arrow_type= method sets the type of start arrow.
The arrow type can be one of the following values:
- Layout::Style::ARROW_NONE- Layout::Style::ARROW_FILLED_TRIANGLE- Layout::Style::ARROW_OPEN_TRIANGLE- Layout::Style::ARROW_FILLED_SKINNY_TRIANGLE- Layout::Style::ARROW_OPEN_SKINNY_TRIANGLE- Layout::Style::ARROW_OPEN_ARROW_90- Layout::Style::ARROW_OPEN_ARROW_120- Layout::Style::ARROW_FILLED_CIRCLE- Layout::Style::ARROW_OPEN_CIRCLE- Layout::Style::ARROW_FILLED_SQUARE- Layout::Style::ARROW_OPEN_SQUARE- Layout::Style::ARROW_FILLED_DIAMOND- Layout::Style::ARROW_OPEN_DIAMOND- Layout::Style::ARROW_STAR- Layout::Style::ARROW_T- Layout::Style::ARROW_SLASH_RIGHT- Layout::Style::ARROW_SLASH_LEFT- Layout::Style::ARROW_UNDERRUN- Layout::Style::ARROW_OVERRUN
    #stroke_cap_style  ⇒ Integer?  (rw)
  
The #stroke_cap_style method returns the stroke cap style, or nil if the Style does not have a value for that setting.
The cap style can be one of the following:
- Layout::Style::CAP_STYLE_FLAT- Layout::Style::CAP_STYLE_ROUND- Layout::Style::CAP_STYLE_SQUARE
#stroke_cap_style=(cap_style) (rw)
The #stroke_cap_style= method sets the stroke cap style.
The cap style can be one of the following:
- Layout::Style::CAP_STYLE_FLAT- Layout::Style::CAP_STYLE_ROUND- Layout::Style::CAP_STYLE_SQUARE
#stroke_color ⇒ Sketchup::Color? (rw)
The #stroke_color method returns the stroke color, or nil if the Style does not have a value for that setting.
#stroke_color=(stroke_color) (rw)
The #stroke_color= method sets the stroke color.
    #stroke_join_style  ⇒ Integer?  (rw)
  
The #stroke_join_style method returns the stroke join style, or nil if the Style does not have a value for that setting.
The join style can be one of the following:
- Layout::Style::JOIN_STYLE_MITER- Layout::Style::JOIN_STYLE_ROUND- Layout::Style::JOIN_STYLE_BEVEL
#stroke_join_style=(join_style) (rw)
The #stroke_join_style= method sets the stroke join style.
The join style can be one of the following:
- Layout::Style::JOIN_STYLE_MITER- Layout::Style::JOIN_STYLE_ROUND- Layout::Style::JOIN_STYLE_BEVEL
    #stroke_pattern  ⇒ Integer?  (rw)
  
The #stroke_pattern method returns the stroke pattern, or nil if the Style does not have a value for that setting.
The stroke pattern can be one of the following:
- Layout::Style::STROKE_PATTERN_SOLID- Layout::Style::STROKE_PATTERN_DASH- Layout::Style::STROKE_PATTERN_DOT- Layout::Style::STROKE_PATTERN_DASH_DOT- Layout::Style::STROKE_PATTERN_DASH_DOT_DOT- Layout::Style::STROKE_PATTERN_DASH_SPACE- Layout::Style::STROKE_PATTERN_DASH_DOT_DOT_DOT- Layout::Style::STROKE_PATTERN_DASH_DASH_DOT- Layout::Style::STROKE_PATTERN_DASH_DASH_DOT_DOT- Layout::Style::STROKE_PATTERN_DASH_DASH_DOT_DOT_DOT- Layout::Style::STROKE_PATTERN_CENTER- Layout::Style::STROKE_PATTERN_PHANTOM
#stroke_pattern=(pattern) (rw)
The #stroke_pattern= method sets the stroke pattern.
The stroke pattern can be one of the following:
- Layout::Style::STROKE_PATTERN_SOLID- Layout::Style::STROKE_PATTERN_DASH- Layout::Style::STROKE_PATTERN_DOT- Layout::Style::STROKE_PATTERN_DASH_DOT- Layout::Style::STROKE_PATTERN_DASH_DOT_DOT- Layout::Style::STROKE_PATTERN_DASH_SPACE- Layout::Style::STROKE_PATTERN_DASH_DOT_DOT_DOT- Layout::Style::STROKE_PATTERN_DASH_DASH_DOT- Layout::Style::STROKE_PATTERN_DASH_DASH_DOT_DOT- Layout::Style::STROKE_PATTERN_DASH_DASH_DOT_DOT_DOT- Layout::Style::STROKE_PATTERN_CENTER- Layout::Style::STROKE_PATTERN_PHANTOM
    #stroke_pattern_scale  ⇒ Float?  (rw)
  
The #stroke_pattern_scale method returns the stroke pattern scale, or nil if the Style does not have a value for that setting.
#stroke_pattern_scale=(scale) (rw)
The #stroke_pattern_scale= method sets the stroke pattern scale.
    #stroke_width  ⇒ Float?  (rw)
  
The #stroke_width method returns the stroke width, or nil if the Style does not have a value for that setting.
#stroke_width=(stroke_width) (rw)
The #stroke_width= method sets the stroke width.
    #stroked  ⇒ Boolean?  (rw)
  
The #stroked method returns whether the Style has a stroke, or nil if the Style does not have a value for that setting.
#stroked=(stroked) (rw)
The #stroked= method sets whether the Style has a stroke.
    #suppress_dimension_units  ⇒ Boolean?  (rw)
  
The #suppress_dimension_units method returns whether the units for dimensions are suppressed, or nil if the Style does not have a value for that setting.
#suppress_dimension_units=(suppress) (rw)
The #suppress_dimension_units= method sets whether the units for dimensions are suppressed.
    #text_alignment  ⇒ Integer?  (rw)
  
The #text_alignment method returns the text alignment, or nil if the Style does not have a value for that setting.
The alignment type can be one of the following values:
- Layout::Style::ALIGN_LEFT- Layout::Style::ALIGN_RIGHT- Layout::Style::ALIGN_CENTER
#text_alignment=(alignment_type) (rw)
The #text_alignment= method sets the text alignment.
The alignment type can be one of the following values:
- Layout::Style::ALIGN_LEFT- Layout::Style::ALIGN_RIGHT- Layout::Style::ALIGN_CENTER
    #text_anchor  ⇒ Integer?  (rw)
  
The #text_anchor method returns the text anchor type, or nil if the Style does not have a value for that setting.
The anchor type can be one of the following values:
- Layout::Style::ANCHOR_TOP- Layout::Style::ANCHOR_CENTER- Layout::Style::ANCHOR_BOTTOM
#text_anchor=(anchor_type) (rw)
The #text_anchor= method sets the text anchor type.
The anchor type can be one of the following values:
- Layout::Style::ANCHOR_TOP- Layout::Style::ANCHOR_CENTER- Layout::Style::ANCHOR_BOTTOM
    #text_bold  ⇒ Boolean?  (rw)
  
The #text_bold method returns whether text is bold, or nil if the Style does not have a value for that setting.
#text_bold=(bold) (rw)
The #text_bold= method sets whether text is bold.
#text_color ⇒ Sketchup::Color? (rw)
The #text_color method returns the text color, or nil if the Style does not have a value for that setting.
#text_color=(color) (rw)
The #text_color= method sets the text color.
    #text_elevation  ⇒ Integer?  (rw)
  
The #text_elevation method returns the text elevation, or nil if the Style does not have a value for that setting.
The elevation type can be one of the following values:
- Layout::Style::NORMAL_SCRIPT- Layout::Style::SUPER_SCRIPT- Layout::Style::SUB_SCRIPT
#text_elevation=(elevation_type) (rw)
The #text_elevation= method sets the text elevation.
The elevation type can be one of the following values:
- Layout::Style::NORMAL_SCRIPT- Layout::Style::SUPER_SCRIPT- Layout::Style::SUB_SCRIPT
    #text_italic  ⇒ Boolean?  (rw)
  
The #text_italic method returns whether text is italic, or nil if the Style does not have a value for that setting.
#text_italic=(italic) (rw)
The #text_italic= method sets whether text is italic.
    #text_underline  ⇒ Integer?  (rw)
  
The #text_underline method returns the text underline type, or nil if the Style does not have a value for that setting.
The underline type can be one of the following values:
- Layout::Style::UNDERLINE_NONE- Layout::Style::UNDERLINE_SINGLE- Layout::Style::UNDERLINE_DOUBLE
#text_underline=(underline_type) (rw)
The #text_underline= method sets the text underline type.
The underline type can be one of the following values:
- Layout::Style::UNDERLINE_NONE- Layout::Style::UNDERLINE_SINGLE- Layout::Style::UNDERLINE_DOUBLE
Instance Method Details
    #dimension_units  ⇒ Array(Integer, Float)? 
  
The #dimension_units method returns the unit format and precision for dimensions, or nil if the 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_INCHES- Layout::Style::ARCHITECTURAL_INCHES- Layout::Style::ENGINEERING_FEET- Layout::Style::DECIMAL_INCHES- Layout::Style::DECIMAL_FEET- Layout::Style::DECIMAL_MILLIMETERS- Layout::Style::DECIMAL_CENTIMETERS- Layout::Style::DECIMAL_METERS- Layout::Style::DECIMAL_POINTS- Layout::Style::DEGREES- Layout::Style::RADIANS
    #get_sub_style(type)  ⇒ Style 
  
The #get_sub_style method returns the Style for a sub-entity from the Style. This would be used to get the current style of a LinearDimension‘s text, for example.
#set_dimension_units(units, precision)
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_INCHES- Layout::Style::ARCHITECTURAL_INCHES- Layout::Style::ENGINEERING_FEET- Layout::Style::DECIMAL_INCHES- Layout::Style::DECIMAL_FEET- Layout::Style::DECIMAL_MILLIMETERS- Layout::Style::DECIMAL_CENTIMETERS- Layout::Style::DECIMAL_METERS- Layout::Style::DECIMAL_POINTS- Layout::Style::DEGREES- Layout::Style::RADIANS
#set_sub_style(type, sub_style)
The #set_sub_style method adds a 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.