Just An Application

July 22, 2009

What’s New In MIDP 3.0 ? Part 31: LCDUI – Text

Filed under: Java, JME, LCDUI, MIDP, MIDP3, MIDP3LCDUI — Tags: , , , , , , — Simon Lewis @ 8:59 pm

A Text object is a mutable text container with the ability to layout it’s contents.

In addition to the text it contains, it has the following attributes, all of which can be set by a MIDlet as required.

  • the width and height of the rectangle within which to layout it’s contents

  • the initial text layout direction

  • the text alignment

  • the paragraph start indentation level

  • the space in pixels above each line of text

  • the space in pixels below each line of text

  • the background colour

  • the default foreground colour

  • the default Font

  • the position and length of the currently highlighted text, if any

  • the current position, if any, of the caret</p

The colour and Font used to render text can also be set on a section by section basis if required.

The contents of a Text object can be rendered to a Graphics object which means that it can be used in conjunction with a Canvas, CustomItem, IdleItem or mutable Image.

Copyright (c) 2009 By Simon Lewis. All Rights Reserved


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: