Class: Google::Apis::FusiontablesV1::PolygonStyle

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

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



443
444
445
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 443

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)


406
407
408
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 406

def fill_color
  @fill_color
end

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

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

Returns:

  • (Float)


416
417
418
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 416

def fill_opacity
  @fill_opacity
end

#stroke_colorString

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

Returns:

  • (String)


421
422
423
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 421

def stroke_color
  @stroke_color
end

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

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

Returns:

  • (Float)


431
432
433
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 431

def stroke_opacity
  @stroke_opacity
end

#stroke_weightFixnum

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

Returns:

  • (Fixnum)


436
437
438
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 436

def stroke_weight
  @stroke_weight
end

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