Class: Writexlsx::Chart::Marker

Inherits:
Chartline show all
Defined in:
lib/write_xlsx/chart/series.rb

Constant Summary

Constants included from Utility::ChartFormatting

Utility::ChartFormatting::PATTERN_TYPES

Constants included from Utility::Common

Utility::Common::PERL_TRUE_VALUES

Instance Attribute Summary collapse

Attributes inherited from Chartline

#fill, #gradient, #line, #pattern, #type

Instance Method Summary collapse

Methods inherited from Chartline

#fill_defined?, #line_defined?

Methods included from Gradient

#gradient_properties

Methods included from Utility::RichText

#convert_font_args, #get_font_latin_attributes, #get_font_style_attributes, #params_to_font, #underline_attributes, #write_a_body_pr, #write_a_def_rpr, #write_a_end_para_rpr, #write_a_lst_style, #write_a_p_formula, #write_a_p_pr_formula, #write_def_rpr_r_pr_common, #write_tx_pr

Methods included from Utility::ChartFormatting

#color, #dash_types, #fill_properties, #layout_properties, #legend_properties, #line_fill_properties, #line_properties, #palette_color_from_index, #pattern_properties, #value_or_raise, #write_a_solid_fill, #write_a_srgb_clr

Methods included from Utility::Common

#absolute_char, #check_parameter, #float_to_str, #ptrue?, #put_deprecate_message

Constructor Details

#initialize(params) ⇒ Marker

Returns a new instance of Marker.



147
148
149
150
151
152
153
154
155
# File 'lib/write_xlsx/chart/series.rb', line 147

def initialize(params)
  super

  @type = value_or_raise(types, params[:type], 'maker type') if params[:type]

  @size      = params[:size]
  @automatic = false
  @automatic = true if @type == 'automatic'
end

Instance Attribute Details

#size ⇒ Object (readonly)

Returns the value of attribute size.



145
146
147
# File 'lib/write_xlsx/chart/series.rb', line 145

def size
  @size
end

Instance Method Details

#automatic? ⇒ Boolean

Returns:

  • (Boolean)


157
158
159
# File 'lib/write_xlsx/chart/series.rb', line 157

def automatic?
  @automatic
end