android.inputmethodservice
Class Keyboard.Key

java.lang.Object
  extended by android.inputmethodservice.Keyboard.Key
Enclosing class:
Keyboard

public static class Keyboard.Key
extends Object


Field Summary
 int[] codes
           
 int edgeFlags
           
 int gap
           
 int height
           
 Drawable icon
           
 Drawable iconPreview
           
 CharSequence label
           
 boolean modifier
           
 boolean on
           
 CharSequence popupCharacters
           
 int popupResId
           
 boolean pressed
           
 boolean repeatable
           
 boolean sticky
           
 CharSequence text
           
 int width
           
 int x
           
 int y
           
 
Constructor Summary
Keyboard.Key(Keyboard.Row parent)
           
Keyboard.Key(Resources res, Keyboard.Row parent, int x, int y, XmlResourceParser parser)
           
 
Method Summary
 int[] getCurrentDrawableState()
           
 boolean isInside(int x, int y)
           
 void onPressed()
           
 void onReleased(boolean inside)
           
 int squaredDistanceFrom(int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

codes

public int[] codes

label

public CharSequence label

icon

public Drawable icon

iconPreview

public Drawable iconPreview

width

public int width

height

public int height

gap

public int gap

sticky

public boolean sticky

x

public int x

y

public int y

pressed

public boolean pressed

on

public boolean on

text

public CharSequence text

popupCharacters

public CharSequence popupCharacters

edgeFlags

public int edgeFlags

modifier

public boolean modifier

popupResId

public int popupResId

repeatable

public boolean repeatable
Constructor Detail

Keyboard.Key

public Keyboard.Key(Keyboard.Row parent)

Keyboard.Key

public Keyboard.Key(Resources res,
                    Keyboard.Row parent,
                    int x,
                    int y,
                    XmlResourceParser parser)
Method Detail

onPressed

public void onPressed()

onReleased

public void onReleased(boolean inside)

isInside

public boolean isInside(int x,
                        int y)

squaredDistanceFrom

public int squaredDistanceFrom(int x,
                               int y)

getCurrentDrawableState

public int[] getCurrentDrawableState()


Copyright © 2008-2012. All Rights Reserved.