Class: Google::Apis::FusiontablesV2::PolygonStyle
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::FusiontablesV2::PolygonStyle
 
 
- 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 PolygonStyle within a StyleSetting
Instance Attribute Summary collapse
- 
  
    
      #fill_color  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Color of the interior of the polygon in #RRGGBB format.
 - 
  
    
      #fill_color_styler  ⇒ Google::Apis::FusiontablesV2::StyleFunction 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Represents a StyleFunction within a StyleSetting Corresponds to the JSON property
fillColorStyler. - 
  
    
      #fill_opacity  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
 - 
  
    
      #stroke_color  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Color of the polygon border 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 polygon border: 0.0 (transparent) to 1.0 (opaque).
 - 
  
    
      #stroke_weight  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Width of the polyon border 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)  ⇒ PolygonStyle 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of PolygonStyle.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PolygonStyle
Returns a new instance of PolygonStyle
      499 500 501  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 499 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#fill_color ⇒ String
Color of the interior of the polygon in #RRGGBB format.
Corresponds to the JSON property fillColor
      462 463 464  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 462 def fill_color @fill_color end  | 
  
#fill_color_styler ⇒ Google::Apis::FusiontablesV2::StyleFunction
Represents a StyleFunction within a StyleSetting
Corresponds to the JSON property fillColorStyler
      467 468 469  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 467 def fill_color_styler @fill_color_styler end  | 
  
#fill_opacity ⇒ Float
Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
Corresponds to the JSON property fillOpacity
      472 473 474  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 472 def fill_opacity @fill_opacity end  | 
  
#stroke_color ⇒ String
Color of the polygon border in #RRGGBB format.
Corresponds to the JSON property strokeColor
      477 478 479  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 477 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
      482 483 484  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 482 def stroke_color_styler @stroke_color_styler end  | 
  
#stroke_opacity ⇒ Float
Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
Corresponds to the JSON property strokeOpacity
      487 488 489  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 487 def stroke_opacity @stroke_opacity end  | 
  
#stroke_weight ⇒ Fixnum
Width of the polyon border in pixels.
Corresponds to the JSON property strokeWeight
      492 493 494  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 492 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
      497 498 499  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 497 def stroke_weight_styler @stroke_weight_styler end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      504 505 506 507 508 509 510 511 512 513  | 
    
      # File 'generated/google/apis/fusiontables_v2/classes.rb', line 504 def update!(**args) @fill_color = args[:fill_color] if args.key?(:fill_color) @fill_color_styler = args[:fill_color_styler] if args.key?(:fill_color_styler) @fill_opacity = args[:fill_opacity] if args.key?(:fill_opacity) @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  |