當前位置: 首頁>>代碼示例>>Java>>正文


Java Common類代碼示例

本文整理匯總了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());
	}
}
 
開發者ID:freeVM,項目名稱:freeVM,代碼行數:9,代碼來源:SwingDisplayComponent.java

示例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());
		}
	}
}
 
開發者ID:freeVM,項目名稱:freeVM,代碼行數:39,代碼來源:SwingDeviceComponent.java

示例3: RecordStoreChangePanel

import org.microemu.app.Common; //導入依賴的package包/類
public RecordStoreChangePanel(Common common) {
	this.common = common;

	add(new JLabel("Record store type:"));
	add(selectStoreCombo);
}
 
開發者ID:freeVM,項目名稱:freeVM,代碼行數:7,代碼來源:RecordStoreChangePanel.java


注:本文中的org.microemu.app.Common類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。