📄 displayableblock.java
字号:
package com.ismyway.fairyui;
import javax.microedition.lcdui.Graphics;
public abstract class DisplayableBlock extends Component {
public DisplayableBlock() {
}
public boolean keyReleased(int key) {
return false;
}
public boolean keyRepeated(int key) {
return false;
}
public void paint(Graphics g, int adjustx, int adjusty) {
}
public void validate() {
}
public boolean isPointerIn(int x, int y) {
if (x > getLeft() && x < getLeft() + getWidth() && y > getTop()
&& y < getTop() + getHeight()) {
return true;
}
return false;
}
/**
*
* @param width
* @param rect 当前的可用区域 int[4] = {left, top, width, height}
*/
abstract public void putInSequence(int[] rect, int width);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -