final GlyphInterface theFirstContext
= new ChangeGraphicalContextAnonymous("italic",
"blue",
null);
final GlyphInterface theLine = new Horizontal(10);
theFirstContext.addChild(theLine);
theLine.addChild(Atom.newAtom("It's"));
theLine.addChild(Atom.newAtom('a'));
Define the named resources before applying the modification.
final GlyphInterface theBox = buildBox();
initResources();
PathInterface thePath = new Path();
thePath.addOperation(new InsertGlyph(theBox,0));
_facade.buildInit(thePath);
_facade.buildComplete();
...
private final void initResources() {
try {
_facade.doGetFont("italic",FontFamily.TIMES_ROMAN,
FontStyle.BOLD_ITALIC,24,false);
_facade.doGetFont("big font",FontFamily.COURIER,
FontStyle.BOLD,46,false);
_facade.doGetColor("red",BasicColor.RED);
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.