Sun Microsystems Computer Accessories manual Keyboard.handler property

Page 76

font_image property, 21

G

game actions, mapping to buttons, 32 generated characters, assigning to buttons, 32

I

icons

setting initial state, 14 setting properties, 14 setting screen location, 14

image files

creating and modifying, 6 formats, 23

isColor property, 40

K

keyboard keys, setting to buttons, 31

keyboard.handler property, 29

M

Main Device Property file, 2 path, 19

N

NewPhone tutorial, 5

O

order of preference, button assignment, 35

P

plug-in for code obfuscator, 55 ProGuard byte code obfuscator, 55 proguard.jar, 57

R

RetroGuard byte code obfuscator, 55

S

screen icons, 38 definition, 38

setting initial state of, 38 setting location, 38

screen properties, 24 background color, 27 buffering, 28 defining display area, 8 display area, 26

full screen display area, 27 location, 25

pixel size ratio, 27 setting location, 7 setting screen size, 8 size, 26

touch screen, 28 screenBGColor property, 27

screenDoubleBuffer property, 28

screenPixelRatio property, 27

secondary button assignments, 36 soft buttons

label display, 39 setting properties, 12

sound alert types, table of, 41 sound file formats, 41 sound properties, 40 system font definition, 20

T

touch_screen property, 28

transparent images, use of, 43

U

underlined fonts, 22

W

Wireless Messaging API (WMA), 59 Wireless Toolkit

62 Wireless Toolkit Basic Customization Guide • December 2003

Image 76
Contents Basic Customization Guide Please Contents Examining Device Property Files Default Emulator Device Property Files Vi Wireless Toolkit Basic Customization Guide December Figures Viii Wireless Toolkit Basic Customization Guide December Tables Wireless Toolkit Basic Customization Guide December Who Should Use This Book How This Book Is OrganizedUsing Operating System Commands Shell Prompts Typographic ConventionsRelated Documentation Accessing Sun Documentation Online Sun Welcomes Your CommentsCustomizing the Wireless Toolkit How to Customize the Wireless ToolkitDevice Property Files and the Default Emulator Customization StepsCustomizing the Wireless Toolkit Wireless Toolkit Basic Customization Guide December Creating Device Property Files Make a Copy of an Existing Main Device Property FileObtain and Enter Image Files Obtain and Enter the Screen Properties Screen LocationTotal Screen Size Display AreaDisplay Area in Full Screen Mode Specifying Screen PropertiesObtain and Enter the Button Properties By measuring the image file, obtain the button propertiesHeight Width Obtain and Enter Soft Button Label Areas Soft button label display is defined by a line of the form Obtain and Enter Icon Properties Defining the Icon Location and StatesEnter the following measured values for the icons properties Run the Emulator for the New Device Enter Color PropertiesScreen Background RGB Color Examining Device Property Files Device Property Files Fonts Main Device Property FileFonts Used by the Midp APIs System Fonts Default FontBitmap Fonts Ascii character Distance to character Font Underlining Device ImageImage without Buttons Pressed Image with Buttons PressedImage with Buttons Highlighted and Backlight On ScalingScreen Properties Screen Location Total Screen Size Display Area in Full Screen ModeDisplay Area Screen Pixel Ratio Screen Background ColorTouch Screen Screen Border ColorScreen Buffering Keyboard Handler Device ButtonsDefining a Device Button Button.LEFT = 13, 197, 20 Assigning a PC Keyboard Key to a Button Assigning a Game Action to a Button Specifying the Characters Generated by a Button PressAssigning Abstract Commands to Buttons Abstract Command Types in Order of PrecedenceEmulating Abstract Command Button Assignments Precedence of Assigning Commands to a Button Secondary Button Assignments Abstract Command Menu Displayed Icons Defining the Icon Location and StatesSoft Button Label Display Soft Button Labels on the Emulated Device DisplayColor Sound AlertsDevice Software Capabilities Alert Type ValuesLocales Character EncodingsEnableAlphaChannel false Transparent ImagesWireless Toolkit Basic Customization Guide December Default Emulator Device Property Files Property FilesDefaultGrayPhone.properties Appendix a Default Emulator Device Property Files Wireless Toolkit Basic Customization Guide December Appendix a Default Emulator Device Property Files Wireless Toolkit Basic Customization Guide December # alert.alerttype.sound soundfile Wireless Toolkit Basic Customization Guide December Device Image Files Icon Image FilesIcon Image Files Support for ByteCode Obfuscators Adding a ByteCode ObfuscatorExample Appendix B Support for ByteCode Obfuscators Wireless Toolkit Basic Customization Guide December P E N D I X C Wireless Toolkit Basic Customization Guide December Index Keyboard.handler property Device property files, 1 WMA messages, customizing Wireless Toolkit Basic Customization Guide December