Class: Google::Apis::FusiontablesV2::LineStyle
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::FusiontablesV2::LineStyle
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/fusiontables_v2/classes.rb,
 generated/google/apis/fusiontables_v2/representations.rb,
 generated/google/apis/fusiontables_v2/representations.rb
Overview
Represents a LineStyle within a StyleSetting
Instance Attribute Summary collapse
- 
  
    
      #stroke_color  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Color of the line in #RRGGBB format. 
- 
  
    
      #stroke_color_styler  ⇒ Google::Apis::FusiontablesV2::StyleFunction 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a StyleFunction within a StyleSetting Corresponds to the JSON property strokeColorStyler.
- 
  
    
      #stroke_opacity  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Opacity of the line : 0.0 (transparent) to 1.0 (opaque). 
- 
  
    
      #stroke_weight  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Width of the line in pixels. 
- 
  
    
      #stroke_weight_styler  ⇒ Google::Apis::FusiontablesV2::StyleFunction 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents a StyleFunction within a StyleSetting Corresponds to the JSON property strokeWeightStyler.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LineStyle 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of LineStyle. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LineStyle
Returns a new instance of LineStyle
| 365 366 367 | # File 'generated/google/apis/fusiontables_v2/classes.rb', line 365 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#stroke_color ⇒ String
Color of the line in #RRGGBB format.
Corresponds to the JSON property strokeColor
| 343 344 345 | # File 'generated/google/apis/fusiontables_v2/classes.rb', line 343 def stroke_color @stroke_color end | 
#stroke_color_styler ⇒ Google::Apis::FusiontablesV2::StyleFunction
Represents a StyleFunction within a StyleSetting
Corresponds to the JSON property strokeColorStyler
| 348 349 350 | # File 'generated/google/apis/fusiontables_v2/classes.rb', line 348 def stroke_color_styler @stroke_color_styler end | 
#stroke_opacity ⇒ Float
Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
Corresponds to the JSON property strokeOpacity
| 353 354 355 | # File 'generated/google/apis/fusiontables_v2/classes.rb', line 353 def stroke_opacity @stroke_opacity end | 
#stroke_weight ⇒ Fixnum
Width of the line in pixels.
Corresponds to the JSON property strokeWeight
| 358 359 360 | # File 'generated/google/apis/fusiontables_v2/classes.rb', line 358 def stroke_weight @stroke_weight end | 
#stroke_weight_styler ⇒ Google::Apis::FusiontablesV2::StyleFunction
Represents a StyleFunction within a StyleSetting
Corresponds to the JSON property strokeWeightStyler
| 363 364 365 | # File 'generated/google/apis/fusiontables_v2/classes.rb', line 363 def stroke_weight_styler @stroke_weight_styler end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 370 371 372 373 374 375 376 | # File 'generated/google/apis/fusiontables_v2/classes.rb', line 370 def update!(**args) @stroke_color = args[:stroke_color] if args.key?(:stroke_color) @stroke_color_styler = args[:stroke_color_styler] if args.key?(:stroke_color_styler) @stroke_opacity = args[:stroke_opacity] if args.key?(:stroke_opacity) @stroke_weight = args[:stroke_weight] if args.key?(:stroke_weight) @stroke_weight_styler = args[:stroke_weight_styler] if args.key?(:stroke_weight_styler) end |