|
|
|
|
More Constructs : Formatting with Paragraphs
|
|
Step by Step
Create a paragraph with the expected interword, interline and indentation.
| final GlyphInterface theParagraph = new Paragraph(5,50,5); |
Push some atoms in the paragraph.
| theParagraph.addChild(Atom.newAtom("It's"));
theParagraph.addChild(Atom.newAtom('a'));
theParagraph.addChild(Atom.newAtom("wonderful"));
theParagraph.addChild(Atom.newAtom("world")); |
Apply the modification to the facade.
| PathInterface thePath = new Path();
thePath.addOperation(new InsertGlyph(theParagraph,0));
_facade.buildInit(thePath);
_facade.buildComplete(); |
|
|
Example
- Accelerators :
- home, end, page up, page down, left arrow,right arrow, up arrow, down arrow.
- Autoscrolling :
- drag the mouse inside the
text area, approach a border or a corner, and wait.
|
|
|
Related Classes
and Methods
|
|
|
What Next ?
Now you can :
|
|
|
|
|
|
|
|
|