Class LizzieFrame

    • Field Detail

      • uiFont

        public static Font uiFont
      • winrateFont

        public static Font winrateFont
      • mouseOverCoordinate

        public int[] mouseOverCoordinate
      • showControls

        public boolean showControls
      • isPlayingAgainstLeelaz

        public boolean isPlayingAgainstLeelaz
      • playerIsBlack

        public boolean playerIsBlack
      • winRateGridLines

        public int winRateGridLines
    • Constructor Detail

      • LizzieFrame

        public LizzieFrame()
        Creates a window
    • Method Detail

      • clear

        public void clear()
        Clears related status from empty board.
      • startNewGame

        public static void startNewGame()
      • editGameInfo

        public static void editGameInfo()
      • saveFile

        public static void saveFile()
      • openFile

        public static void openFile()
      • loadFile

        public static void loadFile​(File file)
      • paint

        public void paint​(Graphics g0)
        Draws the game board and interface
        Overrides:
        paint in class Window
        Parameters:
        g0 - not used
      • refreshBackground

        public void refreshBackground()
        temporary measure to refresh background. ideally we shouldn't need this (but we want to release Lizzie 0.5 today, not tomorrow!). Refactor me out please! (you need to get blurring to work properly on startup).
      • getPlayoutsString

        public String getPlayoutsString​(int playouts)
        Returns:
        a shorter, rounded string version of playouts. e.g. 345 -> 345, 1265 -> 1.3k, 44556 -> 45k, 133523 -> 134k, 1234567 -> 1.2m
      • onClicked

        public void onClicked​(int x,
                              int y)
        Checks whether or not something was clicked and performs the appropriate action
        Parameters:
        x - x coordinate
        y - y coordinate
      • playCurrentVariation

        public boolean playCurrentVariation()
      • playBestMove

        public void playBestMove()
      • onMouseMoved

        public void onMouseMoved​(int x,
                                 int y)
      • isMouseOver

        public boolean isMouseOver​(int x,
                                   int y)
      • onMouseDragged

        public void onMouseDragged​(int x,
                                   int y)
      • processCommentMouseWheelMoved

        public boolean processCommentMouseWheelMoved​(MouseWheelEvent e)
        Process Comment Mouse Wheel Moved
        Returns:
        true when the scroll event was processed by this method
      • createCommentImage

        public void createCommentImage​(boolean forceRefresh,
                                       int w,
                                       int h)
        Create comment cached image
        Parameters:
        forceRefresh -
        w -
        h -
      • setPlayers

        public void setPlayers​(String whitePlayer,
                               String blackPlayer)
      • updateTitle

        public void updateTitle()
      • startRawBoard

        public void startRawBoard()
      • stopRawBoard

        public void stopRawBoard()
      • incrementDisplayedBranchLength

        public boolean incrementDisplayedBranchLength​(int n)
      • resetTitle

        public void resetTitle()
      • copySgf

        public void copySgf()
      • pasteSgf

        public void pasteSgf()
      • increaseMaxAlpha

        public void increaseMaxAlpha​(int k)