FIGUE
*Tutorial *Previous *Current *Next

Getting Started : Creating a Line

* Step by Step

Import the usual figue packages.
import figue.*;
import figue.box.*;
import figue.path.*;
Create a line with the expected interword.
final GlyphInterface theLine = new Horizontal(20);
Push some atoms in the line.
theLine.addChild(Atom.newAtom("It's"));
theLine.addChild(Atom.newAtom('a'));
theLine.addChild(Atom.newAtom("wonderful"));
theLine.addChild(Atom.newAtom("life"));
theLine.addChild(Atom.newAtom("!!"));
Apply the modification to the facade.
PathInterface thePath = new Path();
thePath.addOperation(new InsertGlyph(theLine,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.

* The Whole Program

* Related Classes and Methods

* What Next ?

Now you can :
  • continue on this lesson to learn about columns
  • learn more about :
    • [PENDING : links to related issue]
  • go back to the table of contents

*Tutorial *Previous *Current *Next

Comments or suggestions?
Need some help?
Copyright ©1998 INRIA
Last updated 4 November 1998 by Bruno Conductier
FIGUE