Class DimensionValue

java.lang.Object
react.Reactor
react.AbstractValue<T>
react.Value<pythagoras.f.IDimension>
tripleplay.util.DimensionValue
All Implemented Interfaces:
react.ValueView<pythagoras.f.IDimension>

public class DimensionValue extends react.Value<pythagoras.f.IDimension>
A specialized Value for dimensions.
  • Nested Class Summary

    Nested classes/interfaces inherited from class react.Reactor

    react.Reactor.RListener

    Nested classes/interfaces inherited from interface react.ValueView

    react.ValueView.Listener<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
    DimensionValue(float width, float height)
    Creates a new value with a new dimension of the given width and height.
    DimensionValue(pythagoras.f.IDimension value)
    Creates a new value with the given dimension.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(float width, float height)
    Updates the value to a new dimension of the given width and height.
    void
    updateHeight(float height)
    Updates the value to a new dimension with the current width and the given height.
    void
    updateWidth(float width)
    Updates the value to a new dimension with the current height and the given width.

    Methods inherited from class react.Value

    create, get, slot, update, updateForce

    Methods inherited from class react.AbstractValue

    changes, connect, connect, connect, connectNotify, connectNotify, connectNotify, disconnect, equals, flatMap, hashCode, map, toString, when

    Methods inherited from class react.Reactor

    clearConnections, hasConnections

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DimensionValue

      public DimensionValue(pythagoras.f.IDimension value)
      Creates a new value with the given dimension.
    • DimensionValue

      public DimensionValue(float width, float height)
      Creates a new value with a new dimension of the given width and height.
  • Method Details

    • update

      public void update(float width, float height)
      Updates the value to a new dimension of the given width and height.
    • updateWidth

      public void updateWidth(float width)
      Updates the value to a new dimension with the current height and the given width.
    • updateHeight

      public void updateHeight(float height)
      Updates the value to a new dimension with the current width and the given height.