WindowPaintController class
Methods
-
addListener(VoidCallback listener)
→ void
-
Register a closure to be called when the object changes.
inherited
-
addObject(DrawObject object)
→ void
-
Calling this will notify all the listeners of this WindowPaintController
that they need to update (it calls notifyListeners()). For this reason,
this value should only be set between frames, e.g. in response to user
actions, not during the build, layout, or paint phases.
-
addObjects(Iterable<DrawObject> objects)
→ void
-
Calling this will notify all the listeners of this WindowPaintController
that they need to update (it calls notifyListeners()). For this reason,
this value should only be set between frames, e.g. in response to user
actions, not during the build, layout, or paint phases.
-
cancelSelectObject()
→ void
-
Restores color to the value it had before the object was selected.
-
dispose()
→ void
-
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners()
→ void
-
Call all the registered listeners.
inherited
-
objectWasUpdated()
→ void
-
Calling this will notify all the listeners of this WindowPaintController
that the last object is done. This is basically just a wrapper
around notifyListeners().
-
removeListener(VoidCallback listener)
→ void
-
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
removeObject(DrawObject object)
→ void
-
Calling this will notify all the listeners of this WindowPaintController
that they need to update (it calls notifyListeners()). For this reason,
this value should only be set between frames, e.g. in response to user
actions, not during the build, layout, or paint phases.
-
removeObjectsWhere(bool test(DrawObject object))
→ void
-
Calling this will notify all the listeners of this WindowPaintController
that they need to update (it calls notifyListeners()). For this reason,
this value should only be set between frames, e.g. in response to user
actions, not during the build, layout, or paint phases.
-
selectObject(int index)
→ void
-
Stores the color so that it can be restored when the selection
gets cancelled.
-
toString()
→ String
-
A string representation of this object.
inherited