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
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
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
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.
130 131 132 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 130 def initialize() super() end |
Instance Attribute Details
#curve_style ⇒ Object
A Styles::CurveStyle object saying how the curve should be drawn.
108 109 110 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 108 def curve_style @curve_style end |
#dataset ⇒ Object
The Data::Dataset object that should get plotted.
104 105 106 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 104 def dataset @dataset end |
Instance Method Details
#clipped ⇒ Object
120 121 122 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 120 def clipped return @curve_style.clipped end |
#depth ⇒ Object
126 127 128 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 126 def depth return @curve_style.depth end |
#location ⇒ Object
Returns the LocationStyle object of the curve. Returns the one from #curve_style.
114 115 116 |
# File 'lib/ctioga2/graphics/elements/element.rb', line 114 def location return @curve_style.location end |