instruction.java

来自「简单的多字符java动画,方便理解Multi-threaded 的概念.」· Java 代码 · 共 65 行

JAVA
65
字号
import java.awt.Color;
import java.awt.Font;

/*
 * Created on 28/04/2007
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */

/**
 * @author user
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Instruction
{
    Font
    	font = null;
    Color
    	color = null;
    String
    	strInstruc = null;
    int
    	xStart=0, 
    	yStart=0;
    
    public Instruction(Font f, String str, Color c, int x, int y)
    {
        this.font = f;
        this.strInstruc  = str;
        this.xStart =x;
        this.yStart = y;
        this.color = c;
        return;
    }
    
    public Font getFont()
    {
        return font;
    }
    
    public String getInstruction()
    {
        return strInstruc;
    }
    
    public int getX()
    {
        return xStart;
    }
    
    public int getY()
    {
        return yStart;
    }
    
    public Color getColor()
    {
        return this.color;
    }
    
}//End Instruction Class

⌨️ 快捷键说明

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