MetaDone
metadone.client.grasyla2.visuallibrary.AttributeBackground Class Reference
Inheritance diagram for metadone.client.grasyla2.visuallibrary.AttributeBackground:
Collaboration diagram for metadone.client.grasyla2.visuallibrary.AttributeBackground:

List of all members.

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

Detailed Description

An attribute representing a background Color.

The opaque property of the widget is also controlled by the color.

Author:
kma
See also:
Widget.setBackground(java.awt.Paint)
Widget.setOpaque(boolean)

Constructor & Destructor Documentation

metadone.client.grasyla2.visuallibrary.AttributeBackground.AttributeBackground ( GrasylaEngine  engine)

Initializes this attribute.

Parameters:
engineThe engine to update

References metadone.client.grasyla2.visuallibrary.AttributeBackground.engine, and metadone.client.grasyla2.base.ColorEngine.TRANSPARENT.


Member Function Documentation

void metadone.client.grasyla2.visuallibrary.AttributeBackground.colorChanged ( Color  c) throws BadPreCondition [virtual]

Called when the color has changed.

Parameters:
cThe new color
Exceptions:
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.

Returns:
The widgets of the engine
Exceptions:
BadPreCondition

References metadone.client.grasyla2.visuallibrary.AttributeBackground.engine, and metadone.client.grasyla2.GrasylaEngine.getComponent().

Referenced by metadone.client.grasyla2.visuallibrary.AttributeBackground.colorChanged().


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations