boardlistener.java

来自「设计一个软件的启动过程界面」· Java 代码 · 共 29 行

JAVA
29
字号
/** Interface for receiving GraphicalBoard events. Note that the events    must first be enabled using setResizable() and setClickable().        @see GraphicalBoard*/public interface BoardListener {    /** Invoked after the user has dragged the board to a new size. The size        of a KnightBoard object cannot be changed, so the current board should        be dispensed with and a new one of the correct size created.        @param new_width new width of the board in squares.        @param new_height new height of the board in squares.        @see GraphicalBoard#setResizable    */        public void boardResized(int new_width, int new_height);        /** Invoked when the user clicks on a square inside the board.        @param squarex x-index of the selected square.        @param squarey y-index of the selected square.        @see GraphicalBoard#setClickable    */        public void boardClicked(int squarex, int squarey);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?