Sun Microsystems Computer Accessories manual Appendix a Default Emulator Device Property Files

Page 61

screenPixelRatio.x = 1 screenPixelRatio.y = 1

#Touchscreen support

###############

touch_screen=false

#Screen Background RGB Color

#examples: 0xffffff = white, 0x000000 = black

###############

screenBGColor=0x8f9f8f

#Screen border RGB color is a color of softbuttons and icons

#area. If not defined, screen background color is used

#example: screenBorderColor = 0xf0f0f

###############

screenBorderColor=0xb6b6aa

#Transparency support

#SRC_OVER alpha composition rule

#supported by deafult

###############

enableAlphaChannel=true

netindicator.image: ../Share/indicator.png

netindicator.bounds: 17, 82, 19, 19

button.0 = 98, 578, 47, 35 button.1 = 33, 459, 45, 35 button.2 = 98, 464, 47, 30 button.3 = 166, 459, 45, 35 button.4 = 36, 498, 45, 35 button.5 = 98, 503, 47, 30 button.6 = 162, 498, 45, 35 button.7 = 43, 537, 47, 35 button.8 = 98, 542, 47, 30 button.9 = 154, 537, 47, 35

button.POUND = 151, 578, 45, 29 button.ASTERISK = 48, 578, 45, 30

button.SEND = 24, 384, 39, 39 button.END = 181, 384, 39, 39 button.LEFT = 71, 352, 26, 63 button.RIGHT = 147, 352, 26, 63 button.UP = 97, 348, 50, 22

Appendix A Default Emulator Device Property Files 47

Image 61
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 How This Book Is Organized Who Should Use This BookUsing Operating System Commands Shell Prompts Typographic ConventionsRelated Documentation Sun Welcomes Your Comments Accessing Sun Documentation OnlineHow to Customize the Wireless Toolkit Customizing the Wireless ToolkitCustomization Steps Device Property Files and the Default EmulatorCustomizing the Wireless Toolkit Wireless Toolkit Basic Customization Guide December Make a Copy of an Existing Main Device Property File Creating Device Property FilesObtain and Enter Image Files Screen Location Obtain and Enter the Screen PropertiesDisplay Area Total Screen SizeSpecifying Screen Properties Display Area in Full Screen ModeBy measuring the image file, obtain the button properties Obtain and Enter the Button PropertiesHeight Width Obtain and Enter Soft Button Label Areas Soft button label display is defined by a line of the form Defining the Icon Location and States Obtain and Enter Icon PropertiesEnter 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 Device Image Font UnderliningImage with Buttons Pressed Image without Buttons PressedImage with Buttons Highlighted and Backlight On ScalingScreen Properties Screen Location Total Screen Size Display Area in Full Screen ModeDisplay Area Screen Background Color Screen Pixel RatioTouch 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 Specifying the Characters Generated by a Button Press Assigning a Game Action to a ButtonAbstract Command Types in Order of Precedence Assigning Abstract Commands to ButtonsEmulating Abstract Command Button Assignments Precedence of Assigning Commands to a Button Secondary Button Assignments Abstract Command Menu Defining the Icon Location and States Displayed IconsSoft Button Labels on the Emulated Device Display Soft Button Label DisplaySound Alerts ColorAlert Type Values Device Software CapabilitiesCharacter Encodings LocalesTransparent Images EnableAlphaChannel falseWireless Toolkit Basic Customization Guide December Property Files Default Emulator Device 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 Icon Image Files Device Image FilesIcon Image Files Adding a ByteCode Obfuscator Support for ByteCode ObfuscatorsExample 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