MetaDone
|
Public Member Functions | |
AttributeBackground (GrasylaEngine engine) | |
void | colorChanged (Color c) throws BadPreCondition |
Protected Member Functions | |
Iterable<?extends Widget > | getWidgets () throws BadPreCondition |
Private Attributes | |
final GrasylaEngine | engine |
An attribute representing a background Color.
The opaque property of the widget is also controlled by the color.
metadone.client.grasyla2.visuallibrary.AttributeBackground.AttributeBackground | ( | GrasylaEngine | engine | ) |
Initializes this attribute.
engine | The engine to update |
References metadone.client.grasyla2.visuallibrary.AttributeBackground.engine, and metadone.client.grasyla2.base.ColorEngine.TRANSPARENT.
void metadone.client.grasyla2.visuallibrary.AttributeBackground.colorChanged | ( | Color | c | ) | throws BadPreCondition [virtual] |
Called when the color has changed.
c | The new color |
BadPreCondition |
Implements metadone.client.grasyla2.base.AttributeColor.
References metadone.client.grasyla2.visuallibrary.AttributeBackground.getWidgets(), and metadone.client.grasyla2.visuallibrary.GrasylaScene.validate.
Iterable<? extends Widget> metadone.client.grasyla2.visuallibrary.AttributeBackground.getWidgets | ( | ) | throws BadPreCondition [protected] |
Gets the widgets created by the engine.
BadPreCondition |
References metadone.client.grasyla2.visuallibrary.AttributeBackground.engine, and metadone.client.grasyla2.GrasylaEngine.getComponent().
Referenced by metadone.client.grasyla2.visuallibrary.AttributeBackground.colorChanged().