Class: Thinreports::BasicReport::Core::Shape::Style::Graphic

Inherits:
Style::Basic
  • Object
show all
Defined in:
lib/thinreports/basic_report/core/shape/style/graphic.rb

Instance Method Summary collapse

Instance Method Details

#borderArray<String, Number>

Returns:

  • (Array<String, Number>)


28
29
30
# File 'lib/thinreports/basic_report/core/shape/style/graphic.rb', line 28

def border
  [border_width, border_color]
end

#border=(width_and_color) ⇒ Object

Parameters:

  • width_and_color (Array<String, Number>)


33
34
35
36
37
# File 'lib/thinreports/basic_report/core/shape/style/graphic.rb', line 33

def border=(width_and_color)
  w, c = width_and_color
  self.border_width = w
  self.border_color = c
end

#border_colorString

Returns:

  • (String)


15
# File 'lib/thinreports/basic_report/core/shape/style/graphic.rb', line 15

style_accessor :border_color, 'border-color'

#border_color=(color) ⇒ Object

Parameters:

  • color (String)


15
# File 'lib/thinreports/basic_report/core/shape/style/graphic.rb', line 15

style_accessor :border_color, 'border-color'

#border_widthNumber

Returns:

  • (Number)


19
# File 'lib/thinreports/basic_report/core/shape/style/graphic.rb', line 19

style_accessor :border_width, 'border-width'

#fill_colorString

Returns:

  • (String)


25
# File 'lib/thinreports/basic_report/core/shape/style/graphic.rb', line 25

style_accessor :fill_color, 'fill-color'

#fill_color=(color) ⇒ Object

Parameters:

  • color (String)


25
# File 'lib/thinreports/basic_report/core/shape/style/graphic.rb', line 25

style_accessor :fill_color, 'fill-color'