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.
-
ABOVE
- The text allighnment is ABOVE
-
ARC
- The shape type is arc
-
ARROW
- The shape type is arrow
-
BELOW
- The text allighnment is BELOW
-
BOX
- The shape type is box
-
CENTER
- The text allighnment is CENTER
-
CIRCLE
- The shape type is circle
-
ELLIPSE
- The shape type is ellipse
-
EMPTY
- The empty shape
-
LINE
- The shape type is line
-
LJUST
- The text allighnment is LEFT
-
MOVE
- the shape type is move
-
RJUST
- The text allighnment is RIGHT
-
SPLINE
- The shape type is spline
-
SPREAD
- The text allighnment is SPREAD
-
TEXT
- The shape type is text
-
VAR
- the shape type is pic variables
-
Bridge()
-
-
addBridgeListener(BridgeListener)
- Register an action listener to be notified when a shape is produced
-
compile(String)
- This native method compiles the given pic text.
-
removeBridgeListener(BridgeListener)
- Remove a listener from the list
BOX
public static final int BOX
- The shape type is box
LINE
public static final int LINE
- The shape type is line
ARROW
public static final int ARROW
- The shape type is arrow
CIRCLE
public static final int CIRCLE
- The shape type is circle
ELLIPSE
public static final int ELLIPSE
- The shape type is ellipse
ARC
public static final int ARC
- The shape type is arc
SPLINE
public static final int SPLINE
- The shape type is spline
TEXT
public static final int TEXT
- The shape type is text
EMPTY
public static final int EMPTY
- The empty shape
MOVE
public static final int MOVE
- the shape type is move
VAR
public static final int VAR
- the shape type is pic variables
CENTER
public static final int CENTER
- The text allighnment is CENTER
LJUST
public static final int LJUST
- The text allighnment is LEFT
RJUST
public static final int RJUST
- The text allighnment is RIGHT
ABOVE
public static final int ABOVE
- The text allighnment is ABOVE
BELOW
public static final int BELOW
- The text allighnment is BELOW
SPREAD
public static final int SPREAD
- The text allighnment is SPREAD
Bridge
public Bridge()
addBridgeListener
public static void addBridgeListener(BridgeListener listener)
- Register an action listener to be notified when a shape is produced
- Parameters:
- listener - the bridge listener
removeBridgeListener
public static void removeBridgeListener(BridgeListener listener)
- Remove a listener from the list
- Parameters:
- listener - the bridge listener
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