📄 baroncomponent.java
字号:
package barontools.changethecolor;
import javax.microedition.lcdui.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2007</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
public abstract class BaronComponent {
private String title = "component";
private boolean isShow=false;
public int xPosition=0,yPosition=0;
private int width=0,height=0;
private int transparency=0;
public abstract void paint(Graphics g);
public abstract void keyAction(int key);
public abstract void pointerAction(int x,int y);
public final int getWidth(){
return width;
}
public final int getHeight(){
return height;
}
public void setWidth(int w){
width=w;
}
public void setHeight(int h){
height=h;
}
public void setSize(int width,int height){
this.width=width;
this.height=height;
}
// public final int getPositionX(){
// return xPosition;
// }
// public final int getPositionY(){
// return yPosition;
// }
// public void setPosition(int x,int y){
// xPosition=x;
// yPosition=y;
// }
public final int getTransparency(){
return transparency;
}
public String getTitle() {
return title;
}
public final void setTransparency(int transp){
transparency=transp;
}
public void setTitle(String title) {
this.title = title;
}
public final boolean isShow(){
return isShow;
}
public final void setShow(boolean s){
isShow=s;
}
public String toString(){
return title;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -