Class: CTioga2::Graphics::Elements::PlotBasedElement
- Inherits:
-
TiogaElement
- Object
- TiogaElement
- CTioga2::Graphics::Elements::PlotBasedElement
- Defined in:
- lib/ctioga2/graphics/elements/element.rb
Overview
The base class for all dataset-based elements
Direct Known Subclasses
Constant Summary
Constants inherited from TiogaElement
TiogaElement::StyleBaseOptions
Instance Attribute Summary collapse
-
#curve_style ⇒ Object
A Styles::CurveStyle object saying how the curve should be drawn.
-
#dataset ⇒ Object
The Data::Dataset object that should get plotted.
Attributes inherited from TiogaElement
#hidden, #object_classes, #object_id, #object_parent, #parent
Instance Method Summary collapse
- #clipped ⇒ Object
- #depth ⇒ Object
-
#initialize ⇒ PlotBasedElement
constructor
A new instance of PlotBasedElement.
-
#location ⇒ Object
Returns the LocationStyle object of the curve.
Methods inherited from TiogaElement
all_styles, base_style, #check_styled, define_style, #do, find_object, #get_style, #has_style?, inherited, #inspect, register_object, register_style, #setup_style, #style_class, style_class, style_name, #style_name, styled_classes, #update_style
Methods included from Log
context, debug, error, fatal, #format_exception, #identify, info, init_logger, log_to, logger, set_level, #spawn, warn
Constructor Details
#initialize ⇒ PlotBasedElement
Returns a new instance of PlotBasedElement.
302 303 304 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 302 def initialize() super() end |
Instance Attribute Details
#curve_style ⇒ Object
A Styles::CurveStyle object saying how the curve should be drawn.
278 279 280 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 278 def curve_style @curve_style end |
#dataset ⇒ Object
The Data::Dataset object that should get plotted.
274 275 276 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 274 def dataset @dataset end |
Instance Method Details
#clipped ⇒ Object
292 293 294 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 292 def clipped return @curve_style.clipped end |
#depth ⇒ Object
298 299 300 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 298 def depth return @curve_style.depth end |
#location ⇒ Object
Returns the LocationStyle object of the curve. Returns the one from #curve_style.
286 287 288 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 286 def location return @curve_style.location end |