⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 itypedrawcommand.java

📁 画图程序
💻 JAVA
字号:
package LYD.Draw;

import java.awt.Graphics;
import java.awt.Cursor;
import java.awt.event.MouseEvent;
import java.awt.Color;

public interface ITypeDrawCommand
{
	public void ReDo(Graphics g);
	
	public void UnDo();
	
	public void setWidth(int w);
	
	public void setColor(Color c);
	
	public Color getColor();
	
	//set the object of Graphics the [ITypeDrawCommand] needs
	public void setGraphics(Graphics g);
	
	//set the style of the line
	public void setType(int type);
	
	public Cursor getCursor();
	
	//the follow is the functions that handle the mouse events
	public void mouseReleased(MouseEvent e);
	
	public void mousePressed(MouseEvent e);
	
	public void mouseExited(MouseEvent e);
	
	public void mouseEntered(MouseEvent e);
	
	public void mouseClicked(MouseEvent e);
	
	public void mouseMoved(MouseEvent e);
	
	public void mouseDragged(MouseEvent e);
	
}

⌨️ 快捷键说明

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