Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0

Get PDF Book Print View

Document Information

Getting Started

Java ME Platform SDK Features

Using Sample Projects

Creating and Editing Projects

Viewing and Editing Project Properties

Running Projects in the Emulator

Searching the WURFL Device Database

Finding Files in the Multiple User Environment

Profiling Applications

Monitoring Network Traffic

Lightweight UI Toolkit

Security and MIDlet Signing

BD-J Support

CLDC Emulation on a Windows Mobile Device

Installing CLDC Emulation on a Windows Mobile Emulator

On-device Debugging

Command Line Reference


JSR Support

JSR 75: PDA Optional Packages

JSR 82: Bluetooth and OBEX Support

JSR 135: Mobile Media API Support

JSR 172: Web Services Support

JSR 177: Smart Card Security (SATSA)

JSR 179: Location API Support

JSRs 184, 226, and 239: Graphics Capabilities

Mobile 3D Graphics (JSR 184)

Choosing a Graphics Mode

Immediate Mode

Retained Mode

Quality Versus Speed

Content for Mobile 3D Graphics

Running Demo3D Samples




Java Bindings for OpenGL ES (JSR 239)

Scalable 2D Vector Graphics (JSR 226)

Running SVGDemo

SVG Browser

Render SVG Image

Play SVG Animation

Create SVG Image from Scratch

Bouncing Balls

Optimized Menu

Picture Decorator

Location Based Service


Running SVGContactList

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

JSR 238: Mobile Internationalization API (MIA)

JSR 229: Payment API Support

JSR 256: Mobile Sensor API Support


Picture Decorator

In this sample you use the phone keys to add decorations to a photograph. The key values are:

key shrink
key next picture
key grow
key help
key horizontal flip
ley vertical flip
key rotate counter-clockwise
key previous picture
key rotate clockwise
display picker options

This demo provides 16 pictures for you to decorate.

Use the 2 and 8 keys to page forward and back through the photos.

To decorate, press # to display the picker. Use the arrow keys to highlight a graphic object. The highlighted object is enlarged. Press Select to choose the current graphic or press the arrow keys to highlight a different graphic. Press Select again to add the graphic to the photo. When the decoration is added you see a red + on the graphic. This means it is selected and can be moved, resized, and manipulated.

Picture of Duke mug with Duke decoration, mustache, and selected quotation.

Use the navigation arrows to move the graphic. Use 1 to shrink the graphic, and 3 to enlarge the graphic. Use 5 or 6 to flip, and 7 or 9 to rotate. When you are satisfied with the position, press Select. Note that a green triangle appears. This is a cursor. Use the navigation keys to move the green triangle around the picture. When the cursor is over an object it is highlighted with a red box. Press Select. The red + indicates the object is selected.

Picture of Duke mug with Duke decoration, quote, and highlighted mustache.

To remove a decoration (a property), select an object, then click the Menu soft key. Press 2 to remove a property.