Class: Google::Apis::FusiontablesV2::PolygonStyle

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_colorString

Color of the interior of the polygon in #RRGGBB format. Corresponds to the JSON property fillColor

Returns:

  • (String)


462
463
464
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 462

def fill_color
  @fill_color
end

#fill_color_stylerGoogle::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_opacityFloat

Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque). Corresponds to the JSON property fillOpacity

Returns:

  • (Float)


472
473
474
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 472

def fill_opacity
  @fill_opacity
end

#stroke_colorString

Color of the polygon border in #RRGGBB format. Corresponds to the JSON property strokeColor

Returns:

  • (String)


477
478
479
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 477

def stroke_color
  @stroke_color
end

#stroke_color_stylerGoogle::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_opacityFloat

Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). Corresponds to the JSON property strokeOpacity

Returns:

  • (Float)


487
488
489
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 487

def stroke_opacity
  @stroke_opacity
end

#stroke_weightFixnum

Width of the polyon border in pixels. Corresponds to the JSON property strokeWeight

Returns:

  • (Fixnum)


492
493
494
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 492

def stroke_weight
  @stroke_weight
end

#stroke_weight_stylerGoogle::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