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

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

Instance Attribute Summary

Attributes inherited from Basic

#visible

Attributes inherited from Base

#accessible_styles, #styles

Instance Method Summary collapse

Methods inherited from Basic

#initialize

Methods inherited from Base

#[], #[]=, accessible_styles, #copy, #finalized_styles, #has_style?, #identifier, inherited, #initialize, #read_internal_style, style_accessible, style_accessor, style_reader, style_writer, #write_internal_style

Methods included from Utils

#blank_value?, #call_block_in, #deep_copy, included

Constructor Details

This class inherits a constructor from Thinreports::BasicReport::Core::Shape::Style::Basic

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'