Class UpDownIndicator

  • All Implemented Interfaces:
    crackers.kobots.graphics.widgets.KobotsWidget

    
    public final class UpDownIndicator<T extends Comparable<T>>
     implements KobotsWidget<T>
                        

    Draws up/down arrows indicating which way something is "moving". The display is divided into 4 sections:

    • label (drawn at the top)

    • top arrow

    • value label

    • bottom arrow The sizes of the arrows are based on some hacking up the available space into equals enough parts to make it look at least not entirely sucky.

    Decreasing values will light up the "top" arrow and increasing values will have the opposite effect.