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, find_objects, #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, counts, 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.
322 323 324 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 322 def initialize() super() end |
Instance Attribute Details
#curve_style ⇒ Object
A Styles::CurveStyle object saying how the curve should be drawn.
298 299 300 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 298 def curve_style @curve_style end |
#dataset ⇒ Object
The Data::Dataset object that should get plotted.
294 295 296 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 294 def dataset @dataset end |
Instance Method Details
#clipped ⇒ Object
312 313 314 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 312 def clipped return @curve_style.clipped end |
#depth ⇒ Object
318 319 320 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 318 def depth return @curve_style.depth end |
#location ⇒ Object
Returns the LocationStyle object of the curve. Returns the one from #curve_style.
306 307 308 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 306 def location return @curve_style.location end |