Class: CTioga2::Graphics::Elements::AxisElement

Inherits:
TiogaElement
  • Object
show all
Defined in:
lib/ctioga2/graphics/elements/plot-elements.rb

Overview

This simple wrapper makes it possible to style axes (at least using parents styling)

Constant Summary

Constants inherited from TiogaElement

TiogaElement::StyleBaseOptions

Instance Attribute Summary collapse

Attributes inherited from TiogaElement

#clipped, #depth, #hidden, #location, #object_classes, #object_id, #object_parent, #parent

Instance Method Summary collapse

Methods inherited from TiogaElement

all_styles, base_style, #check_styled, define_style, #do, find_object, find_objects, #get_style, #has_style?, inherited, #initialize, #inspect, register_object, register_style, #setup_style, #style_class, style_class, style_name, #style_name, styled_classes, #update_style

Methods included from Log

context, counts, debug, error, fatal, #format_exception, #identify, info, init_logger, log_to, logger, set_level, #spawn, warn

Constructor Details

This class inherits a constructor from CTioga2::Graphics::Elements::TiogaElement

Instance Attribute Details

#styleObject

Returns the value of attribute style.



33
34
35
# File 'lib/ctioga2/graphics/elements/plot-elements.rb', line 33

def style
  @style
end

Instance Method Details

#initialize_style(loc, dec, label) ⇒ Object



35
36
37
38
# File 'lib/ctioga2/graphics/elements/plot-elements.rb', line 35

def initialize_style(loc, dec, label)
  @style = Styles::AxisStyle::new(loc, dec, label)
  update_style(@style)
end