Class: CTioga2::Graphics::Styles::StrokeStyle
- Inherits:
-
BasicStyle
- Object
- BasicStyle
- CTioga2::Graphics::Styles::StrokeStyle
- Defined in:
- lib/ctioga2/graphics/styles/drawable.rb
Overview
This class represents all the stylistic information to stroke a Tioga path.
Direct Known Subclasses
Constant Summary
Constants inherited from BasicStyle
Instance Attribute Summary collapse
-
#color ⇒ Object
The color.
-
#style ⇒ Object
The line style.
-
#width ⇒ Object
The line width.
Instance Method Summary collapse
-
#set_stroke_style(t) ⇒ Object
Sets the stroke style to a FigureMaker object, t.
Methods inherited from BasicStyle
attr_accessor, attributes, from_hash, #instance_variable_defined?, #set_from_hash, #to_hash, #update_from_other
Instance Attribute Details
#color ⇒ Object
The color
31 32 33 |
# File 'lib/ctioga2/graphics/styles/drawable.rb', line 31 def color @color end |
#style ⇒ Object
The line style
34 35 36 |
# File 'lib/ctioga2/graphics/styles/drawable.rb', line 34 def style @style end |
#width ⇒ Object
The line width
37 38 39 |
# File 'lib/ctioga2/graphics/styles/drawable.rb', line 37 def width @width end |
Instance Method Details
#set_stroke_style(t) ⇒ Object
Sets the stroke style to a FigureMaker object, t.
40 41 42 43 44 |
# File 'lib/ctioga2/graphics/styles/drawable.rb', line 40 def set_stroke_style(t) t.stroke_color = @color if @color t.line_type = @style if @style t.line_width = @width if @width end |