FIGUE
*Tutorial *Previous *Current *Next

Working with Resources : Customization of Default Resources

* Step by Step

Import the usual figue packages.
import figue.*;
import figue.box.*;
import figue.path.*;
Import the resource package.
import figue.resource.*;
Create the relevant resources for the reserved names.
private final void initResources() {
  try {
    _facade.doGetFont(Constants.DEFAULT_FONT,
                      FontFamily.TIMES_ROMAN,
                      FontStyle.BOLD,26,false);
    _facade.doGetColor(Constants.DEFAULT_COLOR,
                       BasicColor.GREEN);
    _facade.doGetColor(Constants.DEFAULT_BACKGROUND,
                       BasicColor.YELLOW);

* 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 symbol font
  • go back to the previous lesson if you are interested in basic concepts
  • 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