org.microemu.device.j2se
Class J2SESoftButton
java.lang.Object
org.microemu.device.j2se.J2SEButton
org.microemu.device.j2se.J2SESoftButton
- All Implemented Interfaces:
- Button, SoftButton
public class J2SESoftButton
- extends J2SEButton
- implements SoftButton
|
Field Summary |
static int |
LEFT
|
static int |
RIGHT
|
|
Constructor Summary |
J2SESoftButton(int skinVersion,
java.lang.String name,
Rectangle paintable,
Image normalImage,
Image pressedImage)
|
J2SESoftButton(int skinVersion,
java.lang.String name,
Shape shape,
int keyCode,
java.lang.String keyboardKeys,
Rectangle paintable,
java.lang.String alignmentName,
java.util.Vector commands,
Font font)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LEFT
public static int LEFT
RIGHT
public static int RIGHT
J2SESoftButton
public J2SESoftButton(int skinVersion,
java.lang.String name,
Shape shape,
int keyCode,
java.lang.String keyboardKeys,
Rectangle paintable,
java.lang.String alignmentName,
java.util.Vector commands,
Font font)
- Parameters:
name - rectangle - keyCode - -
Integer.MIN_VALUE when unspecifiedkeyName - paintable - alignmentName - commands - font -
J2SESoftButton
public J2SESoftButton(int skinVersion,
java.lang.String name,
Rectangle paintable,
Image normalImage,
Image pressedImage)
getType
public int getType()
- Specified by:
getType in interface SoftButton
setCommand
public void setCommand(Command cmd)
- Sets the command attribute of the SoftButton object
- Specified by:
setCommand in interface SoftButton
- Parameters:
cmd - The new command value
getCommand
public Command getCommand()
- Gets the command attribute of the SoftButton object
- Specified by:
getCommand in interface SoftButton
- Returns:
- The command value
getPaintable
public Rectangle getPaintable()
- Specified by:
getPaintable in interface SoftButton
isVisible
public boolean isVisible()
- Specified by:
isVisible in interface SoftButton
setVisible
public void setVisible(boolean state)
- Specified by:
setVisible in interface SoftButton
isPressed
public boolean isPressed()
- Specified by:
isPressed in interface SoftButton
setPressed
public void setPressed(boolean state)
- Specified by:
setPressed in interface SoftButton
paint
public void paint(java.awt.Graphics g)
preferredCommandType
public boolean preferredCommandType(Command cmd)
- Specified by:
preferredCommandType in interface SoftButton
addCommandType
public void addCommandType(int commandType)
Copyright © 2001-2010 MicroEmulator Team. All Rights Reserved.