Package tripleplay.ui

Class Icons.Aggregated

java.lang.Object
tripleplay.ui.Icons.Aggregated
All Implemented Interfaces:
Icon
Enclosing class:
Icons

public abstract static class Icons.Aggregated extends Object implements Icon
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

    Fields
    Modifier and Type
    Field
    Description
    final Icon
    Icon that is deferred to.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new aggregated icon that defers to the given one.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the height of this icon.
    Creates a new layer for displaying this icon.
    react.RFuture<Icon>
    A future which is completed when this icon has loaded.
    float
    Returns the width of this icon.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • icon

      public final Icon icon
      Icon that is deferred to.
  • Constructor Details

    • Aggregated

      public Aggregated(Icon icon)
      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.
      Specified by:
      width in interface Icon
    • 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.
      Specified by:
      height in interface Icon
    • render

      public Layer 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.
      Specified by:
      render in interface Icon
    • state

      public react.RFuture<Icon> state()
      Description copied from interface: Icon
      A future which is completed when this icon has loaded.
      Specified by:
      state in interface Icon