| java.lang.Object org.openlaszlo.iv.flash.fop.FOPScriptBuilder
FOPScriptBuilder | public class FOPScriptBuilder (Code) | | This is a helper class for the SWFRenderer, this does all
JGen specific calls, like drawing lines etc etc.
author: Johan "Spocke" Sörlin author: James Taylor |
Method Summary | |
public void | addLine(int x1, int y1, int x2, int y2, int th, float r, float g, float b) Adds a new line shape to the FlashMovie. | public void | addLink(int x, int y, int w, int h, String destination) | public void | addRect(int x, int y, int w, int h, float r, float g, float b) Adds a new filled rectangle shape to the FlashMovie. | public void | addText(String string, int x, int y, float r, float g, float b, SWFFontMetric fontMetric, int size, int width) Adds a new text element to the FlashMovie. | public Rectangle2D | getMaxPageBounds() | public Script | getScript() | public void | setLinkHandler(String methodName) Sets the name of the function used to handle links. | public void | startPage(int width, int height) |
FOPScriptBuilder | public FOPScriptBuilder()(Code) | | Constructs a new FOPScriptBuilder
|
addLine | public void addLine(int x1, int y1, int x2, int y2, int th, float r, float g, float b)(Code) | | Adds a new line shape to the FlashMovie.
Parameters: x1 - x1 position in FOP points Parameters: y1 - y1 position in FOP points Parameters: x2 - x2 position in FOP points Parameters: y1 - y1 position in FOP points Parameters: th - thickness in FOP points Parameters: r - red color channel Parameters: g - green color channel Parameters: b - blue color channel |
addLink | public void addLink(int x, int y, int w, int h, String destination)(Code) | | |
addRect | public void addRect(int x, int y, int w, int h, float r, float g, float b)(Code) | | Adds a new filled rectangle shape to the FlashMovie.
Parameters: x - x position in FOP points Parameters: y - y position in FOP points Parameters: w - width in FOP points Parameters: h - height in FOP points Parameters: r - red color channel Parameters: g - green color channel Parameters: b - blue color channel |
addText | public void addText(String string, int x, int y, float r, float g, float b, SWFFontMetric fontMetric, int size, int width)(Code) | | Adds a new text element to the FlashMovie.
Parameters: string - String to place in text element Parameters: pos_x - x position in FOP points Parameters: pos_y - y position in FOP points Parameters: r - red color channel Parameters: g - green color channel Parameters: b - blue color channel Parameters: fontMetric - font metric Parameters: size - font size in FOP points Parameters: underlined - underlined text element |
setLinkHandler | public void setLinkHandler(String methodName)(Code) | | Sets the name of the function used to handle links. This should be a
function defined on the timeline containing this script.
FIXME: Need to evaluate other ways to do this, to allow the most
flexibility
|
startPage | public void startPage(int width, int height)(Code) | | |
|
|