Class BoardPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BoardPane extends LizziePane
The window used to display the game.
See Also:
  • Field Details

    • mouseOverCoordinate

      public int[] mouseOverCoordinate
  • Constructor Details

    • BoardPane

      public BoardPane(LizzieMain owner)
      Creates a window
  • Method Details

    • clear

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

      protected void paintComponent(Graphics g0)
      Draws the game board and interface
      Overrides:
      paintComponent in class JComponent
      Parameters:
      g0 - not used
    • 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
    • onDoubleClicked

      public void onDoubleClicked(int x, int y)
    • clearMoved

      public void clearMoved()
    • onMouseExited

      public void onMouseExited(int x, int y)
    • onMouseMoved

      public void onMouseMoved(int x, int y)
    • playCurrentVariation

      public boolean playCurrentVariation()
    • playBestMove

      public void playBestMove()
    • isMouseOver

      public boolean isMouseOver(int x, int y)
    • setDisplayedBranchLength

      public void setDisplayedBranchLength(int n)
    • startRawBoard

      public void startRawBoard()
    • stopRawBoard

      public void stopRawBoard()
    • incrementDisplayedBranchLength

      public boolean incrementDisplayedBranchLength(int n)
    • doBranch

      public void doBranch(int moveTo)
    • addSuggestionAsBranch

      public void addSuggestionAsBranch()
    • copySgf

      public void copySgf()
    • pasteSgf

      public void pasteSgf()
    • increaseMaxAlpha

      public void increaseMaxAlpha(int k)
    • replayBranch

      public void replayBranch(boolean generateGif)
    • updateStatus

      public void updateStatus()
    • removeEstimateRect

      public void removeEstimateRect()
    • drawEstimateRect

      public void drawEstimateRect(ArrayList<Double> estimateArray, boolean isZen)
    • saveImage

      public void saveImage()
    • convertScreenToCoordinates

      public Optional<int[]> convertScreenToCoordinates(int x, int y)