Class: Google::Apis::FusiontablesV1::PolygonStyle
- Inherits:
-
Object
- Object
- Google::Apis::FusiontablesV1::PolygonStyle
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/fusiontables_v1/classes.rb,
generated/google/apis/fusiontables_v1/representations.rb,
generated/google/apis/fusiontables_v1/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::FusiontablesV1::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::FusiontablesV1::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::FusiontablesV1::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
443 444 445 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 443 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
406 407 408 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 406 def fill_color @fill_color end |
#fill_color_styler ⇒ Google::Apis::FusiontablesV1::StyleFunction
Represents a StyleFunction within a StyleSetting
Corresponds to the JSON property fillColorStyler
411 412 413 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 411 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
416 417 418 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 416 def fill_opacity @fill_opacity end |
#stroke_color ⇒ String
Color of the polygon border in #RRGGBB format.
Corresponds to the JSON property strokeColor
421 422 423 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 421 def stroke_color @stroke_color end |
#stroke_color_styler ⇒ Google::Apis::FusiontablesV1::StyleFunction
Represents a StyleFunction within a StyleSetting
Corresponds to the JSON property strokeColorStyler
426 427 428 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 426 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
431 432 433 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 431 def stroke_opacity @stroke_opacity end |
#stroke_weight ⇒ Fixnum
Width of the polyon border in pixels.
Corresponds to the JSON property strokeWeight
436 437 438 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 436 def stroke_weight @stroke_weight end |
#stroke_weight_styler ⇒ Google::Apis::FusiontablesV1::StyleFunction
Represents a StyleFunction within a StyleSetting
Corresponds to the JSON property strokeWeightStyler
441 442 443 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 441 def stroke_weight_styler @stroke_weight_styler end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
448 449 450 451 452 453 454 455 456 457 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 448 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 |