本文整理匯總了Java中org.microemu.app.Common類的典型用法代碼示例。如果您正苦於以下問題:Java Common類的具體用法?Java Common怎麽用?Java Common使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Common類屬於org.microemu.app包,在下文中一共展示了Common類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: mouseMoved
import org.microemu.app.Common; //導入依賴的package包/類
public void mouseMoved(MouseEvent e) {
if (showMouseCoordinates) {
StringBuffer buf = new StringBuffer();
Point p = deviceCoordinate(DeviceFactory.getDevice().getDeviceDisplay(), e.getPoint());
buf.append(p.x).append(",").append(p.y);
Common.setStatusBar(buf.toString());
}
}
示例2: mouseMoved
import org.microemu.app.Common; //導入依賴的package包/類
public void mouseMoved(MouseEvent e) {
if (showMouseCoordinates) {
StringBuffer buf = new StringBuffer();
if (mouseButtonDown) {
int width = e.getX() - pressedX;
int height = e.getY() - pressedY;
buf.append(pressedX).append(",").append(pressedY).append(" ").append(width).append("x").append(
height);
} else {
buf.append(e.getX()).append(",").append(e.getY());
}
Common.setStatusBar(buf.toString());
}
if (mouseButtonDown && pressedButton == null) {
return;
}
prevOverButton = overButton;
overButton = J2SEDeviceButtonsHelper.getSkinButton(e);
if (overButton != prevOverButton) {
// optimize for some video cards.
if (prevOverButton != null) {
MouseRepeatedTimerTask.mouseReleased();
pressedButton = null;
repaint(prevOverButton.getShape().getBounds());
}
if (overButton != null) {
repaint(overButton.getShape().getBounds());
}
} else if (overButton == null) {
MouseRepeatedTimerTask.mouseReleased();
pressedButton = null;
if (prevOverButton != null) {
repaint(prevOverButton.getShape().getBounds());
}
}
}
示例3: RecordStoreChangePanel
import org.microemu.app.Common; //導入依賴的package包/類
public RecordStoreChangePanel(Common common) {
this.common = common;
add(new JLabel("Record store type:"));
add(selectStoreCombo);
}