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

📄 transfobject.java

📁 一个用Java编程 Applet 实现的电子白板
💻 JAVA
字号:
package TransfObject;
import java.io.*;
import java.awt.*;
import java.util.*;
public class TransfObject implements Serializable
{ 
	private int startX,startY,endX,endY,mode,type;
	private boolean isFill,canUsed;
	private Color color;
	private String text,classID,className,courseName,courseID;
    private Vector points;
	private Vector polyPoints;
	//public TextFont text;

	public TransfObject()
	{
		this.startX=0;
		this.startY=0;
		this.endX=0;
		this.endY=0;
		this.mode=-1;
		this.isFill=false;
		this.color=Color.black;
		this.text=new String();
		this.polyPoints=new Vector();
		this.points=new Vector();
		this.type=-1;
		this.canUsed=false;
		this.classID="0";
		this.className="";
		this.courseID="0";
		this.courseName="";
	}

	public TransfObject(int startX,int startY,int endX,int endY,int mode,boolean isFill,Color color,Vector polyPoints,Vector points,int type,
		boolean canUsed,String classID,String className,String courseID,String courseName)
	{
		this.startX=startX;
		this.startY=startY;
		this.endX=endX;
		this.endY=endY;
		this.mode=mode;
		this.isFill=isFill;
		this.color=color;
		this.polyPoints=polyPoints;
		this.points=points;
		this.type=type;
		this.canUsed=canUsed;
		this.classID=classID;
		this.className=className;
		this.courseID=courseID;
		this.courseName=courseName;
	}
    //设置属性参数值
	public void setStartX(int startX)
	{
		this.startX=startX;
	}
	public void setStartY(int startY)
	{
		this.startY=startY;
	}
	public void setEndX(int endX)
	{
		this.endX=endX;
	}
	public void setEndY(int endY)
	{
		this.endY=endY;
	}
	public void setMode(int mode)
	{
		this.mode=mode;
	}
	public void setFill(boolean isFill)
	{
		this.isFill=isFill;
	}
	public void setColor(Color color)
	{
		this.color=color;
	}
	public void setPolyPoints(Vector polyPoints)
	{
		this.polyPoints=polyPoints;
	}
	public void setPoints(Vector points)
	{
		this.points=points;
	}
	public void setText(String text)
	{
		this.text=text;
	}
	public void setClassID(String text)
	{
		this.classID=text;
	}
	public void setClassName(String text)
	{
		this.className=text;
	}
	public void setCourseID(String text)
	{
		this.courseID=text;
	}
	public void setCourseName(String text)
	{
		this.courseName=text;
	}
 	public void setType(int type)
	{
		this.type=type;
	}

 	public void setCanUsed(boolean type)
	{
		this.canUsed=type;
	}

   //取属性参数值
	public boolean getCanUsed()
	{
		return this.canUsed;
	}
	public int getType()
	{
		return this.type;
	}
	public int getStartX()
	{
		return this.startX;
	}
	public int getStartY()
	{
		return this.startY;
	}
	public int getEndX()
	{
		return this.endX;
	}
	public int getEndY()
	{
		return this.endY;
	}
	public int getMode()
	{
		return this.mode;
	}
	public boolean getFill()
	{
		return this.isFill;
	}
	public Color getColor()
	{
		return this.color;
	}
	public String getText()
	{
		return this.text;
	}
	public String getClassID()
	{
		return this.classID;
	}
	public String getClassName()
	{
		return this.className;
	}
	public String getCourseID()
	{
		return this.courseID;
	}
	public String getCourseName()
	{
		return this.courseName;
	}
	public Vector getPolyPoints()
	{
		return this.polyPoints;
	}
	public Vector getPoints()
	{
		return this.points;
	}
   /*public TextFont getText()
	{
		return this.text;
	}
	*/
}

⌨️ 快捷键说明

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