polish的devices参数使用参考

Sagem/MyX5-2

 

Display

PropertyValuePreprocessing Access
Screen-Size (width x height)128x160polish.ScreenSize, polish.ScreenWidth, polish.ScreenHeight
Canvas-Size (width x height)128x128polish.CanvasSize, polish.CanvasWidth, polish.CanvasHeight
Canvas-Size in fullscreen mode128x142polish.FullCanvasSize, polish.FullCanvasWidth, polish.FullCanvasHeight
Bits per Pixel16
(65,536 colors)
polish.BitsPerPixel
Has Pointer Events (Stylus)nopolish.hasPointerEvents

Platform

PropertyValuePreprocessing Access
VendorSagempolish.Vendor
OSWindows Mobile 2003polish.OS
PlatformMIDP/2.0, JTWI/1.0polish.JavaPlatform, polish.midp2
ConfigurationCLDC/1.0polish.JavaConfiguration, polish.cldc1.0
Supported APIsmmapi, mmapi1.1, wmapipolish.JavaPackage, polish.api.mmapi, polish.api.mmapi1.1, polish.api.wmapi
Meets the Recommended Capablities for the J2ME Polish GUIyes  --

Memory

PropertyValuePreprocessing Variable
Heap-Size512 kbpolish.HeapSize

Keys

KeyValuePreprocessing Variable
Left Soft Key-6polish.key.LeftSoftKey
Right Soft Key-7polish.key.RightSoftKey

Groups

Groups can be used to assemble the resources (like images or sound-files) for an application.
Have a look at the documentation for more info.

GroupResource Folder
midp2resources/midp2
jtwiresources/jtwi
mmapiresources/mmapi
mmapi1.1resources/mmapi1.1
wmapiresources/wmapi
ScreenSize.128x160resources/ScreenSize.128x160
CanvasSize.128x128resources/CanvasSize.128x128
FullCanvasSize.128x142resources/FullCanvasSize.128x142
BitsPerPixel.4+resources/BitsPerPixel.4+
BitsPerPixel.8+resources/BitsPerPixel.8+
BitsPerPixel.12+resources/BitsPerPixel.12+
BitsPerPixel.16+resources/BitsPerPixel.16+
BitsPerPixel.16resources/BitsPerPixel.16

Preprocessing Capabilities

Capabilities can be used with the "//#=" preprocessing directive and can be compared with the "//#if" directive. For each defined capability a preprocessing symbol with the same name will be defined.
Have a look at the preprocessing documentation for more information.

Examples:

//#if polish.Vendor == Sagem
 // this is a Sagem device
//#endif
//#ifdef polish.ScreenWidth:defined
 //#= int screenWidth = ${ polish.ScreenWidth };
//#else
 int screenWidth = UNKNOWN_WIDTH;
//#endif
CapabilityValue
polish.bitsperpixel16
polish.build.bootclasspathmidp-2.0.jar, cldc-1.0.jar
polish.build.implicitgroupsjtwi
polish.cameraresolution640x480
polish.camerazoom4
polish.canvasheight128
polish.canvassize128x128
polish.canvaswidth128
polish.fullcanvasheight142
polish.fullcanvassize128x142
polish.fullcanvaswidth128
polish.heapsize512 kb
polish.identifierSagem/MyX5-2
polish.imageformatpng, gif, gif87, gif89, jpg, jpeg, bmp
polish.javaconfigurationCLDC/1.0
polish.javapackagemmapi-1.1, wmapi
polish.javaplatformMIDP/2.0, JTWI/1.0
polish.key.leftsoftkey-6
polish.key.rightsoftkey-7
polish.nameMyX5-2
polish.osWindows Mobile 2003
polish.screenheight160
polish.screensize128x160
polish.screenwidth128
polish.supportfloatingpointfalse
polish.vendorSagem

Preprocessing Symbols

Symbols can be evaluated with the "//#ifdef" and related preprocessing directives.
Have a look at the preprocessing documentation for more information.

Example:

//#if polish.api.mmapi || polish.midp2
 // this device supports the Mobile Media API
//#endif
Symbol
polish.api.mmapi
polish.api.mmapi1.1
polish.api.wmapi
polish.bitsperpixel.16
polish.bitsperpixel:defined
polish.build.bootclasspath.cldc-1.0.jar
polish.build.bootclasspath.midp-2.0.jar
polish.build.bootclasspath:defined
polish.build.implicitgroups.jtwi
polish.build.implicitgroups:defined
polish.cameraresolution.640x480
polish.cameraresolution:defined
polish.camerazoom.4
polish.camerazoom:defined
polish.canvasheight:defined
polish.canvassize.128x128
polish.canvassize:defined
polish.canvaswidth:defined
polish.cldc
polish.cldc1.0
polish.doublebuffering
polish.fullcanvasheight:defined
polish.fullcanvassize.128x142
polish.fullcanvassize:defined
polish.fullcanvaswidth:defined
polish.hascamera
polish.hascommandkeyevents
polish.heapsize.512 kb
polish.heapsize:defined
polish.identifier.sagem/myx5-2
polish.identifier:defined
polish.imageformat.bmp
polish.imageformat.gif
polish.imageformat.gif87
polish.imageformat.gif89
polish.imageformat.jpeg
polish.imageformat.jpg
polish.imageformat.png
polish.imageformat:defined
polish.javaconfiguration.cldc/1.0
polish.javaconfiguration:defined
polish.javapackage.mmapi-1.1
polish.javapackage.wmapi
polish.javapackage:defined
polish.javaplatform.jtwi/1.0
polish.javaplatform.midp/2.0
polish.javaplatform:defined
polish.jtwi
polish.key.leftsoftkey.-6
polish.key.leftsoftkey:defined
polish.key.rightsoftkey.-7
polish.key.rightsoftkey:defined
polish.midp
polish.midp2
polish.name.myx5-2
polish.name:defined
polish.os.windows mobile 2003
polish.os:defined
polish.screenheight:defined
polish.screensize.128x160
polish.screensize:defined
polish.screenwidth:defined
polish.supportfloatingpoint.false
polish.supportfloatingpoint:defined
polish.supportspolishgui
polish.vendor.sagem
polish.vendor:defined
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
编译原理是计算机专业的一门核心课程,旨在介绍编译程序构造的一般原理和基本方法。编译原理不仅是计算机科学理论的重要组成部分,也是实现高效、可靠的计算机程序设计的关键。本文将对编译原理的基本概念、发展历程、主要内容和实际应用进行详细介绍编译原理是计算机专业的一门核心课程,旨在介绍编译程序构造的一般原理和基本方法。编译原理不仅是计算机科学理论的重要组成部分,也是实现高效、可靠的计算机程序设计的关键。本文将对编译原理的基本概念、发展历程、主要内容和实际应用进行详细介绍编译原理是计算机专业的一门核心课程,旨在介绍编译程序构造的一般原理和基本方法。编译原理不仅是计算机科学理论的重要组成部分,也是实现高效、可靠的计算机程序设计的关键。本文将对编译原理的基本概念、发展历程、主要内容和实际应用进行详细介绍编译原理是计算机专业的一门核心课程,旨在介绍编译程序构造的一般原理和基本方法。编译原理不仅是计算机科学理论的重要组成部分,也是实现高效、可靠的计算机程序设计的关键。本文将对编译原理的基本概念、发展历程、主要内容和实际应用进行详细介绍编译原理是计算机专业的一门核心课程,旨在介绍编译程序构造的一般原理和基本

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值