All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bridge.Bridge

java.lang.Object
   |
   +----bridge.Bridge

public class Bridge
extends Object
This class provides an interface between the application and pic language compiler. It works as a bean, sending the compilation results as events.


Variable Index

 o ABOVE
The text allighnment is ABOVE
 o ARC
The shape type is arc
 o ARROW
The shape type is arrow
 o BELOW
The text allighnment is BELOW
 o BOX
The shape type is box
 o CENTER
The text allighnment is CENTER
 o CIRCLE
The shape type is circle
 o ELLIPSE
The shape type is ellipse
 o EMPTY
The empty shape
 o LINE
The shape type is line
 o LJUST
The text allighnment is LEFT
 o MOVE
the shape type is move
 o RJUST
The text allighnment is RIGHT
 o SPLINE
The shape type is spline
 o SPREAD
The text allighnment is SPREAD
 o TEXT
The shape type is text
 o VAR
the shape type is pic variables

Constructor Index

 o Bridge()

Method Index

 o addBridgeListener(BridgeListener)
Register an action listener to be notified when a shape is produced
 o compile(String)
This native method compiles the given pic text.
 o removeBridgeListener(BridgeListener)
Remove a listener from the list

Variables

 o BOX
 public static final int BOX
The shape type is box

 o LINE
 public static final int LINE
The shape type is line

 o ARROW
 public static final int ARROW
The shape type is arrow

 o CIRCLE
 public static final int CIRCLE
The shape type is circle

 o ELLIPSE
 public static final int ELLIPSE
The shape type is ellipse

 o ARC
 public static final int ARC
The shape type is arc

 o SPLINE
 public static final int SPLINE
The shape type is spline

 o TEXT
 public static final int TEXT
The shape type is text

 o EMPTY
 public static final int EMPTY
The empty shape

 o MOVE
 public static final int MOVE
the shape type is move

 o VAR
 public static final int VAR
the shape type is pic variables

 o CENTER
 public static final int CENTER
The text allighnment is CENTER

 o LJUST
 public static final int LJUST
The text allighnment is LEFT

 o RJUST
 public static final int RJUST
The text allighnment is RIGHT

 o ABOVE
 public static final int ABOVE
The text allighnment is ABOVE

 o BELOW
 public static final int BELOW
The text allighnment is BELOW

 o SPREAD
 public static final int SPREAD
The text allighnment is SPREAD

Constructors

 o Bridge
 public Bridge()

Methods

 o addBridgeListener
 public static void addBridgeListener(BridgeListener listener)
Register an action listener to be notified when a shape is produced

Parameters:
listener - the bridge listener
 o removeBridgeListener
 public static void removeBridgeListener(BridgeListener listener)
Remove a listener from the list

Parameters:
listener - the bridge listener
 o compile
 public static native int compile(String picText)
This native method compiles the given pic text.

Parameters:
picText - number of sentences written in a pic language
Returns:
zero if the compilation is successful, error code otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index