|
|
|||||||||||
|
|
||||||||||||
Working with Resources : Defered Resources |
||||||||||||
Import the usual figue packages.
|
||||||||||||
import figue.*; import figue.box.*; import figue.path.*; |
import figue.resource.*; |
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')); |
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
|
The Whole Program
Related Classes
and Methods
What Next ?
Tutorial |
Previous |
Current |
Next |
|
Comments or suggestions? Need some help? Copyright ©1998 INRIA Last updated 4 November 1998 by Bruno Conductier |
|