FIGUE
*Tutorial *Previous *Current *Next

More Visualization Mode : PostScript

* Step by Step

Import the usual figue packages.
import figue.*;
import figue.box.*;
import figue.path.*;
import figue.resource.*
Import the event package.
import figue.event.*;
Keep a reference to a Postscript facade
private PSFacade _facade;
		
Initialize the postscript facade with an AWT PrintJob.
_facade = new PSFacade(Toolkit.getDefaultToolkit()
                       .getPrintJob(_dummyFrame,"",null));
Initialize the resources and build the boxes.
initResources(_facade);
buildBox(_facade);
Eventually add a print listener.
_facade.addPrintListener(new PrintListenerInterface() {
    public void printInitiate(PrintEvent anEvent) {
      getAppletContext().showStatus("Start printing");
   }
   public void printAdvance(PrintEvent anEvent) {
      getAppletContext().showStatus(
         "Printing page " + 
         anEvent.getPageNumber() + " " +  
         anEvent.getPercentDone() + "%");
      }
   public void printDone(PrintEvent anEvent) {
      getAppletContext().showStatus("Printing done");
   }
});
Print.
_facade.print();
Free the resources when done.
_facade.disposeWhenInactive();

* 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.
Actions :
- open a print dialog with the print button,
- set the printing parameters and launch the task.

* The Whole Program

* Related Classes and Methods

* What Next ?

Now you can :

*Tutorial *Previous *Current *Next

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