org.microemu.device.j2se
Class J2SESoftButton

java.lang.Object
  extended by org.microemu.device.j2se.J2SEButton
      extended by 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
           
 
Fields inherited from interface org.microemu.device.impl.SoftButton
TYPE_COMMAND, TYPE_ICON
 
Fields inherited from interface org.microemu.device.impl.Button
NAME_RIMARY_SINCE_SKIN_VERSION
 
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)
           
 
Method Summary
 void addCommandType(int commandType)
           
 Command getCommand()
          Gets the command attribute of the SoftButton object
 Rectangle getPaintable()
           
 int getType()
           
 boolean isPressed()
           
 boolean isVisible()
           
 void paint(java.awt.Graphics g)
           
 boolean preferredCommandType(Command cmd)
           
 void setCommand(Command cmd)
          Sets the command attribute of the SoftButton object
 void setPressed(boolean state)
           
 void setVisible(boolean state)
           
 
Methods inherited from class org.microemu.device.j2se.J2SEButton
getChars, getFunctionalName, getKeyboardCharCodes, getKeyboardKey, getKeyboardKeyCodes, getKeyCode, getName, getShape, isChar, isModeChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.microemu.device.impl.SoftButton
getName
 

Field Detail

LEFT

public static int LEFT

RIGHT

public static int RIGHT
Constructor Detail

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 unspecified
keyName -
paintable -
alignmentName -
commands -
font -

J2SESoftButton

public J2SESoftButton(int skinVersion,
                      java.lang.String name,
                      Rectangle paintable,
                      Image normalImage,
                      Image pressedImage)
Method Detail

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.