Package tripleplay.ui
Class Icons.Aggregated
java.lang.Object
tripleplay.ui.Icons.Aggregated
- All Implemented Interfaces:
Icon
- Enclosing class:
Icons
Defers to another icon. Subclasses decide how to modify the width and height and how to use
the rendered layer. The base takes care of the callback. By default, returns the size and
layer without modification.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAggregated
(Icon icon) Creates a new aggregated icon that defers to the given one. -
Method Summary
-
Field Details
-
icon
Icon that is deferred to.
-
-
Constructor Details
-
Aggregated
Creates a new aggregated icon that defers to the given one.
-
-
Method Details
-
width
public float width()Description copied from interface:Icon
Returns the width of this icon. If the icon is not yet loaded, this should return zero. -
height
public float height()Description copied from interface:Icon
Returns the height of this icon. If the icon is not yet loaded, this should return zero. -
render
Description copied from interface:Icon
Creates a new layer for displaying this icon. The caller is takes ownership of the new layer and is responsible for its destruction. -
state
Description copied from interface:Icon
A future which is completed when this icon has loaded.
-