|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.Form
example.chooser.FontChooser
public class FontChooser
A Font chooser. This screen can be used to choose fonts. A form is used to select from the various choices for size, style, and face.
Field Summary | |
---|---|
(package private) int |
face
|
(package private) javax.microedition.lcdui.ChoiceGroup |
faceChoice
|
(package private) int |
size
|
(package private) javax.microedition.lcdui.ChoiceGroup |
sizeChoice
|
(package private) int |
style
|
(package private) javax.microedition.lcdui.ChoiceGroup |
styleChoice
|
Constructor Summary | |
---|---|
FontChooser()
Create a new font chooser form. |
Method Summary | |
---|---|
int |
getFace()
Get the face of font currently being displayed. |
int |
getSize()
Get the size of font currently being displayed. |
int |
getStyle()
Get the style of font currently being displayed. |
void |
itemStateChanged(javax.microedition.lcdui.Item item)
Reflect changes in the item states into the states. |
void |
setFace(int face)
Set the Face of font to display. |
void |
setSize(int size)
Set the Size of font to display. |
void |
setStyle(int style)
Set the Style of font to display. |
Methods inherited from class javax.microedition.lcdui.Form |
---|
append, append, append, delete, deleteAll, get, getHeight, getWidth, insert, set, setItemStateListener, size |
Methods inherited from class javax.microedition.lcdui.Displayable |
---|
addCommand, getTicker, getTitle, isShown, removeCommand, setCommandListener, setTicker, setTitle, sizeChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int face
int style
int size
javax.microedition.lcdui.ChoiceGroup faceChoice
javax.microedition.lcdui.ChoiceGroup styleChoice
javax.microedition.lcdui.ChoiceGroup sizeChoice
Constructor Detail |
---|
public FontChooser()
Method Detail |
---|
public void setStyle(int style)
style
- the style to selectFont.getStyle()
public int getStyle()
Font.getStyle()
public void setFace(int face)
face
- the face to selectFont.getFace()
public int getFace()
Font.getFace()
public void setSize(int size)
size
- of the font to setFont.getSize()
public int getSize()
Font.getSize()
public void itemStateChanged(javax.microedition.lcdui.Item item)
itemStateChanged
in interface javax.microedition.lcdui.ItemStateListener
item
- that to which some change occurred
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |