Package tripleplay.ui

Class Behavior.Track<T extends Element<T>>

All Implemented Interfaces:
react.Reactor.RListener, react.SignalView.Listener<Object>, react.ValueView.Listener<Object>
Enclosing class:
Behavior<T extends Element<T>>

public abstract static class Behavior.Track<T extends Element<T>> extends Behavior.Ignore<T>
Tracks the pressed position as an anchor and delegates to subclasses to update state based on anchor and drag position.
  • Field Details

    • HOVER_LIMIT

      public static Style<Float> HOVER_LIMIT
      A distance, in event coordinates, used to decide if tracking should be temporarily cancelled. If the pointer is hovered more than this distance outside of the owner's bounds, the tracking will revert to the anchor position, just like when the pointer is cancelled. A null value indicates that the tracking will be unconfined in this way. TODO: default to 35 if no Slider uses are relying on lack of hover limit.
  • Method Details