INNER CODE UNIT · Java

TickerColumn

robinhood/ticker · ticker/src/main/java/com/robinhood/ticker/TickerColumn.java:29

class TickerColumn {
    private TickerCharacterList[] characterLists;
    private final TickerDrawMetrics metrics;

    private char currentChar = TickerUtils.EMPTY_CHAR;
    private char targetChar = TickerUtils.EMPTY_CHAR;

    // The indices characters simply signify what positions are for the current and target
    // characters in the assigned characterList. This tells us how to animate from the current
    // to the target characters.
    private char[] currentCharacterList;
    private int startIndex;
    private int endIndex;

    // Drawing state variables that get updated whenever animation progress gets updated.
    private int bottomCharIndex;
    private float bottomDelta;
    private float charHeight;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…