Class: CTioga2::Graphics::Styles::StrokeStyle
- Inherits:
-
LineStyle
- Object
- BasicStyle
- LineStyle
- 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
BasicStyle::AllStyles, BasicStyle::OldAttrAccessor
Instance Method Summary collapse
-
#set_stroke_style(t) ⇒ Object
Sets the stroke style to a FigureMaker object, t.
Methods inherited from LineStyle
Methods inherited from BasicStyle
alias_for, aliases, attr_accessor, attribute_type, attribute_types, attributes, convert_string_hash, defined_aliases, deprecated_attribute, from_hash, inherited, #instance_variable_defined?, normalize_hash, normalize_in, normalize_out, options_hash, #set_from_hash, sub_style, sub_styles, #to_hash, typed_attribute, #update_from_other, #use_defaults_from
Instance Method Details
#set_stroke_style(t) ⇒ Object
Sets the stroke style to a FigureMaker object, t.
58 59 60 61 62 |
# File 'lib/ctioga2/graphics/styles/drawable.rb', line 58 def set_stroke_style(t) t.stroke_color = @color if @color t.line_cap = @cap if @cap super end |