📄 mouse.java
字号:
package com.wiziflow.gui;import javax.swing.*;import java.awt.*;public class Mouse { //开始鼠标 public static final int START=1; //结束鼠标 public static final int END=2; //画线鼠标 public static final int LINE=3; //活动鼠标 public static final int ACTIVITY=4; //正常鼠标 public static final int NORMAL=0; //当前状态,缺省为正常鼠标 public static int STATE=0; //当前JLayeredPane public static JLayeredPane layeredPane=null; //改变鼠标当前状态信息,同时鼠标形状发生变化 public static void setState(int state) { STATE=state; switch(state) { case LINE: layeredPane.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR)); break; default: layeredPane.setCursor(Cursor.getDefaultCursor()); } } //设置工作区对象 public static void setPane(JLayeredPane pane) { layeredPane=pane; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -