|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpalmed.edit.LineDrawer
public final class LineDrawer
This class handles the mechanics of drawing a given line of text.
Constructor Summary | |
---|---|
LineDrawer(IFont font,
int width)
Create a line drawer. |
Method Summary | |
---|---|
void |
configure(javax.microedition.lcdui.Graphics graphics,
int y)
Configure the drawer context. |
void |
visit(java.lang.String text,
int start,
int end,
boolean continues)
Handle a line of text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineDrawer(IFont font, int width)
font
- the fontwidth
- the number of characters to draw on each lineMethod Detail |
---|
public void configure(javax.microedition.lcdui.Graphics graphics, int y)
graphics
- the graphics contexty
- the line numberpublic void visit(java.lang.String text, int start, int end, boolean continues)
visit
in interface ILineVisitor
text
- the contentstart
- the selection start positionend
- the selection end positioncontinues
- whether the selection continues on the next line or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |