Class: Shoes::Swt::Arrow
- Inherits:
-
Object
- Object
- Shoes::Swt::Arrow
- Extended by:
- Forwardable
- Includes:
- Common::PainterUpdatesPosition, Common::Clickable, Common::Fill, Common::Remove, Common::Stroke, Common::Translate, Common::Visibility
- Defined in:
- shoes-swt/lib/shoes/swt/arrow.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#dsl ⇒ Object
readonly
Returns the value of attribute dsl.
-
#painter ⇒ Object
readonly
Returns the value of attribute painter.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#transform ⇒ Object
readonly
Returns the value of attribute transform.
Attributes included from Common::Clickable
Instance Method Summary collapse
- #dispose ⇒ Object
-
#initialize(dsl, app) ⇒ Arrow
constructor
A new instance of Arrow.
- #update_position ⇒ Object
Methods included from Common::Translate
#clear_translate, #translate_left, #translate_top
Methods included from Common::Remove
Methods included from Common::Visibility
#hidden?, #hidden_from_view?, #hide, #outside_parent_view?, #show, #toggle, #visible?
Methods included from Common::Clickable
#click, #pass_coordinates?, #register_click, #release
Methods included from Common::Stroke
Methods included from Common::Fill
Constructor Details
#initialize(dsl, app) ⇒ Arrow
Returns a new instance of Arrow.
20 21 22 23 24 25 26 |
# File 'shoes-swt/lib/shoes/swt/arrow.rb', line 20 def initialize(dsl, app) @dsl = dsl @app = app @painter = ArrowPainter.new(self) @app.add_paint_listener @painter end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
18 19 20 |
# File 'shoes-swt/lib/shoes/swt/arrow.rb', line 18 def app @app end |
#dsl ⇒ Object (readonly)
Returns the value of attribute dsl.
18 19 20 |
# File 'shoes-swt/lib/shoes/swt/arrow.rb', line 18 def dsl @dsl end |
#painter ⇒ Object (readonly)
Returns the value of attribute painter.
18 19 20 |
# File 'shoes-swt/lib/shoes/swt/arrow.rb', line 18 def painter @painter end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
18 19 20 |
# File 'shoes-swt/lib/shoes/swt/arrow.rb', line 18 def path @path end |
#transform ⇒ Object (readonly)
Returns the value of attribute transform.
18 19 20 |
# File 'shoes-swt/lib/shoes/swt/arrow.rb', line 18 def transform @transform end |
Instance Method Details
#dispose ⇒ Object
32 33 34 |
# File 'shoes-swt/lib/shoes/swt/arrow.rb', line 32 def dispose @painter.dispose end |
#update_position ⇒ Object
28 29 30 |
# File 'shoes-swt/lib/shoes/swt/arrow.rb', line 28 def update_position @painter.clear_path end |