Class: Sketchup::PagesObserver Abstract
Relationships | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
EntitiesObserver
|
|
Instance Chain:
self,
EntitiesObserver
|
|
Inherits: |
Sketchup::EntitiesObserver
|
Overview
To implement this observer, create a Ruby class of this type, override the desired methods, and add an instance of the observer to the objects of interests.
This observer interface is implemented to react to pages events.
Instance Method Summary
-
#onContentsModified(pages) ⇒ nil
The #onContentsModified method is invoked whenever the pages change.
-
#onElementAdded(pages, page) ⇒ nil
The #onElementAdded method is invoked when an element is added to a
Pages
object. -
#onElementRemoved(pages, page) ⇒ nil
The #onElementRemoved method is invoked when an element is removed from a
Pages
object.
EntitiesObserver
- Inherited
#onActiveSectionPlaneChanged | The |
#onElementAdded | The onElementAdded method is invoked when a single element is added to the |
#onElementModified | The |
#onElementRemoved | The #onElementRemoved method is invoked when a single element is removed from the |
#onEraseEntities | The |
Instance Method Details
#onContentsModified(pages) ⇒ nil
The #onContentsModified
method is invoked whenever the pages change.
#onElementAdded(pages, page) ⇒ nil
The #onElementAdded
method is invoked when an element is added to a Pages
object.
#onElementRemoved(pages, page) ⇒ nil
The #onElementRemoved
method is invoked when an element is removed from a Pages
object.