Thread: [FOray-commit] SF.net SVN: foray: [9856] trunk/foray (Page 16)
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2007-06-27 15:57:24
|
Revision: 9856
http://svn.sourceforge.net/foray/?rev=9856&view=rev
Author: victormote
Date: 2007-06-27 08:57:11 -0700 (Wed, 27 Jun 2007)
Log Message:
-----------
1. Conform to axsl changes returning bounding box of float[] instead of int[].
2. Improvements to placement and scaling of EPS graphics.
Modified Paths:
--------------
trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXForm.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXPostScript.java
trunk/foray/foray-ps/src/java/org/foray/ps/FOrayBoundingBox.java
trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java 2007-06-27 15:20:50 UTC (rev 9855)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java 2007-06-27 15:57:11 UTC (rev 9856)
@@ -77,7 +77,7 @@
private String docName;
/** Array containing the bounding box. */
- private int[] bbox = new int[] {0, 0, 0, 0};
+ private float[] bbox = new float[] {0, 0, 0, 0};
/** Indicates whether this EPS is in ASCII format (true) or in binary format
* (false). */
@@ -205,14 +205,14 @@
}
readBBox(fileStart);
if (bbox != null) {
- final int xUR = bbox[BoundingBox.BBOX_UPPER_RIGHT_X_INDEX];
- final int xLL = bbox[BoundingBox.BBOX_LOWER_LEFT_X_INDEX];
- final int pixelWidth = xUR - xLL;
- setPixelWidth(pixelWidth);
- final int yUR = bbox[BoundingBox.BBOX_UPPER_RIGHT_Y_INDEX];
- final int yLL = bbox[BoundingBox.BBOX_LOWER_LEFT_Y_INDEX];
- final int pixelHeight = yUR - yLL;
- setPixelHeight(pixelHeight);
+ final float xUR = bbox[BoundingBox.BBOX_UPPER_RIGHT_X_INDEX];
+ final float xLL = bbox[BoundingBox.BBOX_LOWER_LEFT_X_INDEX];
+ final float pixelWidth = xUR - xLL;
+ setPixelWidth(Math.round(pixelWidth));
+ final float yUR = bbox[BoundingBox.BBOX_UPPER_RIGHT_Y_INDEX];
+ final float yLL = bbox[BoundingBox.BBOX_LOWER_LEFT_Y_INDEX];
+ final float pixelHeight = yUR - yLL;
+ setPixelHeight(Math.round(pixelHeight));
} else {
// Invalid EPS if no bounding box.
throw new IOException("EPS missing bbox: " + getUrl().toString());
@@ -295,7 +295,7 @@
final byte[] num = new byte[nidx - idx];
System.arraycopy(fileStart, idx, num, 0, nidx - idx);
final String ns = new String(num);
- this.bbox[bboxIndex] = Integer.parseInt(ns);
+ this.bbox[bboxIndex] = Float.parseFloat(ns);
return 1 + nidx - idx;
}
@@ -314,13 +314,16 @@
if (testByte == '-') {
return true;
}
+ if (testByte == '.') {
+ return true;
+ }
return false;
}
/**
* {@inheritDoc}
*/
- public int[] getBBox() {
+ public float[] getBBox() {
return this.bbox;
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXForm.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXForm.java 2007-06-27 15:20:50 UTC (rev 9855)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXForm.java 2007-06-27 15:57:11 UTC (rev 9856)
@@ -122,11 +122,11 @@
return "";
}
final EPSGraphic eps = (EPSGraphic) this.getGraphic();
- final int[] boundingBox = eps.getBBox();
- final int llx = boundingBox[BoundingBox.BBOX_LOWER_LEFT_X_INDEX];
- final int lly = boundingBox[BoundingBox.BBOX_LOWER_LEFT_Y_INDEX];
- final int urx = boundingBox[BoundingBox.BBOX_UPPER_RIGHT_X_INDEX];
- final int ury = boundingBox[BoundingBox.BBOX_UPPER_RIGHT_Y_INDEX];
+ final float[] boundingBox = eps.getBBox();
+ final float llx = boundingBox[BoundingBox.BBOX_LOWER_LEFT_X_INDEX];
+ final float lly = boundingBox[BoundingBox.BBOX_LOWER_LEFT_Y_INDEX];
+ final float urx = boundingBox[BoundingBox.BBOX_UPPER_RIGHT_X_INDEX];
+ final float ury = boundingBox[BoundingBox.BBOX_UPPER_RIGHT_Y_INDEX];
final StringBuilder buffer = new StringBuilder();
buffer.append("/FormType 1" + EOL);
buffer.append("/BBox [");
@@ -135,19 +135,32 @@
buffer.append(urx + " ");
buffer.append(ury + "]" + EOL);
final Rectangle2D contentRectangle = this.getContentRectangle();
- final int formSpaceWidth = urx - llx;
- final int formSpaceHeight = ury - lly;
+ final float formSpaceWidth = urx - llx;
+ final float formSpaceHeight = ury - lly;
final float horizontalScaling = (float) (contentRectangle.getWidth()
/ formSpaceWidth);
final float verticalScaling = (float) (contentRectangle.getHeight()
/ formSpaceHeight);
+ float xTranslate = (float) contentRectangle.getX();
+ if (llx < 0) {
+ /* If the bounding box of the graphic is negative, adjust it up to
+ * zero. */
+ xTranslate -= llx;
+ }
+ float yTranslate = (float) (contentRectangle.getY()
+ - contentRectangle.getHeight());
+ if (lly < 0) {
+ /* If the bounding box of the graphic is negative, adjust it up to
+ * zero. */
+ yTranslate -= lly;
+ }
buffer.append("/Matrix ["
+ horizontalScaling
+ " 0 0 "
+ verticalScaling + " "
- + contentRectangle.getX() + " "
- + (contentRectangle.getY() - contentRectangle.getHeight())
- + "]" + EOL);
+ + xTranslate + " "
+ + yTranslate + "]"
+ + EOL);
buffer.append("/Resources << /ProcSet [/PDF] >>" + EOL);
return buffer.toString();
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXPostScript.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXPostScript.java 2007-06-27 15:20:50 UTC (rev 9855)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXPostScript.java 2007-06-27 15:57:11 UTC (rev 9856)
@@ -95,9 +95,9 @@
*/
public byte[] epsToPDFXObject(final EPSGraphic eps)
throws GraphicException {
- final int[] bbox = eps.getBBox();
- final int bboxw = FOrayBoundingBox.width(bbox);
- final int bboxh = FOrayBoundingBox.height(bbox);
+ final float[] bbox = eps.getBBox();
+ final float bboxw = FOrayBoundingBox.width(bbox);
+ final float bboxh = FOrayBoundingBox.height(bbox);
final StringBuilder preamble = new StringBuilder();
preamble.append("%%BeginDocument: " + eps.getName()
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/FOrayBoundingBox.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/FOrayBoundingBox.java 2007-06-27 15:20:50 UTC (rev 9855)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/FOrayBoundingBox.java 2007-06-27 15:57:11 UTC (rev 9856)
@@ -45,7 +45,7 @@
* box.
* @return The width of the bounding box.
*/
- public static int width(final int[] boundingBoxArray) {
+ public static float width(final float[] boundingBoxArray) {
return boundingBoxArray[BBOX_UPPER_RIGHT_X_INDEX]
- boundingBoxArray[BBOX_LOWER_LEFT_X_INDEX];
@@ -57,7 +57,7 @@
* box.
* @return The height of the bounding box.
*/
- public static int height(final int[] boundingBoxArray) {
+ public static float height(final float[] boundingBoxArray) {
return boundingBoxArray[BBOX_UPPER_RIGHT_Y_INDEX]
- boundingBoxArray[BBOX_LOWER_LEFT_Y_INDEX];
}
Modified: trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java 2007-06-27 15:20:50 UTC (rev 9855)
+++ trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java 2007-06-27 15:57:11 UTC (rev 9856)
@@ -617,9 +617,9 @@
*/
public byte[] epsToPostScript(final EPSGraphic image, final int x,
final int y, final int w, final int h) throws GraphicException {
- final int[] bbox = image.getBBox();
- final int bboxw = FOrayBoundingBox.width(bbox);
- final int bboxh = FOrayBoundingBox.height(bbox);
+ final float[] bbox = image.getBBox();
+ final float bboxw = FOrayBoundingBox.width(bbox);
+ final float bboxh = FOrayBoundingBox.height(bbox);
StringBuilder buffer = new StringBuilder();
buffer.append("%%BeginDocument: " + image.getName());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-06-28 16:20:05
|
Revision: 9866
http://svn.sourceforge.net/foray/?rev=9866&view=rev
Author: victormote
Date: 2007-06-28 09:18:34 -0700 (Thu, 28 Jun 2007)
Log Message:
-----------
Move the external transformation logic, that is, the logic that positions and scales the svg into a specific location on the page, out of the graphics module and back to the PDF module.
Modified Paths:
--------------
trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java
trunk/foray/foray-pdf/.classpath
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java 2007-06-27 23:38:11 UTC (rev 9865)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java 2007-06-28 16:18:34 UTC (rev 9866)
@@ -34,7 +34,6 @@
package org.foray.graphic.batik;
import org.foray.common.CharacterOutputStream;
-import org.foray.common.FOrayConstants;
import org.foray.common.WKConstants;
import org.foray.common.ps.PsColor;
import org.foray.common.ps.PsUtil;
@@ -52,11 +51,9 @@
import org.axsl.fontR.FontUtility;
import org.axsl.graphicR.GraphicPdfContext;
-import org.apache.batik.bridge.ViewBox;
import org.apache.commons.logging.Log;
import org.w3c.dom.svg.SVGDocument;
-import org.w3c.dom.svg.SVGSVGElement;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
@@ -189,7 +186,6 @@
this.pdfContext = pdfContext;
this.graphicsStateStack.push(new PDFGraphicsState());
initGraphicalEnvironment();
- transformCoordinates(contentRectangle, svgDocument);
}
/**
@@ -210,47 +206,6 @@
}
/**
- * Writes the transformation coordinates for a given SVG and rectangle to
- * the output stream.
- * @param contentRectangle The rectangle into which the image content should
- * be placed.
- * @param svgDocument The SVG Document to be written.
- */
- private void transformCoordinates(final Rectangle2D contentRectangle,
- final SVGDocument svgDocument) {
- /* Compute a scaling factor to get from 72 pixels-per-inch to our
- * standard resolution. */
- final float scaling = (float) WKConstants.POINTS_PER_INCH
- / (float) FOrayConstants.DEFAULT_SCREEN_RESOLUTION;
-
- /*
- * We are doing the following with this "cm":
- * 1. Transform so that the coordinates (0,0) is from the top left
- * and positive is down and to the right. (0,0) is where the viewBox
- * puts it.
- * 2. Scale to the correct resolution (see computation above).
- */
- this.write(scaling + " 0 0 -" + scaling + " "
- + contentRectangle.getX() + " "
- + contentRectangle.getY()
- + " cm");
-
- final SVGSVGElement svg = svgDocument.getRootElement();
- final AffineTransform at = ViewBox.getPreserveAspectRatioTransform(svg,
- (float) contentRectangle.getWidth(),
- (float) contentRectangle.getHeight());
- if (!at.isIdentity()) {
- /* TODO: This logic needs to be integrated with the regular PDF
- * classes. */
- final double[] vals =
- new double[PsUtil.MATRIX_QTY_ELEMENTS];
- at.getMatrix(vals);
- final String matrixString = octalMatrixToString(vals);
- this.write(matrixString + "cm");
- }
- }
-
- /**
* Converts a matrix of octal values to its PDF representation.
* @param theMatrix The matrix to be converted.
* @return The PDF representation of the matrix.
Modified: trunk/foray/foray-pdf/.classpath
===================================================================
--- trunk/foray/foray-pdf/.classpath 2007-06-27 23:38:11 UTC (rev 9865)
+++ trunk/foray/foray-pdf/.classpath 2007-06-28 16:18:34 UTC (rev 9866)
@@ -10,5 +10,6 @@
<classpathentry kind="src" path="/FOrayPS"/>
<classpathentry kind="src" path="/axslPDF-W"/>
<classpathentry kind="lib" path="/FOray Lib/commons-logging-1.1.jar" sourcepath="/FOray Lib-Build/commons-logging/commons-logging-1.1-src.zip"/>
+ <classpathentry kind="lib" path="/FOray Lib/svg-1.1.jar" sourcepath="/FOray Lib-Build/svg/svg-1.1-src.zip"/>
<classpathentry kind="output" path="build/eclipse"/>
</classpath>
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-06-27 23:38:11 UTC (rev 9865)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-06-28 16:18:34 UTC (rev 9866)
@@ -28,6 +28,8 @@
package org.foray.pdf.object;
+import org.foray.common.FOrayConstants;
+import org.foray.common.WKConstants;
import org.foray.pdf.PDFGraphicsState;
import org.axsl.fontR.FontConsumer;
@@ -38,6 +40,8 @@
import org.axsl.pdfW.PDFLineCapStyle;
import org.axsl.pdfW.PDFTextRenderingMode;
+import org.w3c.dom.svg.SVGDocument;
+
import java.awt.Color;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
@@ -360,8 +364,9 @@
add("W" + EOL);
add("n" + EOL);
}
-
try {
+ this.transformSVGCoordinates(contentRectangle,
+ svg.getSVGDocument());
svg.drawPdfStreamContent(this.getOutputStream(), contentRectangle,
this.getPDFDocument(), fontConsumer, strokeSVGText);
} catch (final GraphicException e) {
@@ -430,4 +435,46 @@
add("] " + dashPhase + " d" + EOL);
}
+ /**
+ * Writes the transformation coordinates for a given SVG and rectangle to
+ * the output stream.
+ * @param contentRectangle The rectangle into which the image content should
+ * be placed.
+ * @param svgDocument The SVG Document to be written.
+ */
+ private void transformSVGCoordinates(final Rectangle2D contentRectangle,
+ final SVGDocument svgDocument) {
+ /* Compute a scaling factor to get from 72 pixels-per-inch to our
+ * standard resolution. */
+ final float scaling = (float) WKConstants.POINTS_PER_INCH
+ / (float) FOrayConstants.DEFAULT_SCREEN_RESOLUTION;
+
+ /*
+ * We are doing the following with this "cm":
+ * 1. Transform so that the coordinates (0,0) is from the top left
+ * and positive is down and to the right. (0,0) is where the viewBox
+ * puts it.
+ * 2. Scale to the correct resolution (see computation above).
+ */
+ this.add(scaling + " 0 0 -" + scaling + " "
+ + contentRectangle.getX() + " "
+ + contentRectangle.getY()
+ + " cm");
+
+// final SVGSVGElement svg = svgDocument.getRootElement();
+// final AffineTransform at = ViewBox.getPreserveAspectRatioTransform(
+// svg,
+// (float) contentRectangle.getWidth(),
+// (float) contentRectangle.getHeight());
+// if (!at.isIdentity()) {
+// /* TODO: This logic needs to be integrated with the regular PDF
+// * classes. */
+// final double[] vals =
+// new double[PsUtil.MATRIX_QTY_ELEMENTS];
+// at.getMatrix(vals);
+// final String matrixString = octalMatrixToString(vals);
+// this.add(matrixString + "cm");
+// }
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-06-28 16:44:46
|
Revision: 9867
http://svn.sourceforge.net/foray/?rev=9867&view=rev
Author: victormote
Date: 2007-06-28 09:44:24 -0700 (Thu, 28 Jun 2007)
Log Message:
-----------
Conform to axsl change removing the content rectangle from the parameters passed to the graphics system when drawing an SVG to PDF. Positioning and scaling are now done entirely by the client application.
Modified Paths:
--------------
trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java 2007-06-28 16:18:34 UTC (rev 9866)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java 2007-06-28 16:44:24 UTC (rev 9867)
@@ -425,7 +425,7 @@
* {@inheritDoc}
*/
public void drawPdfStreamContent(final OutputStream output,
- final Rectangle2D location, final GraphicPdfContext pdfContext,
+ final GraphicPdfContext pdfContext,
final FontConsumer fontConsumer, final boolean strokeText)
throws GraphicException {
SVGDocument doc = null;
@@ -436,8 +436,8 @@
e.printStackTrace();
return;
}
- final PDFGraphics2D graphics = getPDFContent4SVG(location,
- fontConsumer, doc, strokeText, pdfContext, output);
+ final PDFGraphics2D graphics = getPDFContent4SVG(fontConsumer, doc,
+ strokeText, pdfContext, output);
graphics.dispose();
if (graphics == null) {
throw new GraphicException("Unable to convert to PDF: "
@@ -451,8 +451,6 @@
/**
* Convert an SVG document to a PDFGraphics2D.
- * @param contentRectangle The location of the rectangle containing the
- * SVG content.
* @param fontConsumer The font consumer.
* @param svgDocument The SVG document.
* @param strokeSVGText Indicates whether text should be stroked.
@@ -461,8 +459,8 @@
* @param outputStream The output stream to which this processor writes its
* PDF output.
*/
- public PDFGraphics2D getPDFContent4SVG(final Rectangle2D contentRectangle,
- final FontConsumer fontConsumer, final SVGDocument svgDocument,
+ public PDFGraphics2D getPDFContent4SVG(final FontConsumer fontConsumer,
+ final SVGDocument svgDocument,
final boolean strokeSVGText, final GraphicPdfContext pdfContext,
final OutputStream outputStream) {
/* If not running in a graphical environment, log an error message
@@ -486,8 +484,6 @@
ctx.setTextPainter(textPainter);
final PDFAElementBridge aBridge = new PDFAElementBridge();
- aBridge.setCurrentTransform(new AffineTransform(1, 0, 0, -1,
- contentRectangle.getX(), contentRectangle.getY()));
ctx.putBridge(aBridge);
GraphicsNode root;
@@ -495,9 +491,8 @@
ctx = null;
builder = null;
- final PDFGraphics2D graphics = new PDFGraphics2D(true, contentRectangle,
- svgDocument, fontConsumer, this.getLogger(), pdfContext,
- outputStream);
+ final PDFGraphics2D graphics = new PDFGraphics2D(true, svgDocument,
+ fontConsumer, this.getLogger(), pdfContext, outputStream);
graphics.setGraphicContext(
new org.apache.batik.ext.awt.g2d.GraphicContext());
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java 2007-06-28 16:18:34 UTC (rev 9866)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java 2007-06-28 16:44:24 UTC (rev 9867)
@@ -159,8 +159,6 @@
* existing document.
* @param textAsShapes Set this to true so that text will be rendered
* using curves and not the font.
- * @param contentRectangle The rectangle into which the image content should
- * be placed.
* @param svgDocument The SVG document to be drawn.
* @param fontConsumer The font consumer for this document.
* @param logger The logger.
@@ -169,7 +167,7 @@
* PDF output.
*/
public PDFGraphics2D(final boolean textAsShapes,
- final Rectangle2D contentRectangle, final SVGDocument svgDocument,
+ final SVGDocument svgDocument,
final FontConsumer fontConsumer, final Log logger,
final GraphicPdfContext pdfContext,
final OutputStream outputStream) {
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-06-28 16:18:34 UTC (rev 9866)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-06-28 16:44:24 UTC (rev 9867)
@@ -367,7 +367,7 @@
try {
this.transformSVGCoordinates(contentRectangle,
svg.getSVGDocument());
- svg.drawPdfStreamContent(this.getOutputStream(), contentRectangle,
+ svg.drawPdfStreamContent(this.getOutputStream(),
this.getPDFDocument(), fontConsumer, strokeSVGText);
} catch (final GraphicException e) {
// TODO Auto-generated catch block
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-06-28 17:33:08
|
Revision: 9868
http://svn.sourceforge.net/foray/?rev=9868&view=rev
Author: victormote
Date: 2007-06-28 10:29:52 -0700 (Thu, 28 Jun 2007)
Log Message:
-----------
Conform to axsl change removing the content rectangle from the parameters passed to the graphics system when drawing an SVG to PostScript. Positioning and scaling are now done entirely by the client application.
Modified Paths:
--------------
trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java
trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java 2007-06-28 16:44:24 UTC (rev 9867)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java 2007-06-28 17:29:52 UTC (rev 9868)
@@ -30,7 +30,6 @@
import org.foray.common.CharacterOutputStream;
import org.foray.common.Environment;
-import org.foray.common.WKConstants;
import org.foray.common.url.URLFactory;
import org.foray.graphic.batik.BatikUaAwt;
import org.foray.graphic.batik.BatikUaDocument;
@@ -319,13 +318,11 @@
/**
* {@inheritDoc}
*/
- public void drawPS(final OutputStream output, final Rectangle2D location,
+ public void drawPS(final OutputStream output,
final FontConsumer fontConsumer, final boolean strokeText,
final boolean commentsEnabled) {
final CharacterOutputStream cos = new CharacterOutputStream(output,
commentsEnabled);
- final double x = location.getX();
- final double y = location.getY();
SVGDocument doc = null;
try {
doc = this.getSVGDocument();
@@ -346,66 +343,17 @@
getLogger().error(e.getMessage());
return;
}
- // get the 'width' and 'height' attributes of the SVG document
- float w = (float) ctx.getDocumentSize().getWidth();
- float h = (float) ctx.getDocumentSize().getHeight();
-
- //log.debug("drawing SVG image: "+x+"/"+y+" "+w+"/"+h);
- final SVGSVGElement svg = doc.getRootElement();
- final AffineTransform at = ViewBox.getPreserveAspectRatioTransform(svg,
- w, h);
-
- w *= WKConstants.MILLIPOINTS_PER_POINT;
- h *= WKConstants.MILLIPOINTS_PER_POINT;
-
ctx = null;
builder = null;
- final float sx = 1;
- final float sy = -1;
- final int xOffset = (int) Math.round(x);
- final int yOffset = (int) Math.round(y);
-
+ final PSGraphics2D graphics = new PSGraphics2D(false, cos);
+ graphics.setGraphicContext(new GraphicContext());
try {
- cos.comment("% --- SVG Area");
- cos.write("gsave");
- if (w != 0 && h != 0) {
- cos.write("newpath");
- cos.write(x + " " + y + " M");
- cos.write((x + w) + " " + y + " rlineto");
- cos.write((x + w) + " " + (y - h) + " rlineto");
- cos.write(x + " " + (y - h) + " rlineto");
- cos.write("closepath");
- cos.write("clippath");
- }
- // transform so that the coordinates (0,0) is from the top left
- // and positive is down and to the right. (0,0) is where the
- // viewBox puts it.
- cos.write(xOffset + " " + yOffset + " translate");
- cos.write(
- (at.getTranslateX() * WKConstants.MILLIPOINTS_PER_POINT)
- + " "
- + (-at.getTranslateY() * WKConstants.MILLIPOINTS_PER_POINT)
- + " translate");
- cos.write(sx * at.getScaleX() + " " + sy * at.getScaleY()
- + " scale");
-
- final PSGraphics2D graphics = new PSGraphics2D(false, cos);
- graphics.setGraphicContext(new GraphicContext());
- try {
- root.paint(graphics);
- } catch (final Exception e) {
- getLogger().error("svg graphic could not be rendered: "
- + e.getMessage());
- getLogger().error(e.getMessage());
- }
-
- cos.write("grestore");
-
- cos.comment("% --- SVG Area end");
- } catch (final IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ root.paint(graphics);
+ } catch (final Exception e) {
+ getLogger().error("svg graphic could not be rendered: "
+ + e.getMessage());
+ getLogger().error(e.getMessage());
}
}
Modified: trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java 2007-06-28 16:44:24 UTC (rev 9867)
+++ trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java 2007-06-28 17:29:52 UTC (rev 9868)
@@ -67,6 +67,7 @@
import java.awt.Color;
import java.awt.Rectangle;
import java.awt.color.ColorSpace;
+import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.OutputStream;
@@ -515,8 +516,50 @@
*/
protected void renderSVGDocument(final SVGGraphic svgGraphic,
final Rectangle2D contentRectangle, final GraphicArea area) {
- svgGraphic.drawPS(this.getOutputStream(), contentRectangle,
- area.getFontConsumer(), false, this.enableComments);
+ float w = 0;
+ float h = 0;
+ try {
+ w = svgGraphic.pixelWidth();
+ h = svgGraphic.pixelHeight();
+ } catch (final GraphicException e) {
+ this.getLogger().error("Error getting graphic dimensions in "
+ + this.getClass().getName());
+ }
+
+ final double x = contentRectangle.getX();
+ final double y = contentRectangle.getY();
+ final float sx = 1;
+ final float sy = -1;
+ final int xOffset = (int) Math.round(x);
+ final int yOffset = (int) Math.round(contentRectangle.getY());
+
+ this.comment("% --- SVG Area");
+ this.write("gsave");
+ if (w != 0 && h != 0) {
+ this.write("newpath");
+ this.write(x + " " + y + " M");
+ this.write((x + w) + " " + y + " rlineto");
+ this.write((x + w) + " " + (y - h) + " rlineto");
+ this.write(x + " " + (y - h) + " rlineto");
+ this.write("closepath");
+ this.write("clippath");
+ }
+ // transform so that the coordinates (0,0) is from the top left
+ // and positive is down and to the right. (0,0) is where the
+ // viewBox puts it.
+ final AffineTransform at = AffineTransform.getTranslateInstance(x, y);
+ this.write(xOffset + " " + yOffset + " translate");
+ this.write(
+ (at.getTranslateX() * WKConstants.MILLIPOINTS_PER_POINT)
+ + " "
+ + (-at.getTranslateY() * WKConstants.MILLIPOINTS_PER_POINT)
+ + " translate");
+ this.write(sx * at.getScaleX() + " " + sy * at.getScaleY()
+ + " scale");
+ svgGraphic.drawPS(this.getOutputStream(), area.getFontConsumer(), false,
+ this.enableComments);
+ this.write("grestore");
+ this.comment("% --- SVG Area end");
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-06-28 21:02:31
|
Revision: 9872
http://svn.sourceforge.net/foray/?rev=9872&view=rev
Author: victormote
Date: 2007-06-28 14:02:32 -0700 (Thu, 28 Jun 2007)
Log Message:
-----------
1. Conform to axsl changes rolling PDFContentStream method drawSVGGraphic into drawGraphic.
2. Move the SVG drawing logic from PDFContentStream to the new PDFXFormSvg class.
3. The net effect of this has SVGs being drawn as if they were rotated 180 degrees on a horizontal line through the middle of the graphic. This will be fixed in future commits.
Modified Paths:
--------------
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXForm.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXFormSvg.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXObject.java
trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-06-28 20:02:49 UTC (rev 9871)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-06-28 21:02:32 UTC (rev 9872)
@@ -28,20 +28,15 @@
package org.foray.pdf.object;
-import org.foray.common.FOrayConstants;
-import org.foray.common.WKConstants;
import org.foray.pdf.PDFGraphicsState;
import org.axsl.fontR.FontConsumer;
import org.axsl.fontR.FontUse;
import org.axsl.graphicR.Graphic;
import org.axsl.graphicR.GraphicException;
-import org.axsl.graphicR.SVGGraphic;
import org.axsl.pdfW.PDFLineCapStyle;
import org.axsl.pdfW.PDFTextRenderingMode;
-import org.w3c.dom.svg.SVGDocument;
-
import java.awt.Color;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
@@ -306,16 +301,14 @@
/**
* {@inheritDoc}
*/
- public void drawGraphic(final Rectangle2D.Float contentRectangle,
- final Rectangle2D.Float clipRectangle, final Graphic image) {
- /* Use drawSVG() method for SVG. */
- if (image instanceof SVGGraphic) {
- return;
- }
+ public void drawGraphic(final Graphic image,
+ final Rectangle2D.Float contentRectangle,
+ final Rectangle2D.Float clipRectangle,
+ final FontConsumer fontConsumer, final boolean strokeText) {
PDFXObject xObject;
try {
xObject = PDFXObject.makeXObject(this.getPDFDocument(), image,
- contentRectangle, clipRectangle);
+ contentRectangle, clipRectangle, fontConsumer, strokeText);
} catch (final GraphicException e) {
getLogger().error(e.getMessage());
return;
@@ -339,45 +332,6 @@
}
/**
- * {@inheritDoc}
- */
- public void drawSVGDocument(final SVGGraphic svg,
- final Rectangle2D.Float contentRectangle,
- final Rectangle2D.Float clipRectangle,
- final FontConsumer fontConsumer,
- final boolean strokeSVGText) {
- closeTextObject();
-
- add("q" + EOL);
- if (contentRectangle.width != 0 && contentRectangle.height != 0) {
- clip(clipRectangle, contentRectangle);
- add(contentRectangle.x + " " + contentRectangle.y + " m" + EOL);
- add((contentRectangle.x + contentRectangle.width) + " "
- + contentRectangle.y + " l" + EOL);
- add((contentRectangle.x + contentRectangle.width) + " "
- + (contentRectangle.y - contentRectangle.height) + " l"
- + EOL);
- add(contentRectangle.x + " "
- + (contentRectangle.y - contentRectangle.height) + " l"
- + EOL);
- add("h" + EOL);
- add("W" + EOL);
- add("n" + EOL);
- }
- try {
- this.transformSVGCoordinates(contentRectangle,
- svg.getSVGDocument());
- svg.drawPdfStreamContent(this.getOutputStream(),
- this.getPDFDocument(), fontConsumer, strokeSVGText);
- } catch (final GraphicException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- add("Q" + EOL);
- }
-
- /**
* Clips a specified content rectangle to a specified clip rectangle.
* @param clipRectangle The clip rectangle.
* @param contentRectangle The content rectangle.
@@ -435,46 +389,4 @@
add("] " + dashPhase + " d" + EOL);
}
- /**
- * Writes the transformation coordinates for a given SVG and rectangle to
- * the output stream.
- * @param contentRectangle The rectangle into which the image content should
- * be placed.
- * @param svgDocument The SVG Document to be written.
- */
- private void transformSVGCoordinates(final Rectangle2D contentRectangle,
- final SVGDocument svgDocument) {
- /* Compute a scaling factor to get from 72 pixels-per-inch to our
- * standard resolution. */
- final float scaling = (float) WKConstants.POINTS_PER_INCH
- / (float) FOrayConstants.DEFAULT_SCREEN_RESOLUTION;
-
- /*
- * We are doing the following with this "cm":
- * 1. Transform so that the coordinates (0,0) is from the top left
- * and positive is down and to the right. (0,0) is where the viewBox
- * puts it.
- * 2. Scale to the correct resolution (see computation above).
- */
- this.add(scaling + " 0 0 -" + scaling + " "
- + contentRectangle.getX() + " "
- + contentRectangle.getY()
- + " cm" + EOL);
-
-// final SVGSVGElement svg = svgDocument.getRootElement();
-// final AffineTransform at = ViewBox.getPreserveAspectRatioTransform(
-// svg,
-// (float) contentRectangle.getWidth(),
-// (float) contentRectangle.getHeight());
-// if (!at.isIdentity()) {
-// /* TODO: This logic needs to be integrated with the regular PDF
-// * classes. */
-// final double[] vals =
-// new double[PsUtil.MATRIX_QTY_ELEMENTS];
-// at.getMatrix(vals);
-// final String matrixString = octalMatrixToString(vals);
-// this.add(matrixString + "cm");
-// }
- }
-
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXForm.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXForm.java 2007-06-28 20:02:49 UTC (rev 9871)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXForm.java 2007-06-28 21:02:32 UTC (rev 9872)
@@ -28,7 +28,6 @@
package org.foray.pdf.object;
-import org.axsl.graphicR.EPSGraphic;
import org.axsl.graphicR.Graphic;
import org.axsl.graphicR.GraphicException;
import org.axsl.pdfW.PDFException;
@@ -89,11 +88,7 @@
* {@inheritDoc}
*/
protected String xObjectDictionary() {
- if (! (this.getGraphic() instanceof EPSGraphic)) {
- return "";
- }
- final EPSGraphic eps = (EPSGraphic) this.getGraphic();
- final float[] boundingBox = eps.getBBox();
+ final float[] boundingBox = this.getBoundingBox();
final float llx = boundingBox[BoundingBox.BBOX_LOWER_LEFT_X_INDEX];
final float lly = boundingBox[BoundingBox.BBOX_LOWER_LEFT_Y_INDEX];
final float urx = boundingBox[BoundingBox.BBOX_UPPER_RIGHT_X_INDEX];
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXFormSvg.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXFormSvg.java 2007-06-28 20:02:49 UTC (rev 9871)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXFormSvg.java 2007-06-28 21:02:32 UTC (rev 9872)
@@ -30,11 +30,13 @@
import org.foray.ps.FOrayBoundingBox;
+import org.axsl.fontR.FontConsumer;
import org.axsl.graphicR.GraphicException;
import org.axsl.graphicR.SVGGraphic;
import org.axsl.psR.BoundingBox;
import java.awt.geom.Rectangle2D;
+import java.io.ByteArrayOutputStream;
/**
* A PDF "Form" XObject containing an SVG.
@@ -44,27 +46,43 @@
/** The Graphic instance associated with this XObject. */
private SVGGraphic graphic;
+ /** The FontConsumer to use for resolving fonts in the SVG. */
+ private FontConsumer fontConsumer;
+
+ /** True if text should be stroked, false if it should use a font. */
+ private boolean strokeText;
+
/**
* Constructor.
* @param doc The parent PDF document.
* @param img The form to be encapsulated.
* @param contentRectangle The content rectangle.
* @param clipRectangle The rectangle to which the image should be clipped.
+ * @param fontConsumer The font consumer to use for resolving fonts in the
+ * SVG.
+ * @param strokeText Set to true if text should be stroked, false if it
+ * should be drawn with a font.
* @throws GraphicException For errors getting the appropriate filter.
*/
public PDFXFormSvg(final PDFDocument doc, final SVGGraphic img,
final Rectangle2D.Float contentRectangle,
- final Rectangle2D.Float clipRectangle) throws GraphicException {
+ final Rectangle2D.Float clipRectangle,
+ final FontConsumer fontConsumer, final boolean strokeText)
+ throws GraphicException {
super(doc, img, contentRectangle, clipRectangle);
this.graphic = img;
+ this.fontConsumer = fontConsumer;
+ this.strokeText = strokeText;
}
/**
* {@inheritDoc}
*/
protected byte[] getPdfContent() throws GraphicException {
- /* TODO: Implement this. */
- return new byte[0];
+ final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
+ this.graphic.drawPdfStreamContent(outputStream, this.getPDFDocument(),
+ this.fontConsumer, this.strokeText);
+ return outputStream.toByteArray();
}
/**
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXObject.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXObject.java 2007-06-28 20:02:49 UTC (rev 9871)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXObject.java 2007-06-28 21:02:32 UTC (rev 9872)
@@ -38,6 +38,7 @@
import org.foray.ps.filter.DctEncodeFilter;
import org.foray.ps.filter.PSEncodeFilter;
+import org.axsl.fontR.FontConsumer;
import org.axsl.graphicR.EPSGraphic;
import org.axsl.graphicR.Graphic;
import org.axsl.graphicR.GraphicException;
@@ -102,12 +103,17 @@
* @param img The graphic to be encapsulated.
* @param contentRectangle The content rectangle.
* @param clipRectangle The rectangle to which the image should be clipped.
+ * @param fontConsumer The font consumer to use for resolving fonts in the
+ * SVG.
+ * @param strokeText Set to true if text should be stroked, false if it
* @return An appropriate PDFXObject instance that encapsulates the input.
* @throws GraphicException For errors getting the appropriate filter.
*/
public static PDFXObject makeXObject(final PDFDocument pdfDoc,
final Graphic img, final Rectangle2D.Float contentRectangle,
- final Rectangle2D.Float clipRectangle) throws GraphicException {
+ final Rectangle2D.Float clipRectangle,
+ final FontConsumer fontConsumer, final boolean strokeText)
+ throws GraphicException {
/* If it has already been created, reuse it ... */
PDFXObject xObject = pdfDoc.findXObject(img.getURL());
if (xObject != null) {
@@ -122,7 +128,7 @@
} else if (img instanceof SVGGraphic) {
final SVGGraphic svgGraphic = (SVGGraphic) img;
xObject = new PDFXFormSvg(pdfDoc, svgGraphic, contentRectangle,
- clipRectangle);
+ clipRectangle, fontConsumer, strokeText);
} else if (img.getGraphicType() == Graphic.Type.PDF) {
xObject = new PDFXReference(pdfDoc, img, contentRectangle,
clipRectangle);
Modified: trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2007-06-28 20:02:49 UTC (rev 9871)
+++ trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2007-06-28 21:02:32 UTC (rev 9872)
@@ -259,8 +259,8 @@
convertMillipointRectangle(contentRectangle);
final Rectangle2D.Float pdfClipRectangle = convertMillipointRectangle(
clipRectangle);
- getContentStream().drawGraphic(pdfContentRectangle, pdfClipRectangle,
- image);
+ getContentStream().drawGraphic(image, pdfContentRectangle,
+ pdfClipRectangle, area.getFontConsumer(), false);
}
/**
@@ -272,7 +272,7 @@
convertMillipointRectangle(contentRectangle);
final Rectangle2D.Float pdfClipRectangle = convertMillipointRectangle(
clipRectangle);
- getContentStream().drawSVGDocument(graphic, pdfContentRectangle,
+ getContentStream().drawGraphic(graphic, pdfContentRectangle,
pdfClipRectangle, area.getFontConsumer(), getStrokeSVGText());
addSVGLinks(graphic);
}
@@ -300,7 +300,7 @@
toPoints(area.crOriginX()), toPoints(area.crOriginY()),
toPoints(area.crIPD()), toPoints(area.crBPD()));
final SVGGraphic svgGraphic = area.getSVGGraphic();
- getContentStream().drawSVGDocument(svgGraphic,
+ getContentStream().drawGraphic(svgGraphic,
contentRectangle, null, this.getFontConsumer(),
getStrokeSVGText());
addSVGLinks(svgGraphic);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-06-29 19:51:54
|
Revision: 9884
http://svn.sourceforge.net/foray/?rev=9884&view=rev
Author: victormote
Date: 2007-06-29 12:51:52 -0700 (Fri, 29 Jun 2007)
Log Message:
-----------
Conform to axsl changes allowing a destination to register itself as a named destination instead of actually returning a separate object that encapsulates the destination.
Modified Paths:
--------------
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFExplicitDestination.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNameTree.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNamedDestination.java
trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java 2007-06-29 18:12:24 UTC (rev 9883)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java 2007-06-29 19:51:52 UTC (rev 9884)
@@ -695,10 +695,19 @@
* Add a named destination to this document.
* @param name The name to which <code>destination</code> should be mapped.
* @param destination The destination to be mapped to <code>name</code>.
+ * @throws PDFException If <code>name</code> has already been registered
+ * in this document.
*/
public void addNamedDestination(final String name,
- final PDFDestination destination) {
- this.getRoot().getDestinations().add(name, destination);
+ final PDFDestination destination) throws PDFException {
+ final PDFNameTree<PDFDestination> destinations =
+ this.getRoot().getDestinations();
+ final PDFDestination existingDestination = destinations.get(name);
+ if (existingDestination == null) {
+ destinations.add(name, destination);
+ } else {
+ throw new PDFException("Named destination already exists: " + name);
+ }
}
/**
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFExplicitDestination.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFExplicitDestination.java 2007-06-29 18:12:24 UTC (rev 9883)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFExplicitDestination.java 2007-06-29 19:51:52 UTC (rev 9884)
@@ -34,6 +34,8 @@
package org.foray.pdf.object;
+import org.axsl.pdfW.PDFException;
+
/**
* A PDF Explicit Destination, a destination that points to a specific page /
* location / view. An Explicit Destination is by definition an array object.
@@ -52,6 +54,10 @@
/** The y axis location of the destination. */
private float topPosition = 0;
+ /** The name, if any, that has been assigned to this destination. If not
+ * null, this is a "named destination". */
+ private String name;
+
/**
* Constructor.
* @param doc The parent PDF document.
@@ -82,13 +88,11 @@
/**
* {@inheritDoc}
*/
- public PDFNamedDestination createPDFNamedDestination(
- final String name) {
- final org.foray.pdf.object.PDFNamedDestination destination
- = new org.foray.pdf.object.PDFNamedDestination(
- this.getPDFDocument(), name, this);
+ public void registerName(final String name) throws PDFException {
+ if (this.name != null) {
+ throw new PDFException("Destination already named: " + this.name);
+ }
this.getPDFDocument().addNamedDestination(name, this);
- return destination;
}
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNameTree.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNameTree.java 2007-06-29 18:12:24 UTC (rev 9883)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNameTree.java 2007-06-29 19:51:52 UTC (rev 9884)
@@ -78,4 +78,13 @@
this.names.put(key, value);
}
+ /**
+ * Returns a mapped item from its key.
+ * @param key The key.
+ * @return The mapped item, or null if the key does not exist in this tree.
+ */
+ public T get(final String key) {
+ return this.names.get(key);
+ }
+
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNamedDestination.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNamedDestination.java 2007-06-29 18:12:24 UTC (rev 9883)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNamedDestination.java 2007-06-29 19:51:52 UTC (rev 9884)
@@ -34,8 +34,7 @@
* See PDF Reference, 2nd Edition, Section 7.2.1 for more information about
* PDF Destinations in general, and Named Destinations in particular.
*/
-public class PDFNamedDestination extends PDFDestination
- implements org.axsl.pdfW.PDFNamedDestination {
+public class PDFNamedDestination extends PDFDestination {
/** The name that is used as the key to the destination. */
private String name;
Modified: trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2007-06-29 18:12:24 UTC (rev 9883)
+++ trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2007-06-29 19:51:52 UTC (rev 9884)
@@ -469,14 +469,19 @@
* the output, and creating them.
* @param area The root of the AreaTree fragment in which destinations
* should be sought.
+ * @throws OutputException If a destination already exists.
*/
- private void renderDestinations(final Area area) {
+ private void renderDestinations(final Area area) throws OutputException {
if (area.destinationName() != null) {
final PDFExplicitDestination explicitDest =
this.currentPage.createPDFExplicitDestination(
toPoints(area.crOriginX()),
toPoints(area.crOriginY()));
- explicitDest.createPDFNamedDestination(area.traitId());
+ try {
+ explicitDest.registerName(area.destinationName());
+ } catch (final PDFException e) {
+ throw new OutputException(e);
+ }
}
if (area.isLinkRoot()) {
createBasicLink(area);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-06-29 20:01:27
|
Revision: 9885
http://svn.sourceforge.net/foray/?rev=9885&view=rev
Author: victormote
Date: 2007-06-29 13:01:29 -0700 (Fri, 29 Jun 2007)
Log Message:
-----------
Conform to axsl changes renaming a class and a method.
Modified Paths:
--------------
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFExplicitDestination.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFPage.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFRoot.java
trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
Removed Paths:
-------------
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNamedDestination.java
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java 2007-06-29 19:51:52 UTC (rev 9884)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java 2007-06-29 20:01:29 UTC (rev 9885)
@@ -699,10 +699,11 @@
* in this document.
*/
public void addNamedDestination(final String name,
- final PDFDestination destination) throws PDFException {
- final PDFNameTree<PDFDestination> destinations =
+ final PDFExplicitDestination destination) throws PDFException {
+ final PDFNameTree<PDFExplicitDestination> destinations =
this.getRoot().getDestinations();
- final PDFDestination existingDestination = destinations.get(name);
+ final PDFExplicitDestination existingDestination = destinations.get(
+ name);
if (existingDestination == null) {
destinations.add(name, destination);
} else {
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFExplicitDestination.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFExplicitDestination.java 2007-06-29 19:51:52 UTC (rev 9884)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFExplicitDestination.java 2007-06-29 20:01:29 UTC (rev 9885)
@@ -42,8 +42,8 @@
* See PDF Reference, 2nd Edition, Section 7.2.1 for more information about
* PDF Destinations in general, and Explicit Destinations in particular.
*/
-public class PDFExplicitDestination extends PDFDestination
- implements org.axsl.pdfW.PDFExplicitDestination {
+public class PDFExplicitDestination extends PDFObject
+ implements org.axsl.pdfW.PDFDestination {
/** The page to which this Destination goes. */
private PDFPage page;
Deleted: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNamedDestination.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNamedDestination.java 2007-06-29 19:51:52 UTC (rev 9884)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFNamedDestination.java 2007-06-29 20:01:29 UTC (rev 9885)
@@ -1,74 +0,0 @@
-/*
- * Copyright 2004 The FOray Project.
- * http://www.foray.org
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * This work is in part derived from the following work(s), used with the
- * permission of the licensor:
- * Apache FOP, licensed by the Apache Software Foundation
- *
- */
-
-/*
- * $LastChangedRevision$
- * $LastChangedDate$
- * $LastChangedBy$
- */
-
-package org.foray.pdf.object;
-
-/**
- * A PDF Named Destination, a destination that points to another destination,
- * but can be referred to by name.
- * See PDF Reference, 2nd Edition, Section 7.2.1 for more information about
- * PDF Destinations in general, and Named Destinations in particular.
- */
-public class PDFNamedDestination extends PDFDestination {
-
- /** The name that is used as the key to the destination. */
- private String name;
-
- /** The "real" destination.
- * This can currently be another PDFNamedDestination, as there seems to be
- * no reason to disallow it. */
- private PDFDestination destination;
-
- /**
- * Constructs a PDFNamedDestination object.
- * @param doc The parent PDF document.
- * @param name The name of the destination.
- * @param destination The PDFDestination that should be referred to by
- * this named destination.
- */
- public PDFNamedDestination(final PDFDocument doc, final String name,
- final PDFDestination destination) {
- super(doc);
- this.name = name;
- this.destination = destination;
- }
-
- /**
- * {@inheritDoc}
- * Outputs a key/value pair in a name tree structure.
- * The key is the destination name the value is an indirect reference to
- * the referred destination.
- */
- protected String toPDF() {
- final StringBuilder result = new StringBuilder();
- result.append("(" + this.name + ") ");
- result.append(this.destination.pdfReference() + EOL);
- return result.toString();
- }
-
-}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFPage.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFPage.java 2007-06-29 19:51:52 UTC (rev 9884)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFPage.java 2007-06-29 20:01:29 UTC (rev 9885)
@@ -211,7 +211,7 @@
/**
* {@inheritDoc}
*/
- public PDFExplicitDestination createPDFExplicitDestination(
+ public PDFExplicitDestination createDestination(
final float xPosition, final float yPosition) {
final org.foray.pdf.object.PDFExplicitDestination destination
= new org.foray.pdf.object.PDFExplicitDestination(
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFRoot.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFRoot.java 2007-06-29 19:51:52 UTC (rev 9884)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFRoot.java 2007-06-29 20:01:29 UTC (rev 9885)
@@ -40,7 +40,7 @@
private PDFOutline outline;
/** Collection of destinations. */
- private PDFNameTree<PDFDestination> destinations;
+ private PDFNameTree<PDFExplicitDestination> destinations;
/** The embedded files. */
private PDFNameTree<PDFEmbeddedFileStream> embeddedFiles;
@@ -68,9 +68,9 @@
* Returns the destinations in this document.
* @return The destinations in this document.
*/
- public PDFNameTree<PDFDestination> getDestinations() {
+ public PDFNameTree<PDFExplicitDestination> getDestinations() {
if (destinations == null) {
- destinations = new PDFNameTree<PDFDestination>(
+ destinations = new PDFNameTree<PDFExplicitDestination>(
this.getPDFDocument());
}
return destinations;
Modified: trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2007-06-29 19:51:52 UTC (rev 9884)
+++ trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2007-06-29 20:01:29 UTC (rev 9885)
@@ -60,7 +60,7 @@
import org.axsl.pdfW.PDFDocument;
import org.axsl.pdfW.PDFEncryption;
import org.axsl.pdfW.PDFException;
-import org.axsl.pdfW.PDFExplicitDestination;
+import org.axsl.pdfW.PDFDestination;
import org.axsl.pdfW.PDFLineCapStyle;
import org.axsl.pdfW.PDFOutlineItem;
import org.axsl.pdfW.PDFOutlineParent;
@@ -473,8 +473,8 @@
*/
private void renderDestinations(final Area area) throws OutputException {
if (area.destinationName() != null) {
- final PDFExplicitDestination explicitDest =
- this.currentPage.createPDFExplicitDestination(
+ final PDFDestination explicitDest =
+ this.currentPage.createDestination(
toPoints(area.crOriginX()),
toPoints(area.crOriginY()));
try {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-06-30 22:40:03
|
Revision: 9902
http://svn.sourceforge.net/foray/?rev=9902&view=rev
Author: victormote
Date: 2007-06-30 15:39:46 -0700 (Sat, 30 Jun 2007)
Log Message:
-----------
Conform to axsl changes of type names.
Modified Paths:
--------------
trunk/foray/foray-app/src/java/org/foray/app/OutputTargetFactory.java
trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java
trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontOutput.java
trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPDF.java
trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPS.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/ForeignXML.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/FOrayGraphicServer.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/PDFGraphicsState.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFCIDFont.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFColor.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDestination.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFEncryption.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontDescriptor.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontFileStream.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFICCStream.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFLink.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFObject.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFOutlineItem.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFOutlineParent.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFPage.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFPathPaint.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFStream.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFToUnicodeCMap.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXForm.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXFormEps.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXFormSvg.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXImage.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXObject.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXReference.java
trunk/foray/foray-render/src/java/org/foray/render/Renderer.java
trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/pcl/PCLRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/svg/SVGRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/txt/TXTRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java
Modified: trunk/foray/foray-app/src/java/org/foray/app/OutputTargetFactory.java
===================================================================
--- trunk/foray/foray-app/src/java/org/foray/app/OutputTargetFactory.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-app/src/java/org/foray/app/OutputTargetFactory.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -41,7 +41,7 @@
import org.axsl.graphicR.GraphicServer;
import org.axsl.output.OutputTarget;
-import org.axsl.pdfW.PDFDocument;
+import org.axsl.pdfW.PdfDocument;
import org.apache.commons.logging.Log;
@@ -123,7 +123,7 @@
break;
}
default: {
- final PDFDocument document = new org.foray.pdf.object.PDFDocument(
+ final PdfDocument document = new org.foray.pdf.object.PDFDocument(
outputStream, logger);
renderer = new PDFRenderer(logger, outputOptions, document);
break;
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -29,7 +29,7 @@
package org.foray.area;
import org.axsl.areaR.RenderVisitor;
-import org.axsl.foR.FoForeignXML;
+import org.axsl.foR.FoForeignXml;
import org.axsl.foR.fo.GraftingPoint;
import org.axsl.foR.fo.InstreamForeignObject;
import org.axsl.foR.svg.SvgElement;
@@ -126,7 +126,7 @@
newFoArea.viewportBPD());
// Create the reference area for the content.
- final FoForeignXML foreign = generatedBy.getForeignXML();
+ final FoForeignXml foreign = generatedBy.getForeignXML();
if (foreign instanceof SvgElement) {
final SvgElement svgElement = (SvgElement) foreign;
final SVGArea svgArea = SVGArea.makeSvgArea(svgElement, newFoArea,
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -33,7 +33,7 @@
import org.axsl.foR.fo.GraftingPoint;
import org.axsl.foR.svg.SvgElement;
import org.axsl.graphicR.Graphic;
-import org.axsl.graphicR.SVGGraphic;
+import org.axsl.graphicR.SvgGraphic;
import java.util.Collections;
import java.util.List;
@@ -43,7 +43,7 @@
* content that is in a {@link ForeignObjectArea} <em>viewport </em> area.
*/
public final class SVGArea extends AbstractInlineArea
- implements org.axsl.areaR.SVGArea {
+ implements org.axsl.areaR.SvgArea {
/** The "generated-by" trait, as defined in Section 6.1.1. */
private FOLinkage generatedBy;
@@ -78,7 +78,7 @@
/**
* {@inheritDoc}
*/
- public SVGGraphic getSVGGraphic() {
+ public SvgGraphic getSVGGraphic() {
final SvgElement generatedBy = traitGeneratedBy();
return generatedBy.getSVGGraphic();
}
Modified: trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontOutput.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontOutput.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontOutput.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -39,7 +39,7 @@
import org.axsl.fontR.Font;
import org.axsl.fontR.FontUse;
import org.axsl.fontR.output.FontOutput;
-import org.axsl.fontR.output.FontPDF;
+import org.axsl.fontR.output.FontPdf;
import org.axsl.psR.Encoding;
import org.apache.commons.logging.Log;
@@ -203,7 +203,7 @@
* equal to the element index + {@link Encoding#getFirstIndex()}.
* For fonts that have been subsetted, only the characters that are
* included in the subset are returned.
- * @see FontPDF#getWidths()
+ * @see FontPdf#getWidths()
*/
public short[] getWidths() {
final FreeStandingFont fsf = this.getFreeStandingFont();
@@ -262,7 +262,7 @@
* {@link #getWidths()}.
* This is needed when embedding some types of fonts in a PDF file.
* @return The integer value of the first character code in this font.
- * @see FontPDF#getFirstIndex()
+ * @see FontPdf#getFirstIndex()
*/
public int getFirstIndex() {
return this.fontUse.getEncoding().getFirstIndex();
@@ -275,7 +275,7 @@
* {@link #getWidths()}.
* This is needed when embedding some types of fonts in a PDF file.
* @return The integer value of the last character code in this font.
- * @see FontPDF#getLastIndex()
+ * @see FontPdf#getLastIndex()
*/
public int getLastIndex() {
return this.fontUse.getEncoding().getLastIndex();
Modified: trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPDF.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPDF.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPDF.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -35,7 +35,7 @@
import org.foray.font.FreeStandingFont;
import org.foray.font.format.Type1File;
-import org.axsl.fontR.output.FontPDF;
+import org.axsl.fontR.output.FontPdf;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
@@ -43,7 +43,7 @@
/**
* Helper class for applications using or embedding fonts in PDF output.
*/
-public class FOrayFontPDF extends FOrayFontOutput implements FontPDF {
+public class FOrayFontPDF extends FOrayFontOutput implements FontPdf {
/** Font Descriptor Flag bit for "FixedPitch". See PDFRM, 3rd, 5.7.1. */
public static final byte FLAG_BIT_FIXED_PITCH = 1;
Modified: trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPS.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPS.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPS.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -34,14 +34,14 @@
import org.foray.ps.filter.PSFilter;
import org.axsl.fontR.Font;
-import org.axsl.fontR.output.FontPS;
+import org.axsl.fontR.output.FontPs;
import java.io.IOException;
/**
* Helper class for applications using or embedding fonts in PostScript output.
*/
-public class FOrayFontPS extends FOrayFontOutput implements FontPS {
+public class FOrayFontPS extends FOrayFontOutput implements FontPs {
/**
* Constructor.
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/ForeignXML.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/ForeignXML.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/ForeignXML.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -62,7 +62,7 @@
* @see InstreamForeignObject
*/
public abstract class ForeignXML extends FObj
- implements org.axsl.foR.FoForeignXML {
+ implements org.axsl.foR.FoForeignXml {
/** The parent of this node. */
private InstreamForeignObject parent;
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -136,7 +136,7 @@
/**
* {@inheritDoc}
*/
- public org.axsl.foR.FoForeignXML getForeignXML() {
+ public org.axsl.foR.FoForeignXml getForeignXML() {
// Cast verified in end().
return (ForeignXML) getChildren().get(0);
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -38,7 +38,7 @@
import org.axsl.foR.FoTreeException;
import org.axsl.foR.ProxyFactory;
import org.axsl.graphicR.GraphicException;
-import org.axsl.graphicR.SVGGraphic;
+import org.axsl.graphicR.SvgGraphic;
import org.w3c.dom.Document;
import org.w3c.dom.svg.SVGDocument;
@@ -50,7 +50,7 @@
implements org.axsl.foR.svg.SvgElement {
/** The SVG Graphic instance for this inline SVG. */
- private SVGGraphic svg;
+ private SvgGraphic svg;
/**
* Constructor.
@@ -113,7 +113,7 @@
/**
* {@inheritDoc}
*/
- public SVGGraphic getSVGGraphic() {
+ public SvgGraphic getSVGGraphic() {
return this.svg;
}
@@ -165,7 +165,7 @@
* @throws GraphicException For errors creating the SVG Graphic from the
* SVG Document.
*/
- private SVGGraphic getSVG() throws GraphicException {
+ private SvgGraphic getSVG() throws GraphicException {
if (this.svg == null) {
final SVGDocument svgDocument = this.getSVGDocument();
this.svg = this.getGraphicServer().makeSvgGraphic(svgDocument);
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -44,7 +44,7 @@
* An EPS (encapsulated Postscript) graphic.
*/
public class EPSGraphic extends FOrayGraphic
- implements org.axsl.graphicR.EPSGraphic {
+ implements org.axsl.graphicR.EpsGraphic {
/** The size, in bytes, of the read buffer to use when reading the file. */
private static final int READ_BUFFER_SIZE = 20480;
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/FOrayGraphicServer.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/FOrayGraphicServer.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/FOrayGraphicServer.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -44,7 +44,6 @@
import org.axsl.graphicR.GraphicException;
import org.axsl.graphicR.GraphicServer;
-import org.axsl.graphicR.SVGGraphic;
import org.apache.batik.dom.svg.SVGDOMImplementation;
import org.apache.batik.transcoder.TranscoderException;
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -79,7 +79,7 @@
* An SVG Graphic.
*/
public class SVGGraphic extends FOrayGraphic
- implements org.axsl.graphicR.SVGGraphic {
+ implements org.axsl.graphicR.SvgGraphic {
/** Constant for the number of command-line arguments needed. */
private static final int QTY_CL_ARGS = 3;
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/PDFGraphicsState.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/PDFGraphicsState.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/PDFGraphicsState.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -29,8 +29,8 @@
package org.foray.pdf;
import org.axsl.fontR.FontUse;
-import org.axsl.pdfW.PDFLineCapStyle;
-import org.axsl.pdfW.PDFTextRenderingMode;
+import org.axsl.pdfW.PdfLineCapStyle;
+import org.axsl.pdfW.PdfTextRenderingMode;
import java.awt.Color;
@@ -59,7 +59,7 @@
private float dashPhase;
/** The line cap style. */
- private PDFLineCapStyle lineCapStyle;
+ private PdfLineCapStyle lineCapStyle;
/*--------------------- Start Text State Parameters. -------------------- */
@@ -82,7 +82,7 @@
private float fontSize;
/** The text rendering mode. */
- private PDFTextRenderingMode textRenderingMode;
+ private PdfTextRenderingMode textRenderingMode;
/** The text rise, expressed in unscaled text space units. */
private float textRise;
@@ -134,7 +134,7 @@
this.fillColor = Color.BLACK;
this.dashArray = new float[0];
this.dashPhase = 0;
- this.lineCapStyle = PDFLineCapStyle.BUTT_CAP;
+ this.lineCapStyle = PdfLineCapStyle.BUTT_CAP;
this.characterSpacing = 0;
this.wordSpacing = 0;
@@ -142,7 +142,7 @@
this.leading = 0;
this.font = null;
this.fontSize = -1;
- this.textRenderingMode = PDFTextRenderingMode.FILL;
+ this.textRenderingMode = PdfTextRenderingMode.FILL;
this.textRise = 0;
this.textKnockout = true;
}
@@ -332,7 +332,7 @@
* @param newLineCapStyle The new line cap style.
* @return True iff the Graphics State was changed by this operation.
*/
- public boolean setLineCapStyle(final PDFLineCapStyle newLineCapStyle) {
+ public boolean setLineCapStyle(final PdfLineCapStyle newLineCapStyle) {
boolean anyChange = false;
if (newLineCapStyle != this.lineCapStyle) {
this.lineCapStyle = newLineCapStyle;
@@ -377,7 +377,7 @@
* @return True iff the Graphics State was changed by this operation.
*/
public boolean setTextRenderingMode(
- final PDFTextRenderingMode newTextRenderingMode) {
+ final PdfTextRenderingMode newTextRenderingMode) {
boolean anyChange = false;
if (newTextRenderingMode != this.textRenderingMode) {
this.textRenderingMode = newTextRenderingMode;
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFCIDFont.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFCIDFont.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFCIDFont.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -34,7 +34,7 @@
import org.axsl.fontR.Font;
import org.axsl.fontR.FontUse;
-import org.axsl.fontR.output.FontPDF;
+import org.axsl.fontR.output.FontPdf;
/**
* Class representing a "character identifier" font. See PDF Reference, Second
@@ -185,7 +185,7 @@
if (! fsFont.getFont().isEmbeddable()) {
return null;
}
- final FontPDF outputHelper = (FontPDF) fsFont.getFontOutput(
+ final FontPdf outputHelper = (FontPdf) fsFont.getFontOutput(
"application/pdf");
return outputHelper.getWidths();
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFColor.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFColor.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFColor.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -36,7 +36,7 @@
/**
* A color in a PDF document.
*/
-public class PDFColor extends PDFPathPaint implements org.axsl.pdfW.PDFColor {
+public class PDFColor extends PDFPathPaint implements org.axsl.pdfW.PdfColor {
/** Constant used to convert between int (0 thru 255) and float (0 thru 1)
* values. */
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -35,8 +35,8 @@
import org.axsl.fontR.FontUse;
import org.axsl.graphicR.Graphic;
import org.axsl.graphicR.GraphicException;
-import org.axsl.pdfW.PDFLineCapStyle;
-import org.axsl.pdfW.PDFTextRenderingMode;
+import org.axsl.pdfW.PdfLineCapStyle;
+import org.axsl.pdfW.PdfTextRenderingMode;
import java.awt.Color;
import java.awt.geom.Line2D;
@@ -47,7 +47,7 @@
* streams.
*/
public class PDFContentStream extends PDFStream
- implements org.axsl.pdfW.PDFContentStream {
+ implements org.axsl.pdfW.PdfContentStream {
/** The current graphics state. */
private PDFGraphicsState currentGraphicsState = new PDFGraphicsState();
@@ -213,10 +213,10 @@
* {@inheritDoc}
*/
public void setTextRenderingMode(
- final PDFTextRenderingMode newTextRenderingMode) {
- PDFTextRenderingMode mode = newTextRenderingMode;
+ final PdfTextRenderingMode newTextRenderingMode) {
+ PdfTextRenderingMode mode = newTextRenderingMode;
if (mode == null) {
- mode = PDFTextRenderingMode.FILL;
+ mode = PdfTextRenderingMode.FILL;
}
if (! this.getGS().setTextRenderingMode(mode)) {
// Nothing needs to change.
@@ -251,7 +251,7 @@
/**
* {@inheritDoc}
*/
- public void setLineCapStyle(final PDFLineCapStyle newLineCapStyle) {
+ public void setLineCapStyle(final PdfLineCapStyle newLineCapStyle) {
if (! this.getGS().setLineCapStyle(newLineCapStyle)) {
// Nothing needs to change.
return;
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDestination.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDestination.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDestination.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -34,7 +34,7 @@
package org.foray.pdf.object;
-import org.axsl.pdfW.PDFException;
+import org.axsl.pdfW.PdfException;
/**
* A PDF Explicit Destination, a destination that points to a specific page /
@@ -43,7 +43,7 @@
* PDF Destinations in general, and Explicit Destinations in particular.
*/
public class PDFDestination extends PDFObject
- implements org.axsl.pdfW.PDFDestination {
+ implements org.axsl.pdfW.PdfDestination {
/** The page to which this Destination goes. */
private PDFPage page;
@@ -88,9 +88,9 @@
/**
* {@inheritDoc}
*/
- public void registerName(final String name) throws PDFException {
+ public void registerName(final String name) throws PdfException {
if (this.name != null) {
- throw new PDFException("Destination already named: " + this.name);
+ throw new PdfException("Destination already named: " + this.name);
}
this.getPDFDocument().addNamedDestination(name, this);
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -38,9 +38,8 @@
import org.axsl.fontR.Font;
import org.axsl.fontR.FontUse;
-import org.axsl.pdfW.PDFException;
-import org.axsl.pdfW.PDFPage;
-import org.axsl.pdfW.PDFVersion;
+import org.axsl.pdfW.PdfException;
+import org.axsl.pdfW.PdfVersion;
import org.axsl.psR.Encoding;
import org.apache.commons.logging.Log;
@@ -70,7 +69,7 @@
* keep track of the character position of each object. The document
* also keeps direct track of the /Root, /Info and /Resources objects.
*/
-public class PDFDocument implements org.axsl.pdfW.PDFDocument,
+public class PDFDocument implements org.axsl.pdfW.PdfDocument,
org.axsl.graphicR.GraphicPdfContext {
/** Name of the CharSet that should be used when converting Strings to
@@ -93,7 +92,7 @@
/** The version of PDF that this document should create when it is
* written. */
- private PDFVersion pdfVersion = PDFVersion.VERSION_1_6;
+ private PdfVersion pdfVersion = PdfVersion.VERSION_1_6;
/** The current character position. */
private int position = 0;
@@ -226,7 +225,7 @@
* {@inheritDoc}
* If not set, the default value is PDF_VERSION_1_6.
*/
- public void setVersion(final PDFVersion newVersion) {
+ public void setVersion(final PdfVersion newVersion) {
if (newVersion == null) {
throw new IllegalArgumentException("Cannot set a null PDF Version");
}
@@ -282,7 +281,7 @@
/**
* {@inheritDoc}
*/
- public void writeIndirectObjects() throws PDFException {
+ public void writeIndirectObjects() throws PdfException {
/*
* Use a "while" loop here, because as each object is written, it has
* potential to reference another object indirectly, which will add an
@@ -323,7 +322,7 @@
/**
* {@inheritDoc}
*/
- public void writeHeader() throws PDFException {
+ public void writeHeader() throws PdfException {
this.position = 0;
final StringBuilder buffer = new StringBuilder();
// The PDF identifier comment.
@@ -334,7 +333,7 @@
try {
this.outputStream.write(bytes);
} catch (final IOException e) {
- throw new PDFException(e);
+ throw new PdfException(e);
}
this.position += bytes.length;
}
@@ -342,15 +341,15 @@
/**
* {@inheritDoc}
*/
- public void close() throws PDFException {
+ public void close() throws PdfException {
outputTrailer();
}
/**
* Write the document trailer.
- * @throws PDFException For errors while writing to the output stream.
+ * @throws PdfException For errors while writing to the output stream.
*/
- private void outputTrailer() throws PDFException {
+ private void outputTrailer() throws PdfException {
writeIndirectObjects();
for (int i = 0; i < indirectObjectsLast.size(); i++) {
final PDFObject o = indirectObjectsLast.get(i);
@@ -368,7 +367,7 @@
try {
this.position += outputXref(this.outputStream);
} catch (final IOException e) {
- throw new PDFException(e);
+ throw new PdfException(e);
}
/* construct the trailer */
@@ -388,7 +387,7 @@
try {
this.outputStream.write(trailer);
} catch (final IOException e) {
- throw new PDFException(e);
+ throw new PdfException(e);
}
}
@@ -695,11 +694,11 @@
* Add a named destination to this document.
* @param name The name to which <code>destination</code> should be mapped.
* @param destination The destination to be mapped to <code>name</code>.
- * @throws PDFException If <code>name</code> has already been registered
+ * @throws PdfException If <code>name</code> has already been registered
* in this document.
*/
public void addNamedDestination(final String name,
- final PDFDestination destination) throws PDFException {
+ final PDFDestination destination) throws PdfException {
final PDFNameTree<PDFDestination> destinations =
this.getRoot().getDestinations();
final PDFDestination existingDestination = destinations.get(
@@ -707,7 +706,7 @@
if (existingDestination == null) {
destinations.add(name, destination);
} else {
- throw new PDFException("Named destination already exists: " + name);
+ throw new PdfException("Named destination already exists: " + name);
}
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFEncryption.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFEncryption.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFEncryption.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -48,7 +48,7 @@
*
*/
public class PDFEncryption extends PDFObject
- implements org.axsl.pdfW.PDFEncryption {
+ implements org.axsl.pdfW.PdfEncryption {
/**
* Private inner class for the encryption filter.
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java 2007-06-30 20:22:24 UTC (rev 9901)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java 2007-06-30 22:39:46 UTC (rev 9902)
@@ -32,7 +32,7 @@
import org.axsl.fontR.Font;
import org.axsl.fontR.FontUse;
-import org.axsl.fontR.output.FontPDF;
+import org.axsl.fontR.output.FontPdf;
import org.axsl.psR.Encoding;
import org.axsl.psR.EncodingVector;
@@ -45,7 +45,7 @@
*
* Fonts are specified on page 198 and onwards of the PDF 1.3 spec.
*/
-public class PDFFont extends PDFObject implements org.axsl.pdfW.PDFFont {
+public class PDFFont extends PDFObject implements org.axsl.pdfW.PdfFont {
/**
* Enumeration of the various font subtypes possible in a PDF document.
@@ -95,7 +95,7 @@
/** Local cache (for performance) of the font system's helper class for PDF
* output. */
- private FontPDF fontOutput = null;
+ private FontPdf fontOutput = null;
/** The sequentially-assigned font number for this font. */
private int fontCount;
@@ -433,9 +433,9 @@
* Return the font output instance.
* @return The font output instance.
*/
- public FontPDF getFontOutput() {
+ public FontPdf getFontOutput() {
if (this.fontOutput == null) {
- this.fontOutput = (FontPDF) fsFont.getFontOutput("application/pdf");
+ this.fontOutput = (FontPdf) fsFont.getFontOutput("application/pdf");
}
return this.fontOutput;
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontDescriptor.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontD...
[truncated message content] |
|
From: <vic...@us...> - 2007-06-30 23:45:32
|
Revision: 9903
http://svn.sourceforge.net/foray/?rev=9903&view=rev
Author: victormote
Date: 2007-06-30 16:45:34 -0700 (Sat, 30 Jun 2007)
Log Message:
-----------
Conform to axsl type name changes.
Modified Paths:
--------------
trunk/foray/foray-app/src/javatest/org/foray/app/area/AreaTreeCreator.java
trunk/foray/foray-areatree/src/java/org/foray/area/AbstractInlineArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/AbstractListItemContent.java
trunk/foray/foray-areatree/src/java/org/foray/area/AbstractTablePartContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java
trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/FOLinkageMarker.java
trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/ListItemArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java
trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java
trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java
trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java
trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/AbstractTablePartPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/BasicLinkPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/BlockContainerPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/BlockPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/CharacterPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ContinuedLabelPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ExternalGraphicPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FONodePL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FOTextPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FObjPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FlowPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FootnoteBodyPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FootnotePL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/InlinePL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/InstreamForeignObjectPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/LeaderPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ListBlockPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ListItemBodyPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ListItemLabelPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ListItemPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/NoLayoutPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PageNumberCitationPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PageNumberPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/RetrieveMarkerPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/StaticContentPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableCellPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TablePL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableRowPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/WrapperPL.java
Modified: trunk/foray/foray-app/src/javatest/org/foray/app/area/AreaTreeCreator.java
===================================================================
--- trunk/foray/foray-app/src/javatest/org/foray/app/area/AreaTreeCreator.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-app/src/javatest/org/foray/app/area/AreaTreeCreator.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -41,7 +41,7 @@
import org.foray.pioneer.PioneerFactory;
import org.foray.pioneer.PioneerLS;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import java.io.IOException;
@@ -111,7 +111,7 @@
final PageCollection collection = areaTree.makePageCollection(
pageSequence);
layout.formatPageSequence(collection);
- } catch (final AreaWException e) {
+ } catch (final WritableAreaException e) {
throw new FOrayException(e);
}
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AbstractInlineArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AbstractInlineArea.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AbstractInlineArea.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -29,7 +29,7 @@
package org.foray.area;
import org.axsl.areaR.GeneralInlineArea;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.common.value.RelativeAxis;
/**
@@ -82,7 +82,7 @@
* {@inheritDoc}
*/
public Area getOverflowArea(final Area childRequesting)
- throws AreaWException {
+ throws WritableAreaException {
return ancestorArea().getOverflowArea(this);
}
@@ -165,12 +165,12 @@
/**
* {@inheritDoc}
*/
- public void setParent(final AreaNode node) throws AreaWException {
+ public void setParent(final AreaNode node) throws WritableAreaException {
if (node instanceof LineArea) {
this.parent = (LineArea) node;
} else {
- throw new AreaWException("Parent of AbstractInlineArea must be a "
- + "LineArea");
+ throw new WritableAreaException("Parent of AbstractInlineArea must "
+ + "be a LineArea");
}
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AbstractListItemContent.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AbstractListItemContent.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AbstractListItemContent.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -29,7 +29,7 @@
package org.foray.area;
import org.axsl.areaR.RenderVisitor;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.areaW.BlockContentFactory;
import org.axsl.foR.fo.Block;
import org.axsl.foR.fo.BlockContainer;
@@ -81,11 +81,12 @@
/**
* {@inheritDoc}
*/
- public void setParent(final AreaNode node) throws AreaWException {
+ public void setParent(final AreaNode node) throws WritableAreaException {
if (node instanceof ListItemArea) {
this.parent = (ListItemArea) node;
} else {
- throw new AreaWException("Parent of " + this.getClass().getName()
+ throw new WritableAreaException("Parent of "
+ + this.getClass().getName()
+ "must be a " + ListItemArea.class.getName());
}
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AbstractTablePartContainer.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AbstractTablePartContainer.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AbstractTablePartContainer.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -29,7 +29,7 @@
package org.foray.area;
import org.axsl.areaR.BackgroundArea;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.common.value.RelativeAxis;
import org.axsl.foR.fo.GraftingPoint;
import org.axsl.foR.fo.TableRow;
@@ -100,11 +100,11 @@
/**
* {@inheritDoc}
*/
- public void setParent(final AreaNode node) throws AreaWException {
+ public void setParent(final AreaNode node) throws WritableAreaException {
if (node instanceof TableRA) {
this.parent = (TableRA) node;
} else {
- throw new AreaWException("Parent of " + this.getAreaName()
+ throw new WritableAreaException("Parent of " + this.getAreaName()
+ " must be a Table");
}
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -31,7 +31,7 @@
import org.foray.common.WKConstants;
import org.axsl.areaR.BackgroundArea;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.areaW.BlockContainerRA;
import org.axsl.common.value.AbsoluteAxis;
import org.axsl.common.value.AbsoluteDirection;
@@ -1308,11 +1308,11 @@
* @param childRequesting Child Areas ask
* @return The younger sister Area that should be used to handle the
* overflow condition.
- * @throws AreaWException If the Area is unable to find or create the
+ * @throws WritableAreaException If the Area is unable to find or create the
* overflow area.
*/
public abstract Area getOverflowArea(Area childRequesting)
- throws AreaWException;
+ throws WritableAreaException;
/**
* Returns the half-leading minimum trait for this area.
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -31,7 +31,7 @@
import org.foray.common.AbstractOrderedTreeNode;
import org.foray.common.OrderedTreeNode;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.foR.FoNode;
import org.axsl.foR.Fo;
import org.axsl.foR.fo.GraftingPoint;
@@ -81,10 +81,11 @@
/**
* Sets the parent node.
* @param node The new parent node.
- * @throws AreaWException If the parent node is not compatible with the
- * implementations specification for a parent node.
+ * @throws WritableAreaException If the parent node is not compatible with
+ * the implementations specification for a parent node.
*/
- public abstract void setParent(final AreaNode node) throws AreaWException;
+ public abstract void setParent(final AreaNode node)
+ throws WritableAreaException;
/**
* {@inheritDoc}
@@ -155,7 +156,7 @@
foNode);
markerLinkage.getNormalLinkage(graftingPoint);
linkage = markerLinkage;
- } catch (final AreaWException e) {
+ } catch (final WritableAreaException e) {
/* Ignore this. It should never happen as we have already tested
* for the condition that causes the exception, i.e. that foNode
* has no ancestor marker. */
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -31,7 +31,7 @@
import org.axsl.areaR.RenderVisitor;
import org.axsl.areaW.AreaTreeEvent;
import org.axsl.areaW.AreaTreeListener;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.foR.Fo;
import org.axsl.foR.FoNode;
import org.axsl.foR.fo.Bookmark;
@@ -145,7 +145,7 @@
* {@inheritDoc}
*/
public PageCollection makePageCollection(
- final PageSequence pageSequence) throws AreaWException {
+ final PageSequence pageSequence) throws WritableAreaException {
final int lastPageNumber;
final int collectionsProcessed = this.pageCollectionsProcessed.size();
if (collectionsProcessed > 0) {
@@ -370,8 +370,8 @@
/**
* {@inheritDoc}
*/
- public void setParent(final AreaNode node) throws AreaWException {
- throw new AreaWException("The AreaTree has no parent.");
+ public void setParent(final AreaNode node) throws WritableAreaException {
+ throw new WritableAreaException("The AreaTree has no parent.");
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -29,7 +29,7 @@
package org.foray.area;
import org.axsl.areaR.RenderVisitor;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.common.value.RelativeAxis;
import org.axsl.foR.Fo;
@@ -110,7 +110,7 @@
* {@inheritDoc}
*/
public Area getOverflowArea(final Area childRequesting)
- throws AreaWException {
+ throws WritableAreaException {
return ancestorArea().getOverflowArea(this);
}
@@ -168,7 +168,7 @@
/**
* {@inheritDoc}
*/
- public void setParent(final AreaNode node) throws AreaWException {
+ public void setParent(final AreaNode node) throws WritableAreaException {
this.parent = node;
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -30,7 +30,7 @@
import org.axsl.areaR.BlockContainerArea;
import org.axsl.areaR.RenderVisitor;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.common.value.AbsolutePosition;
import org.axsl.common.value.RelativeAxis;
import org.axsl.foR.Fo;
@@ -176,7 +176,7 @@
/**
* {@inheritDoc}
*/
- public void setParent(final AreaNode node) throws AreaWException {
+ public void setParent(final AreaNode node) throws WritableAreaException {
this.parent = node;
}
@@ -191,7 +191,7 @@
* {@inheritDoc}
*/
public Area getOverflowArea(final Area childRequesting)
- throws AreaWException {
+ throws WritableAreaException {
return ancestorArea().getOverflowArea(this);
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -29,7 +29,7 @@
package org.foray.area;
import org.axsl.areaR.RenderVisitor;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.foR.Fo;
import org.axsl.foR.fo.Bookmark;
import org.axsl.foR.fo.BookmarkTitle;
@@ -122,8 +122,8 @@
/**
* {@inheritDoc}
*/
- public void setParent(final AreaNode node) throws AreaWException {
- throw new AreaWException("BookmarkArea should never need to be "
+ public void setParent(final AreaNode node) throws WritableAreaException {
+ throw new WritableAreaException("BookmarkArea should never need to be "
+ "reparented.");
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -29,7 +29,7 @@
package org.foray.area;
import org.axsl.areaR.RenderVisitor;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.foR.fo.BookmarkTitle;
import org.axsl.fontR.Font;
@@ -106,12 +106,12 @@
/**
* {@inheritDoc}
*/
- public void setParent(final AreaNode node) throws AreaWException {
+ public void setParent(final AreaNode node) throws WritableAreaException {
if (node instanceof BookmarkArea) {
this.parent = (BookmarkArea) node;
} else {
- throw new AreaWException("Parent of BookmarkTitleArea must be "
- + "BookmarkArea");
+ throw new WritableAreaException("Parent of BookmarkTitleArea must "
+ + "be BookmarkArea");
}
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -29,7 +29,7 @@
package org.foray.area;
import org.axsl.areaR.RenderVisitor;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.foR.fo.BookmarkTree;
import java.util.ArrayList;
@@ -98,9 +98,9 @@
/**
* {@inheritDoc}
*/
- public void setParent(final AreaNode node) throws AreaWException {
- throw new AreaWException("BookmarkAreaTree should never need to be "
- + "reparented.");
+ public void setParent(final AreaNode node) throws WritableAreaException {
+ throw new WritableAreaException("BookmarkAreaTree should never need to "
+ + "be reparented.");
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/FOLinkageMarker.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/FOLinkageMarker.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/FOLinkageMarker.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -28,7 +28,7 @@
package org.foray.area;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.areaW.PageArea;
import org.axsl.foR.FoNode;
import org.axsl.foR.fo.GraftingPoint;
@@ -83,15 +83,16 @@
/**
* Constructor.
* @param foGenerator The FO node generating this linkage.
- * @throws AreaWException If the <code>foGenerator</code> has no ancestor
- * marker.
+ * @throws WritableAreaException If the <code>foGenerator</code> has no
+ * ancestor marker.
*/
- public FOLinkageMarker(final FoNode foGenerator) throws AreaWException {
+ public FOLinkageMarker(final FoNode foGenerator)
+ throws WritableAreaException {
super(foGenerator);
final Marker marker = foGenerator.ancestorMarker();
if (marker == null) {
- throw new AreaWException("(FOray) FOLinkageMarker construction "
- + "attempted for object\n"
+ throw new WritableAreaException("(FOray) FOLinkageMarker "
+ + "construction attempted for object\n"
+ " not descended from an fo:marker:\n"
+ foGenerator.getContextMessage());
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -29,7 +29,7 @@
package org.foray.area;
import org.axsl.areaR.RenderVisitor;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.common.value.RelativeAxis;
import org.axsl.foR.Fo;
@@ -111,7 +111,7 @@
* {@inheritDoc}
*/
public Area getOverflowArea(final Area childRequesting)
- throws AreaWException {
+ throws WritableAreaException {
return ancestorArea().getOverflowArea(this);
}
@@ -179,7 +179,7 @@
/**
* {@inheritDoc}
*/
- public void setParent(final AreaNode node) throws AreaWException {
+ public void setParent(final AreaNode node) throws WritableAreaException {
this.parent = node;
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -29,7 +29,7 @@
package org.foray.area;
import org.axsl.areaR.RenderVisitor;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.foR.FoText;
import org.axsl.foR.fo.ExternalGraphic;
import org.axsl.foR.fo.GraftingPoint;
@@ -153,7 +153,7 @@
*/
public LeaderArea makeLeaderArea(
final Leader leader, final int ipd,
- final GraftingPoint graftingPoint) throws AreaWException {
+ final GraftingPoint graftingPoint) throws WritableAreaException {
final LeaderArea newLeaderArea = LeaderArea.makeLeaderArea(leader, this,
graftingPoint, ipd);
this.children.add(newLeaderArea);
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -29,7 +29,7 @@
package org.foray.area;
import org.axsl.areaR.RenderVisitor;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.common.value.LeaderAlignment;
import org.axsl.common.value.LeaderPattern;
import org.axsl.common.value.RuleStyle;
@@ -105,12 +105,14 @@
* area.
* @param initialProgressionDimension The initial size, in millipoints,
* of this Area.
- * @throws AreaWException If the minimum length is greater than the optimum
- * length, or if the optimum length is greater than the maximum length.
+ * @throws WritableAreaException If the minimum length is greater than the
+ * optimum length, or if the optimum length is greater than the maximum
+ * length.
*/
private static void initLeaderArea(final LeaderArea newLeaderArea,
final Leader generatedBy, final GraftingPoint graftingPoint,
- final int initialProgressionDimension) throws AreaWException {
+ final int initialProgressionDimension)
+ throws WritableAreaException {
newLeaderArea.generatedBy = newLeaderArea.linkage(generatedBy,
graftingPoint);
newLeaderArea.registerWithLinkage(graftingPoint);
@@ -123,13 +125,13 @@
* cannot be resolved entirely there, so we validate it here. */
if (newLeaderArea.traitLeaderLengthMin()
> newLeaderArea.traitLeaderLengthOpt()) {
- throw new AreaWException("leader-length.minimum may not exceed "
- + "leader-length.optimum");
+ throw new WritableAreaException("leader-length.minimum may not "
+ + "exceed leader-length.optimum");
}
if (newLeaderArea.traitLeaderLengthOpt()
> newLeaderArea.traitLeaderLengthMax()) {
- throw new AreaWException("leader-length.optimum may not exceed "
- + "leader-length.maximum");
+ throw new WritableAreaException("leader-length.optimum may not "
+ + "exceed leader-length.maximum");
}
}
@@ -142,13 +144,15 @@
* @param initialProgressionDimension The initial size, in millipoints,
* of this Area.
* @return The new instance.
- * @throws AreaWException If the minimum length is greater than the optimum
- * length, or if the optimum length is greater than the maximum length.
+ * @throws WritableAreaException If the minimum length is greater than the
+ * optimum length, or if the optimum length is greater than the maximum
+ * length.
*/
static LeaderArea makeLeaderArea(final Leader generatedBy,
final LineArea parentArea,
final GraftingPoint graftingPoint,
- final int initialProgressionDimension) throws AreaWException {
+ final int initialProgressionDimension)
+ throws WritableAreaException {
final LeaderArea newLeaderArea = new LeaderArea(parentArea);
LeaderArea.initLeaderArea(newLeaderArea, generatedBy, graftingPoint,
initialProgressionDimension);
@@ -164,13 +168,15 @@
* @param initialProgressionDimension The initial size, in millipoints,
* of this Area.
* @return The new instance.
- * @throws AreaWException If the minimum length is greater than the optimum
- * length, or if the optimum length is greater than the maximum length.
+ * @throws WritableAreaException If the minimum length is greater than the
+ * optimum length, or if the optimum length is greater than the maximum
+ * length.
*/
static LeaderArea makeLeaderArea(final Leader generatedBy,
final AbstractInlineArea parentArea,
final GraftingPoint graftingPoint,
- final int initialProgressionDimension) throws AreaWException {
+ final int initialProgressionDimension)
+ throws WritableAreaException {
final LeaderArea newLeaderArea = new LeaderArea(parentArea);
LeaderArea.initLeaderArea(newLeaderArea, generatedBy, graftingPoint,
initialProgressionDimension);
@@ -433,7 +439,7 @@
*/
public LeaderArea makeLeaderArea(
final Leader leader, final int ipd,
- final GraftingPoint graftingPoint) throws AreaWException {
+ final GraftingPoint graftingPoint) throws WritableAreaException {
final LeaderArea newLeaderArea = LeaderArea.makeLeaderArea(leader, this,
graftingPoint, ipd);
this.children.add(newLeaderArea);
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2007-06-30 22:39:46 UTC (rev 9902)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2007-06-30 23:45:34 UTC (rev 9903)
@@ -31,7 +31,7 @@
import org.foray.common.OrderedTreeNode;
import org.axsl.areaR.RenderVisitor;
-import org.axsl.areaW.AreaWException;
+import org.axsl.areaW.WritableAreaException;
import org.axsl.common.value.AbsoluteAxis;
import org.axsl.common.value.Baseline;
import org.axsl.common.value.Conditionality;
@@ -704,7 +704,7 @@
* {@inheritDoc}
*/
public Area getOverflowArea(final Area childRequesting)
- throws AreaWException {
+ throws WritableAreaException {
return ancestorArea().getOverflowArea(this);
}
@@ -1015,7 +1015,7 @@
* {@inheritDoc}
*/
public LeaderArea makeLeaderArea(final Leader leader, final int ipd,
- final GraftingPoint graftingPoint) throws AreaWException {
+ final GraftingPoint graftingPoint) throws WritableAreaException {
final LeaderArea newLeaderArea = LeaderArea.makeLeaderArea(leader, this,
graftingPoint, ipd);
this.children.add(newLeaderArea);
@@ -1244,11 +1244,11 @@
/**
* {@inheritDoc}
*/
- public void setParent(final AreaNode node) throws AreaWException {
+ public void setParent(final AreaNode node) throws WritableAreaException {
if (node i...
[truncated message content] |
|
From: <vic...@us...> - 2007-06-30 23:53:01
|
Revision: 9904
http://svn.sourceforge.net/foray/?rev=9904&view=rev
Author: victormote
Date: 2007-06-30 16:53:03 -0700 (Sat, 30 Jun 2007)
Log Message:
-----------
Conform to axsl type name changes.
Modified Paths:
--------------
trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java
trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java
trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/BlockContainerPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FlowPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FootnoteBodyPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -32,7 +32,7 @@
import org.axsl.areaR.BackgroundArea;
import org.axsl.areaW.WritableAreaException;
-import org.axsl.areaW.BlockContainerRA;
+import org.axsl.areaW.BlockContainerRefArea;
import org.axsl.common.value.AbsoluteAxis;
import org.axsl.common.value.AbsoluteDirection;
import org.axsl.common.value.AbsolutePosition;
@@ -97,12 +97,13 @@
* Returns the nearest ancestor area that is a block container.
* @return The nearest ancestor area that is a block container.
*/
- public BlockContainerRA getNearestAncestorAreaContainer() {
+ public BlockContainerRefArea getNearestAncestorAreaContainer() {
AreaNode areaNode = this.getParent();
- while (areaNode != null && !(areaNode instanceof BlockContainerRA)) {
+ while (areaNode != null
+ && !(areaNode instanceof BlockContainerRefArea)) {
areaNode = areaNode.getParent();
}
- return (BlockContainerRA) areaNode;
+ return (BlockContainerRefArea) areaNode;
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -42,7 +42,7 @@
*/
public final class BeforeFloatRA extends AreaFixed
implements org.axsl.areaR.BeforeFloatArea,
- org.axsl.areaW.BeforeFloatRA {
+ org.axsl.areaW.BeforeFloatRefArea {
/** The "generated-by" trait, as defined in Section 6.1.1. */
private FOLinkage generatedBy;
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -48,7 +48,7 @@
* The container area for the contents of a block-container FO.
*/
public final class BlockContainerRA extends ContainerRA
- implements BlockContainerArea, org.axsl.areaW.BlockContainerRA {
+ implements BlockContainerArea, org.axsl.areaW.BlockContainerRefArea {
/** The "generated-by" trait, as defined in Section 6.1.1. */
private FOLinkage generatedBy;
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -40,7 +40,7 @@
* Manages the footnote reference area for a page.
*/
public final class FootnoteRA extends AreaFixed
- implements org.axsl.areaR.FootnoteArea, org.axsl.areaW.FootnoteRA {
+ implements org.axsl.areaR.FootnoteArea, org.axsl.areaW.FootnoteRefArea {
/** The "generated-by" trait, as defined in Section 6.1.1. */
private FOLinkage generatedBy;
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -46,7 +46,7 @@
* RegionRABody, and its children should always be instances of SpanRA.
*/
public final class MainRA extends AreaFixed implements MainReferenceArea,
- org.axsl.areaW.MainRA {
+ org.axsl.areaW.MainRefArea {
/** A definitely-not-sacred legacy span safety factor. It appears to be
* allowing for 2 12-point lines with leading of 30%. */
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -47,7 +47,7 @@
* span-reference-areas and normal-flow-reference-areas.
*/
public final class NormalFlowRA extends ContainerRA
- implements org.axsl.areaW.NormalFlowRA {
+ implements org.axsl.areaW.NormalFlowRefArea {
/** The "generated-by" trait, as defined in Section 6.1.1. */
private FOLinkage generatedBy;
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -51,7 +51,7 @@
* This class is used to manage a region-reference-area.
*/
public final class RegionRA extends AreaFixed implements RegionArea,
- org.axsl.areaW.RegionArea {
+ org.axsl.areaW.RegionRefArea {
/** The "generated-by" trait, as defined in Section 6.1.1. */
private FOLinkage generatedBy;
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -46,7 +46,7 @@
* Area containing a region-body.
*/
public final class RegionRABody extends AreaFixed implements RegionBodyArea,
- org.axsl.areaW.RegionRABody {
+ org.axsl.areaW.RegionBodyRefArea {
/** The "generated-by" trait, as defined in Section 6.1.1. */
private FOLinkage generatedBy;
@@ -124,14 +124,14 @@
/**
* {@inheritDoc}
*/
- public org.axsl.areaW.BeforeFloatRA getBeforeFloatRA() {
+ public org.axsl.areaW.BeforeFloatRefArea getBeforeFloatRA() {
return this.beforeFloatReferenceArea;
}
/**
* {@inheritDoc}
*/
- public org.axsl.areaW.FootnoteRA getFootnoteRA() {
+ public org.axsl.areaW.FootnoteRefArea getFootnoteRA() {
return footnoteReferenceArea;
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -44,7 +44,8 @@
* span-reference-area. The best guess is that it is generated by the
* region-body fo.
*/
-public final class SpanRA extends ContainerRA implements org.axsl.areaW.SpanRA {
+public final class SpanRA extends ContainerRA
+ implements org.axsl.areaW.SpanRefArea {
/** The "generated-by" trait, as defined in Section 6.1.1. */
private FOLinkage generatedBy;
Modified: trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java
===================================================================
--- trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-layout/src/java/org/foray/layout/LayoutStrategy.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -34,7 +34,7 @@
import org.axsl.areaW.LineContentFactory;
import org.axsl.areaW.PageArea;
import org.axsl.areaW.PageCollection;
-import org.axsl.areaW.RegionArea;
+import org.axsl.areaW.RegionRefArea;
import org.axsl.foR.FoLineNonText;
import org.axsl.foR.FoLineText;
import org.axsl.foR.FoText;
@@ -125,7 +125,7 @@
* @throws WritableAreaException For errors during layout.
*/
public abstract void layoutStaticContent(PageSequence pageSequence,
- Region region, RegionArea area) throws WritableAreaException;
+ Region region, RegionRefArea area) throws WritableAreaException;
/**
* {@inheritDoc}
Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/BlockContainerPL.java
===================================================================
--- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/BlockContainerPL.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/BlockContainerPL.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -30,7 +30,7 @@
import org.axsl.areaW.AreaNode;
import org.axsl.areaW.WritableAreaException;
-import org.axsl.areaW.BlockContainerRA;
+import org.axsl.areaW.BlockContainerRefArea;
import org.axsl.areaW.BlockContentFactory;
import org.axsl.foR.FoNode;
import org.axsl.foR.fo.BlockContainer;
@@ -70,8 +70,8 @@
setProgress(0);
}
- final BlockContainerRA blockContainer = bcArea.makeBlockContainerArea(
- this.node, graftingPoint);
+ final BlockContainerRefArea blockContainer =
+ bcArea.makeBlockContainerArea(this.node, graftingPoint);
for (int i = this.getProgress(); i < this.node.getChildCount(); i++) {
final FoNode fo = this.node.getChildAt(i);
Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FlowPL.java
===================================================================
--- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FlowPL.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FlowPL.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -31,7 +31,7 @@
import org.axsl.areaW.Area;
import org.axsl.areaW.AreaNode;
import org.axsl.areaW.WritableAreaException;
-import org.axsl.areaW.RegionRABody;
+import org.axsl.areaW.RegionBodyRefArea;
import org.axsl.foR.Fo;
import org.axsl.foR.fo.Flow;
import org.axsl.foR.fo.GraftingPoint;
@@ -73,7 +73,7 @@
}
// flow is *always* laid out into a BodyAreaContainer
- final RegionRABody bac = (RegionRABody) areaNode;
+ final RegionBodyRefArea bac = (RegionBodyRefArea) areaNode;
boolean prevChildMustKeepWithNext = false;
final int numChildren = getFONode().getChildCount();
Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FootnoteBodyPL.java
===================================================================
--- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FootnoteBodyPL.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FootnoteBodyPL.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -29,9 +29,9 @@
package org.foray.pioneer;
import org.axsl.areaW.AreaNode;
-import org.axsl.areaW.FootnoteRA;
+import org.axsl.areaW.FootnoteRefArea;
import org.axsl.areaW.PageArea;
-import org.axsl.areaW.RegionRABody;
+import org.axsl.areaW.RegionBodyRefArea;
import org.axsl.areaW.WritableAreaException;
import org.axsl.foR.FoNode;
@@ -66,7 +66,7 @@
if (getProgress() == FONodePL.START) {
setProgress(0);
}
- final FootnoteRA referenceArea = (FootnoteRA) areaNode;
+ final FootnoteRefArea referenceArea = (FootnoteRefArea) areaNode;
final int numChildren = this.node.getChildCount();
for (int i = getProgress(); i < numChildren; i++) {
@@ -92,8 +92,8 @@
*/
public boolean layoutFootnote(final PageArea p,
final GraftingPoint graftingPoint) {
- final RegionRABody bac = p.getRegionBody();
- final FootnoteRA footArea = bac.getFootnoteRA();
+ final RegionBodyRefArea bac = p.getRegionBody();
+ final FootnoteRefArea footArea = bac.getFootnoteRA();
try {
layoutFootnoteSeparator(bac, footArea);
final Status status = layout(footArea, graftingPoint);
@@ -114,8 +114,8 @@
* created.
* @throws WritableAreaException For errors during layout.
*/
- private void layoutFootnoteSeparator(final RegionRABody bac,
- final FootnoteRA footArea) throws WritableAreaException {
+ private void layoutFootnoteSeparator(final RegionBodyRefArea bac,
+ final FootnoteRefArea footArea) throws WritableAreaException {
/* TODO: It seems like this logic should be done once when the
* PageCollection is first started, and cached there for reuse. */
if (footArea.getChildCount() != 0) {
Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java
===================================================================
--- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java 2007-06-30 23:45:34 UTC (rev 9903)
+++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/PioneerLS.java 2007-06-30 23:53:03 UTC (rev 9904)
@@ -33,11 +33,11 @@
import org.axsl.areaW.Area;
import org.axsl.areaW.WritableAreaException;
import org.axsl.areaW.NormalBlockArea;
-import org.axsl.areaW.NormalFlowRA;
+import org.axsl.areaW.NormalFlowRefArea;
import org.axsl.areaW.PageArea;
import org.axsl.areaW.PageCollection;
-import org.axsl.areaW.RegionArea;
-import org.axsl.areaW.RegionRABody;
+import org.axsl.areaW.RegionRefArea;
+import org.axsl.areaW.RegionBodyRefArea;
import org.axsl.foR.FoNode;
import org.axsl.foR.FoText;
import org.axsl.foR.Fo;
@@ -195,7 +195,7 @@
* Because of markers, lay out the fo:flow first, then the
* static content. This is likely also justifiable because of spec.
*/
- final RegionRABody bodyArea = currentPage.getRegionBody();
+ final RegionBodyRefArea bodyArea = currentPage.getRegionBody();
final FlowPL flowPL = (FlowPL) this.getLayoutProxy(flow);
flowPL.layout(bodyArea, null);
this.formatStaticContent(currentPage);
@@ -225,7 +225,7 @@
* {@inheritDoc}
*/
public void layoutStaticContent(final PageSequence pageSequence,
- final Region region, final RegionArea area)
+ final Region region, final RegionRefArea area)
throws WritableAreaException {
if (region == null) {
return;
@@ -257,7 +257,7 @@
* {@link Status#OK} if no break is required.
*/
public Status checkBreakBefore(final Fo node, final Area area) {
- if (!(area instanceof NormalFlowRA)) {
+ if (!(area instanceof NormalFlowRefArea)) {
switch (node.traitBreakBefore(area)) {
case PAGE:
return Status.FORCE_PAGE_BREAK;
@@ -271,7 +271,7 @@
return Status.OK;
}
}
- final NormalFlowRA colArea = (NormalFlowRA) area;
+ final NormalFlowRefArea colArea = (NormalFlowRefArea) area;
switch (node.traitBreakBefore(area)) {
case PAGE: {
// if first ColumnArea, and empty, return OK
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-02 17:19:52
|
Revision: 9905
http://svn.sourceforge.net/foray/?rev=9905&view=rev
Author: victormote
Date: 2007-07-02 10:19:54 -0700 (Mon, 02 Jul 2007)
Log Message:
-----------
Conform to axsl method name changes.
Modified Paths:
--------------
trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java
trunk/foray/foray-font/src/java/org/foray/font/FOrayFont.java
trunk/foray/foray-font/src/java/org/foray/font/FOrayFontConsumer.java
trunk/foray/foray-font/src/java/org/foray/font/FSTrueTypeFont.java
trunk/foray/foray-font/src/java/org/foray/font/FSType1Font.java
trunk/foray/foray-font/src/java/org/foray/font/FreeStandingFont.java
trunk/foray/foray-font/src/java/org/foray/font/SystemFont.java
trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPDF.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtWritingMode.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFTextPainter.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontDescriptor.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontFileStream.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFToUnicodeCMap.java
trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -708,7 +708,7 @@
private int computeCrOriginX() {
// Start at the parent's content origin.
int x = crReferenceX();
- final AbsoluteDirection ipOdd = getWritingMode().getIPDirectionOdd();
+ final AbsoluteDirection ipOdd = getWritingMode().getIpDirectionOdd();
if (ipOdd == AbsoluteDirection.LEFT_TO_RIGHT) {
x += this.crOriginIPDOffset();
return x;
@@ -717,7 +717,7 @@
x -= this.crOriginIPDOffset();
return x;
}
- final AbsoluteDirection bpd = getWritingMode().getBPDirection();
+ final AbsoluteDirection bpd = getWritingMode().getBpDirection();
if (bpd == AbsoluteDirection.LEFT_TO_RIGHT) {
x += this.crOriginBPDOffset();
return x;
@@ -753,7 +753,7 @@
private int computeCrOriginY() {
// Start at the parent's content origin.
int y = ancestorArea().crOriginY();
- final AbsoluteDirection bpd = getWritingMode().getBPDirection();
+ final AbsoluteDirection bpd = getWritingMode().getBpDirection();
if (bpd == AbsoluteDirection.TOP_TO_BOTTOM) {
y -= this.crOriginBPDOffset();
return y;
@@ -762,7 +762,7 @@
y += this.crOriginBPDOffset();
return y;
}
- final AbsoluteDirection ipOdd = getWritingMode().getIPDirectionOdd();
+ final AbsoluteDirection ipOdd = getWritingMode().getIpDirectionOdd();
if (ipOdd == AbsoluteDirection.TOP_TO_BOTTOM) {
y -= this.crOriginIPDOffset();
return y;
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -393,7 +393,7 @@
* {@inheritDoc}
*/
public int crIPD() {
- if (getWritingMode().getIPAxis() == AbsoluteAxis.HORIZONTAL) {
+ if (getWritingMode().getIpAxis() == AbsoluteAxis.HORIZONTAL) {
return traitPageWidth() - getMarginLeft() - getMarginRight();
}
return traitPageHeight() - getMarginTop() - getMarginBottom();
@@ -403,7 +403,7 @@
* {@inheritDoc}
*/
public int crBPD() {
- if (getWritingMode().getBPAxis() == AbsoluteAxis.VERTICAL) {
+ if (getWritingMode().getBpAxis() == AbsoluteAxis.VERTICAL) {
return traitPageHeight() - getMarginTop() - getMarginBottom();
}
return traitPageWidth() - getMarginLeft() - getMarginRight();
@@ -433,7 +433,7 @@
.getAbsoluteDirFromRelativeAxis(
RelativeAxis.BLOCK_PROGRESSION);
if (direction.isVertical()) {
- if (getWritingMode().getIPDirectionOdd()
+ if (getWritingMode().getIpDirectionOdd()
== AbsoluteDirection.LEFT_TO_RIGHT) {
return getMarginLeft();
}
@@ -456,7 +456,7 @@
.getAbsoluteDirFromRelativeAxis(
RelativeAxis.BLOCK_PROGRESSION);
if (direction.isHorizontal()) {
- if (getWritingMode().getIPDirectionOdd()
+ if (getWritingMode().getIpDirectionOdd()
== AbsoluteDirection.TOP_TO_BOTTOM) {
return traitPageHeight() - getMarginTop();
}
Modified: trunk/foray/foray-font/src/java/org/foray/font/FOrayFont.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/FOrayFont.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-font/src/java/org/foray/font/FOrayFont.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -247,7 +247,7 @@
/**
* {@inheritDoc}
*/
- public abstract java.awt.Font getAWTFont(int fontSize);
+ public abstract java.awt.Font getAwtFont(int fontSize);
/**
* {@inheritDoc}
@@ -343,7 +343,7 @@
/**
* {@inheritDoc}
*/
- public abstract boolean isPDFStandardFont();
+ public abstract boolean isPdfStandardFont();
/**
* Return the parent registered font.
Modified: trunk/foray/foray-font/src/java/org/foray/font/FOrayFontConsumer.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/FOrayFontConsumer.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-font/src/java/org/foray/font/FOrayFontConsumer.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -278,7 +278,7 @@
/**
* {@inheritDoc}
*/
- public org.axsl.fontR.FontUse selectFontXSL(
+ public org.axsl.fontR.FontUse selectFontXsl(
final Font.SelectionStrategy selectionStrategy,
final String [] familyList, final Font.Style style,
final Font.Weight weight, final Font.Variant variant,
@@ -484,11 +484,11 @@
/**
* {@inheritDoc}
*/
- public org.axsl.fontR.FontUse selectFontCSS(final String [] familyList,
+ public org.axsl.fontR.FontUse selectFontCss(final String [] familyList,
final Font.Style style, final Font.Weight weight,
final Font.Variant variant, final Font.Stretch stretch,
final int size, final int codePoint) throws FontException {
- return selectFontXSL(Font.SelectionStrategy.CHARACTER_BY_CHARACTER,
+ return selectFontXsl(Font.SelectionStrategy.CHARACTER_BY_CHARACTER,
familyList, style, weight,
variant, stretch, size, codePoint);
}
Modified: trunk/foray/foray-font/src/java/org/foray/font/FSTrueTypeFont.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/FSTrueTypeFont.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-font/src/java/org/foray/font/FSTrueTypeFont.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -195,7 +195,7 @@
* {@inheritDoc}
* Always returns false as all standard PDF fonts are Type 1 fonts.
*/
- public boolean isPDFStandardFont() {
+ public boolean isPdfStandardFont() {
return false;
}
Modified: trunk/foray/foray-font/src/java/org/foray/font/FSType1Font.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/FSType1Font.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-font/src/java/org/foray/font/FSType1Font.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -290,7 +290,7 @@
/**
* {@inheritDoc}
*/
- public boolean isPDFStandardFont() {
+ public boolean isPdfStandardFont() {
if (! (this.metricsFile instanceof MetricsFileAFM)) {
return false;
}
Modified: trunk/foray/foray-font/src/java/org/foray/font/FreeStandingFont.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/FreeStandingFont.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-font/src/java/org/foray/font/FreeStandingFont.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -316,12 +316,12 @@
* {@inheritDoc}
* FreeStandingFonts are never AWTFonts, so this always returns null.
*/
- public java.awt.Font getAWTFont(final int fontSize) {
+ public java.awt.Font getAwtFont(final int fontSize) {
final SystemFont relatedSystemFont = this.systemFontManifestation();
if (relatedSystemFont == null) {
return null;
}
- return relatedSystemFont.getAWTFont(fontSize);
+ return relatedSystemFont.getAwtFont(fontSize);
}
/**
Modified: trunk/foray/foray-font/src/java/org/foray/font/SystemFont.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/SystemFont.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-font/src/java/org/foray/font/SystemFont.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -184,7 +184,7 @@
/**
* {@inheritDoc}
*/
- public java.awt.Font getAWTFont(final int fontSize) {
+ public java.awt.Font getAwtFont(final int fontSize) {
return getLastAWTFont();
}
@@ -345,13 +345,13 @@
/**
* {@inheritDoc}
*/
- public boolean isPDFStandardFont() {
+ public boolean isPdfStandardFont() {
final FreeStandingFont relatedFSFont =
this.freeStandingFontManifestation();
if (relatedFSFont == null) {
return false;
}
- return relatedFSFont.isPDFStandardFont();
+ return relatedFSFont.isPdfStandardFont();
}
/**
Modified: trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPDF.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPDF.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPDF.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -102,7 +102,7 @@
* Table 5.22.
* @return The String containing the "Additional entries".
*/
- public String getPDFFontFileStreamAdditional() {
+ public String getPdfFontFileStreamAdditional() {
if (getFOrayFont() instanceof FSTrueTypeFont) {
return " /Length1 "
+ getPDFFontFileStreamSize();
@@ -132,7 +132,7 @@
/**
* {@inheritDoc}
*/
- public int[] getFontBBox() {
+ public int[] getFontBoundingBox() {
final FreeStandingFont font = getFreeStandingFont();
if (font == null) {
return null;
@@ -187,7 +187,7 @@
/**
* {@inheritDoc}
*/
- public String getToUnicodeBF() {
+ public String getToUnicodeBf() {
final char[] charArray = getCharsUsed();
final StringBuilder buffer = new StringBuilder();
writeBFCharEntries(buffer, charArray);
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -332,7 +332,7 @@
firstChar = ' ';
}
final FontConsumer fontConsumer = fobj.getFontConsumer();
- this.resolvedFont = fontConsumer.selectFontXSL(
+ this.resolvedFont = fontConsumer.selectFontXsl(
convertFontSelectionStrategy(
traitFontSelectionStrategy(fobj, context)),
getFontFamily(fobj, context),
@@ -362,7 +362,7 @@
final FoContext context, final int codePoint) {
org.axsl.fontR.FontUse secondaryFont = null;
try {
- secondaryFont = fobj.getFontConsumer().selectFontXSL(
+ secondaryFont = fobj.getFontConsumer().selectFontXsl(
convertFontSelectionStrategy(
traitFontSelectionStrategy(fobj, context)),
getFontFamily(fobj, context),
@@ -3367,7 +3367,7 @@
*/
public AbsoluteDirection traitIPDirectionOdd(final FObj fobj,
final FoContext context) {
- return getWritingMode(fobj, context).getIPDirectionOdd();
+ return getWritingMode(fobj, context).getIpDirectionOdd();
}
/**
@@ -3381,7 +3381,7 @@
*/
public AbsoluteDirection traitIPDirectionEven(final FObj fobj,
final FoContext context) {
- return getWritingMode(fobj, context).getIPDirectionEven();
+ return getWritingMode(fobj, context).getIpDirectionEven();
}
/**
@@ -3395,7 +3395,7 @@
*/
public AbsoluteDirection traitBPDirection(final FObj fobj,
final FoContext context) {
- return getWritingMode(fobj, context).getBPDirection();
+ return getWritingMode(fobj, context).getBpDirection();
}
/**
@@ -5191,7 +5191,7 @@
* is invalid.
*/
public AbsoluteAxis getBPAxis(final FObj fobj, final FoContext context) {
- return getWritingMode(fobj, context).getBPAxis();
+ return getWritingMode(fobj, context).getBpAxis();
}
/**
@@ -5203,7 +5203,7 @@
* is invalid.
*/
public AbsoluteAxis getIPAxis(final FObj fobj, final FoContext context) {
- return getWritingMode(fobj, context).getIPAxis();
+ return getWritingMode(fobj, context).getIpAxis();
}
/**
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtWritingMode.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtWritingMode.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtWritingMode.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -259,21 +259,21 @@
/**
* {@inheritDoc}
*/
- public AbsoluteDirection getBPDirection() {
+ public AbsoluteDirection getBpDirection() {
return bpd;
}
/**
* {@inheritDoc}
*/
- public AbsoluteDirection getIPDirectionEven() {
+ public AbsoluteDirection getIpDirectionEven() {
return ipdEven;
}
/**
* {@inheritDoc}
*/
- public AbsoluteDirection getIPDirectionOdd() {
+ public AbsoluteDirection getIpDirectionOdd() {
return ipdOdd;
}
@@ -321,7 +321,7 @@
/**
* {@inheritDoc}
*/
- public AbsoluteAxis getBPAxis() {
+ public AbsoluteAxis getBpAxis() {
if (bpd.isHorizontal()) {
return AbsoluteAxis.HORIZONTAL;
}
@@ -331,7 +331,7 @@
/**
* {@inheritDoc}
*/
- public AbsoluteAxis getIPAxis() {
+ public AbsoluteAxis getIpAxis() {
if (bpd.isHorizontal()) {
return AbsoluteAxis.VERTICAL;
}
@@ -343,10 +343,10 @@
*/
public AbsoluteAxis getAbsoluteAxis(final RelativeAxis relativeAxis) {
if (relativeAxis == RelativeAxis.BLOCK_PROGRESSION) {
- return getBPAxis();
+ return getBpAxis();
}
if (relativeAxis == RelativeAxis.INLINE_PROGRESSION) {
- return getIPAxis();
+ return getIpAxis();
}
throw new IllegalArgumentException("Invalid relative axis");
}
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFGraphics2D.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -736,7 +736,7 @@
fontWeight = org.axsl.fontR.Font.Weight.BOLD;
}
try {
- return this.fontConsumer.selectFontXSL(
+ return this.fontConsumer.selectFontXsl(
org.axsl.fontR.Font.SelectionStrategy.AUTO,
FontUtility.foFontFamily(fontFamily),
fontStyle, fontWeight,
@@ -783,7 +783,7 @@
TextAttribute.FAMILY);
org.axsl.fontR.FontUse font;
try {
- font = this.fontConsumer.selectFontCSS(fontFamily,
+ font = this.fontConsumer.selectFontCss(fontFamily,
org.axsl.fontR.Font.Style.NORMAL,
org.axsl.fontR.Font.Weight.NORMAL,
org.axsl.fontR.Font.Variant.NORMAL,
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFTextPainter.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFTextPainter.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/batik/PDFTextPainter.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -323,7 +323,7 @@
for (final Iterator<?> i = gvtFonts.iterator(); i.hasNext(); ) {
final GVTFontFamily fam = (GVTFontFamily) i.next();
this.fontFamily = fam.getFamilyName();
- font = this.fontConsumer.selectFontCSS(
+ font = this.fontConsumer.selectFontCss(
FontUtility.foFontFamily(this.fontFamily),
style, weight, Font.Variant.NORMAL,
org.axsl.fontR.Font.Stretch.NORMAL,
@@ -340,7 +340,7 @@
}
if (font == null) {
this.fontFamily = "any";
- return this.fontConsumer.selectFontXSL(
+ return this.fontConsumer.selectFontXsl(
org.axsl.fontR.Font.SelectionStrategy.AUTO,
new String[] {"any"}, style, weight,
Font.Variant.NORMAL,
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -134,7 +134,7 @@
*/
public static PDFFont makeFont(final PDFDocument pdfDoc,
final FontUse fsFont) {
- if (fsFont.getFont().isPDFStandardFont()) {
+ if (fsFont.getFont().isPdfStandardFont()) {
final PDFFont font = new PDFFont(pdfDoc, fsFont);
return font;
}
@@ -202,7 +202,7 @@
/* This method is necessary to allow standard PDF fonts to be treated
* as if they were not standard when they use a non-standard encoding.
* We're not sure why this is necessary, but it seems to be. */
- if (this.fsFont.getFont().isPDFStandardFont()) {
+ if (this.fsFont.getFont().isPdfStandardFont()) {
final Encoding encoding = this.fsFont.getEncoding();
if (encoding.isPredefinedPDF()) {
return true;
@@ -302,7 +302,7 @@
return;
}
final PDFRectangle fontBBox = new PDFRectangle(this.getFontOutput()
- .getFontBBox());
+ .getFontBoundingBox());
if (fontBBox != null) {
buffer.append("/FontBBox ");
buffer.append(fontBBox.toPDF());
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontDescriptor.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontDescriptor.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontDescriptor.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -144,7 +144,7 @@
p.append("<< /Type /FontDescriptor" + EOL);
p.append("/FontName /" + this.font.getBaseFont());
p.append(EOL + "/FontBBox ");
- p.append(new PDFRectangle(fontPDF.getFontBBox()).toPDFString());
+ p.append(new PDFRectangle(fontPDF.getFontBoundingBox()).toPDFString());
p.append(EOL + "/Flags ");
p.append(fontPDF.getFlags());
p.append(EOL + "/CapHeight ");
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontFileStream.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontFileStream.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFontFileStream.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -73,7 +73,7 @@
*/
protected String specialStreamDictEntries() {
final FontPdf fontPDF = (FontPdf) font.getFontOutput("application/pdf");
- return fontPDF.getPDFFontFileStreamAdditional();
+ return fontPDF.getPdfFontFileStreamAdditional();
}
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFToUnicodeCMap.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFToUnicodeCMap.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFToUnicodeCMap.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -95,7 +95,7 @@
writeCodeSpaceRange(builder);
final FontPdf fontPDF = (FontPdf) this.fsFont.getFontOutput(
"application/pdf");
- final String bfEntries = fontPDF.getToUnicodeBF();
+ final String bfEntries = fontPDF.getToUnicodeBf();
builder.append(bfEntries);
writeBFEntries(builder);
writeWrapUp(builder);
Modified: trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java 2007-06-30 23:53:03 UTC (rev 9904)
+++ trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java 2007-07-02 17:19:54 UTC (rev 9905)
@@ -583,7 +583,7 @@
final Color oldColor = graphics.getColor();
final java.awt.Font oldFont = graphics.getFont();
- final java.awt.Font f = area.getPrimaryFont().getFont().getAWTFont(
+ final java.awt.Font f = area.getPrimaryFont().getFont().getAwtFont(
size);
if (saveColor != null) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-02 17:30:50
|
Revision: 9906
http://svn.sourceforge.net/foray/?rev=9906&view=rev
Author: victormote
Date: 2007-07-02 10:30:45 -0700 (Mon, 02 Jul 2007)
Log Message:
-----------
Conform to axsl method name changes.
Modified Paths:
--------------
trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/FOrayGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java
trunk/foray/foray-graphic/src/java/org/foray/graphic/TempImage.java
trunk/foray/foray-graphic/src/javatest/org/foray/graphic/TestSvgGraphic.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXFormEps.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXObject.java
trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/svg/SVGRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/txt/TXTRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/EPSGraphic.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -323,7 +323,7 @@
/**
* {@inheritDoc}
*/
- public float[] getBBox() {
+ public float[] getBoundingBox() {
return this.bbox;
}
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/FOrayGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/FOrayGraphic.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/FOrayGraphic.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -147,7 +147,7 @@
/**
* {@inheritDoc}
*/
- public URL getURL() {
+ public URL getUrl() {
return this.url;
}
@@ -523,14 +523,6 @@
}
/**
- * Returns the URL containing this graphic.
- * @return Returns the URL.
- */
- public URL getUrl() {
- return this.url;
- }
-
- /**
* Sets the height in pixels of this graphic.
* @param pixelHeight The new height in pixels.
*/
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/SVGGraphic.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -137,7 +137,7 @@
/**
* {@inheritDoc}
*/
- public SVGDocument getSVGDocument() throws GraphicException {
+ public SVGDocument getSvgDocument() throws GraphicException {
if (doc == null) {
this.loadImage();
}
@@ -245,7 +245,7 @@
final Rectangle2D.Float clipRectangle, final int pageHeight) {
SVGDocument svgDocument;
try {
- svgDocument = this.getSVGDocument();
+ svgDocument = this.getSvgDocument();
} catch (final GraphicException e) {
/* For some reason the SVGDocument is not usable. There is nothing
* to do. */
@@ -318,14 +318,14 @@
/**
* {@inheritDoc}
*/
- public void drawPS(final OutputStream output,
+ public void drawPs(final OutputStream output,
final FontConsumer fontConsumer, final boolean strokeText,
final boolean commentsEnabled) {
final CharacterOutputStream cos = new CharacterOutputStream(output,
commentsEnabled);
SVGDocument doc = null;
try {
- doc = this.getSVGDocument();
+ doc = this.getSvgDocument();
} catch (final GraphicException e) {
this.getLogger().error("Error getting SVGDocument in "
+ this.getClass().getName());
@@ -378,7 +378,7 @@
throws GraphicException {
SVGDocument doc = null;
try {
- doc = this.getSVGDocument();
+ doc = this.getSvgDocument();
} catch (final GraphicException e) {
// TODO Auto-generated catch block
e.printStackTrace();
@@ -454,7 +454,7 @@
public void drawPdfDocument(final OutputStream output)
throws GraphicException {
/* Make sure the document has been parsed. */
- this.getSVGDocument();
+ this.getSvgDocument();
/* This uses the FOP/Batik PDF Transcoder to convert the SVG to PDF. */
final PDFTranscoder pdfTranscoder = new PDFTranscoder();
Modified: trunk/foray/foray-graphic/src/java/org/foray/graphic/TempImage.java
===================================================================
--- trunk/foray/foray-graphic/src/java/org/foray/graphic/TempImage.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-graphic/src/java/org/foray/graphic/TempImage.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -91,7 +91,7 @@
/**
* {@inheritDoc}
*/
- public URL getURL() {
+ public URL getUrl() {
return url;
}
Modified: trunk/foray/foray-graphic/src/javatest/org/foray/graphic/TestSvgGraphic.java
===================================================================
--- trunk/foray/foray-graphic/src/javatest/org/foray/graphic/TestSvgGraphic.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-graphic/src/javatest/org/foray/graphic/TestSvgGraphic.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -68,7 +68,7 @@
final SVGGraphic svg = (SVGGraphic) graphic;
assertEquals(200, svg.pixelWidth());
assertEquals(50, svg.pixelHeight());
- final SVGDocument svgDoc = svg.getSVGDocument();
+ final SVGDocument svgDoc = svg.getSvgDocument();
assertNotNull(svgDoc);
/* This test is a Batik-specific test, and should fail if we change
@@ -139,7 +139,7 @@
assertTrue(graphic instanceof SVGGraphic);
final SVGGraphic svg = (SVGGraphic) graphic;
- final SVGDocument svgDoc = svg.getSVGDocument();
+ final SVGDocument svgDoc = svg.getSvgDocument();
assertNotNull(svgDoc);
assertTrue(svgDoc instanceof SVGOMDocument);
/* We need this cast to get the CSS implementation and access to the
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -316,7 +316,7 @@
}
if (xObject == null) {
getLogger().error("Don't know how to process graphic:" + MSG_EOL
- + image.getURL());
+ + image.getUrl());
return;
}
closeTextObject();
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXFormEps.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXFormEps.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXFormEps.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -67,7 +67,7 @@
* {@inheritDoc}
*/
protected byte[] getPdfContent() throws GraphicException {
- final File file = new File(getGraphic().getURL().getFile());
+ final File file = new File(getGraphic().getUrl().getFile());
PSInputFile psInput = null;
try {
psInput = new PSInputFile(file);
@@ -93,7 +93,7 @@
public float getHorizontalScaling(
final Rectangle2D.Float contentRectangle) {
final EpsGraphic eps = this.getGraphic();
- final float graphicWidth = FOrayBoundingBox.width(eps.getBBox());
+ final float graphicWidth = FOrayBoundingBox.width(eps.getBoundingBox());
return contentRectangle.width / graphicWidth;
}
@@ -102,7 +102,8 @@
*/
public float getVerticalScaling(final Rectangle2D.Float contentRectangle) {
final EpsGraphic eps = this.getGraphic();
- final float graphicHeight = FOrayBoundingBox.height(eps.getBBox());
+ final float graphicHeight = FOrayBoundingBox.height(
+ eps.getBoundingBox());
return contentRectangle.height / graphicHeight;
}
@@ -117,7 +118,7 @@
* {@inheritDoc}
*/
protected float[] getBoundingBox() {
- return this.graphic.getBBox();
+ return this.graphic.getBoundingBox();
}
/**
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXObject.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXObject.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFXObject.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -77,7 +77,7 @@
if (graphic == null) {
throw new NullPointerException("Graphic must not be null.");
}
- this.xNumber = doc.registerXObjectResource(this, graphic.getURL());
+ this.xNumber = doc.registerXObjectResource(this, graphic.getUrl());
}
/**
@@ -95,7 +95,7 @@
final Graphic img, final FontConsumer fontConsumer,
final boolean strokeText) throws GraphicException {
/* If it has already been created, reuse it ... */
- PDFXObject xObject = pdfDoc.findXObject(img.getURL());
+ PDFXObject xObject = pdfDoc.findXObject(img.getUrl());
if (xObject != null) {
return xObject;
}
@@ -187,7 +187,7 @@
return filter;
default:
throw new GraphicException("Error while loading image "
- + graphic.getURL() + " : "
+ + graphic.getUrl() + " : "
+ this.getClass() + " - "
+ "unsupported compression value "
+ imageCompression);
Modified: trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -519,7 +519,7 @@
Renderer.convertMillipointRectangle(contentRect), null);
} else {
- final String urlString = img.getURL().toString();
+ final String urlString = img.getUrl().toString();
try {
final URL url = URLFactory.createURL(urlString);
Modified: trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -556,7 +556,7 @@
+ " translate");
this.write(sx * at.getScaleX() + " " + sy * at.getScaleY()
+ " scale");
- svgGraphic.drawPS(this.getOutputStream(), area.getFontConsumer(), false,
+ svgGraphic.drawPs(this.getOutputStream(), area.getFontConsumer(), false,
this.enableComments);
this.write("grestore");
this.comment("% --- SVG Area end");
@@ -660,7 +660,7 @@
*/
public byte[] epsToPostScript(final EpsGraphic image, final int x,
final int y, final int w, final int h) throws GraphicException {
- final float[] bbox = image.getBBox();
+ final float[] bbox = image.getBoundingBox();
final float bboxw = FOrayBoundingBox.width(bbox);
final float bboxh = FOrayBoundingBox.height(bbox);
Modified: trunk/foray/foray-render/src/java/org/foray/render/svg/SVGRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/svg/SVGRenderer.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-render/src/java/org/foray/render/svg/SVGRenderer.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -578,7 +578,7 @@
final float y) {
Document doc = null;
try {
- doc = svgGraphic.getSVGDocument();
+ doc = svgGraphic.getSvgDocument();
} catch (final GraphicException e) {
this.getLogger().error("Error getting SVGDocument in "
+ this.getClass().getName());
Modified: trunk/foray/foray-render/src/java/org/foray/render/txt/TXTRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/txt/TXTRenderer.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-render/src/java/org/foray/render/txt/TXTRenderer.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -459,7 +459,7 @@
final int namew = (int) (w * this.xFactor);
if (namew > MINIMUM_GRAPHIC_WIDTH) {
- final String iname = img.getURL().toString();
+ final String iname = img.getUrl().toString();
if (iname.length() >= namew) {
addStr((int) ((this.pageHeight
- (y / MILLIPOINTS_PER_DECIPOINT))
Modified: trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java 2007-07-02 17:19:54 UTC (rev 9905)
+++ trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java 2007-07-02 17:30:45 UTC (rev 9906)
@@ -367,7 +367,7 @@
outputGeneratedBy(area, attributes);
outputDimension(area, attributes);
outputAttribute(attributes, "url",
- area.getGraphic().getURL().toExternalForm());
+ area.getGraphic().getUrl().toExternalForm());
writeStartTag(area, attributes);
outputAllRectangles(area);
writeEndTag(area);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-02 17:36:53
|
Revision: 9907
http://svn.sourceforge.net/foray/?rev=9907&view=rev
Author: victormote
Date: 2007-07-02 10:36:55 -0700 (Mon, 02 Jul 2007)
Log Message:
-----------
Conform to axsl method name changes.
Modified Paths:
--------------
trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java
trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFOutlineParent.java
trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
Modified: trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java
===================================================================
--- trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -167,9 +167,9 @@
this.outputTarget.setApplicationNameShort(
Application.getApplicationNameShort());
this.outputTarget.setApplicationVersion(Application.getVersion());
- this.outputTarget.setDeveloperURLShort(
+ this.outputTarget.setDeveloperUrlShort(
Application.getDeveloperURLShort());
- this.outputTarget.setStrokeSVGText(getSessionConfig()
+ this.outputTarget.setStrokeText(getSessionConfig()
.optionStrokeSVGText());
this.outputTarget.setFontConsumer(this.getFontConsumer());
Modified: trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java
===================================================================
--- trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-output/src/java/org/foray/output/OutputTarget.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -183,14 +183,14 @@
/**
* {@inheritDoc}
*/
- public void setDeveloperURLShort(final String developerURLShort) {
+ public void setDeveloperUrlShort(final String developerURLShort) {
this.developerURLShort = developerURLShort;
}
/**
* {@inheritDoc}
*/
- public void setStrokeSVGText(final boolean stroke) {
+ public void setStrokeText(final boolean stroke) {
this.strokeSVGText = stroke;
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFContentStream.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -125,7 +125,7 @@
* {@inheritDoc}
*/
public void setFont(final FontUse newFont, final float newFontSize) {
- final PDFFont pdfFont = this.getPDFDocument().getPDFFont(newFont);
+ final PDFFont pdfFont = this.getPDFDocument().getPdfFont(newFont);
openTextObject();
boolean anyChange = false;
anyChange |= this.getGS().setFont(newFont);
@@ -142,7 +142,7 @@
* {@inheritDoc}
*/
public void setColor(final Color newColor, final boolean stroke) {
- final PDFColor newPDFColor = this.getPDFDocument().createPDFColor(
+ final PDFColor newPDFColor = this.getPDFDocument().createPdfColor(
newColor);
if (stroke) {
if (! this.getGS().setStrokeColor(newColor)) {
@@ -256,7 +256,7 @@
// Nothing needs to change.
return;
}
- add(newLineCapStyle.getPDFValue() + " J" + EOL);
+ add(newLineCapStyle.getPdfValue() + " J" + EOL);
}
/**
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFDocument.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -625,7 +625,7 @@
* @param fontUse The font for which a PDFFont is needed.
* @return The appropriate PDFFont instance.
*/
- public PDFFont getPDFFont(final FontUse fontUse) {
+ public PDFFont getPdfFont(final FontUse fontUse) {
final Font font = fontUse.getFont();
/* Look for a match in the existing fonts. */
for (int i = 0; i < this.usedFonts.size(); i++) {
@@ -713,7 +713,7 @@
/**
* {@inheritDoc}
*/
- public PDFEncryption createPDFEncryption() {
+ public PDFEncryption createPdfEncryption() {
if (this.encryption == null) {
this.encryption = new org.foray.pdf.object.PDFEncryption(this);
}
@@ -723,7 +723,7 @@
/**
* {@inheritDoc}
*/
- public PDFColor createPDFColor(final Color color) {
+ public PDFColor createPdfColor(final Color color) {
org.foray.pdf.object.PDFColor pdfColor = null;
for (int i = 0; i < this.usedColors.size(); i++) {
pdfColor = this.usedColors.get(i);
@@ -739,7 +739,7 @@
/**
* {@inheritDoc}
*/
- public PDFPage createPDFPage(final int pagewidth, final int pageheight) {
+ public PDFPage createPdfPage(final int pagewidth, final int pageheight) {
return new org.foray.pdf.object.PDFPage(this, this.getResources(),
pagewidth, pageheight);
}
@@ -758,7 +758,7 @@
* {@inheritDoc}
*/
public String getFontName(final FontUse fontUse) {
- final PDFFont pdfFont = this.getPDFFont(fontUse);
+ final PDFFont pdfFont = this.getPdfFont(fontUse);
return pdfFont.getName();
}
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFOutlineParent.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFOutlineParent.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFOutlineParent.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -98,7 +98,7 @@
/**
* {@inheritDoc}
*/
- public PDFOutlineItem createPDFOutlineItem(
+ public PDFOutlineItem createPdfOutlineItem(
final String titleText, final String internalDestination,
final Color color, final boolean italic, final boolean bold) {
return new org.foray.pdf.object.PDFOutlineItem(this.getPDFDocument(),
Modified: trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2007-07-02 17:30:45 UTC (rev 9906)
+++ trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java 2007-07-02 17:36:55 UTC (rev 9907)
@@ -135,7 +135,7 @@
}
if (encrypt) {
PdfEncryption encryption = null;
- encryption = this.getPDFDocument().createPDFEncryption();
+ encryption = this.getPDFDocument().createPdfEncryption();
encryption.setOwnerPassword(oPassword);
encryption.setUserPassword(uPassword);
encryption.setAllowPrint(allowPrint);
@@ -229,11 +229,11 @@
final int h, final Color strokeColor, final Color fillColor) {
PdfPathPaint strokePaint = null;
if (strokeColor != null) {
- strokePaint = this.getPDFDocument().createPDFColor(strokeColor);
+ strokePaint = this.getPDFDocument().createPdfColor(strokeColor);
}
PdfPathPaint fillPaint = null;
if (fillColor != null) {
- fillPaint = this.getPDFDocument().createPDFColor(fillColor);
+ fillPaint = this.getPDFDocument().createPdfColor(fillColor);
}
final Rectangle2D.Float rectangle = new Rectangle2D.Float(toPoints(x),
toPoints(y), toPoints(w), toPoints(h));
@@ -448,7 +448,7 @@
getLogger().debug("Rendering single page to PDF.");
final float w = page.getWidth();
final float h = page.getHeight();
- currentPage = this.pdfDoc.createPDFPage(
+ currentPage = this.pdfDoc.createPdfPage(
Math.round(w / WKConstants.MILLIPOINTS_PER_POINT),
Math.round(h / WKConstants.MILLIPOINTS_PER_POINT));
renderRegions(page);
@@ -544,7 +544,7 @@
bold = true;
}
PdfOutlineItem pdfOutline = null;
- pdfOutline = parent.createPDFOutlineItem(title.getTitleText(),
+ pdfOutline = parent.createPdfOutlineItem(title.getTitleText(),
area.traitInternalDestination(), color, italic, bold);
// Recursively handle child bookmarks
for (int i = 0; i < area.getChildCount(); i++) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-02 18:22:28
|
Revision: 9908
http://svn.sourceforge.net/foray/?rev=9908&view=rev
Author: victormote
Date: 2007-07-02 11:22:30 -0700 (Mon, 02 Jul 2007)
Log Message:
-----------
Conform to axsl method name changes.
Modified Paths:
--------------
trunk/foray/foray-app/src/javatest/org/foray/app/area/AbstractAreaTreeTest.java
trunk/foray/foray-app/src/javatest/org/foray/app/area/TestBlock.java
trunk/foray/foray-app/src/javatest/org/foray/app/area/TestBorder.java
trunk/foray/foray-app/src/javatest/org/foray/app/area/TestGraphicArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/AbstractInlineArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/AbstractListItemContent.java
trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
trunk/foray/foray-areatree/src/java/org/foray/area/AreaFixed.java
trunk/foray/foray-areatree/src/java/org/foray/area/AreaFlexible.java
trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/BlockArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/ListItemArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java
trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FlowPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/FootnoteBodyPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableCellPL.java
trunk/foray/foray-render/src/java/org/foray/render/PrintRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/Renderer.java
trunk/foray/foray-render/src/java/org/foray/render/awt/AWTRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/pcl/PCLRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/pdf/PDFRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/svg/SVGRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/txt/TXTRenderer.java
trunk/foray/foray-render/src/java/org/foray/render/xml/XMLRenderer.java
Modified: trunk/foray/foray-app/src/javatest/org/foray/app/area/AbstractAreaTreeTest.java
===================================================================
--- trunk/foray/foray-app/src/javatest/org/foray/app/area/AbstractAreaTreeTest.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-app/src/javatest/org/foray/app/area/AbstractAreaTreeTest.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -57,7 +57,7 @@
final PageCollection pageCollection = getPageCollection(areaTree, 1);
final PageRA firstPage = getPage(pageCollection, 1);
final RegionRABody regionBody = firstPage.getRegionBody();
- final MainRA main = regionBody.getMainRA();
+ final MainRA main = regionBody.getMainRefArea();
AreaNode node = main.getChildAt(0);
assertTrue(node instanceof SpanRA);
final SpanRA span = (SpanRA) node;
Modified: trunk/foray/foray-app/src/javatest/org/foray/app/area/TestBlock.java
===================================================================
--- trunk/foray/foray-app/src/javatest/org/foray/app/area/TestBlock.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-app/src/javatest/org/foray/app/area/TestBlock.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -62,7 +62,7 @@
assertEquals(720000, outerBlockArea.crOriginY());
/* Page is 8 inches wide, with 2 inches total margin.
* 6 * 72,000 = 432,000. */
- assertEquals(432000, outerBlockArea.crIPD());
+ assertEquals(432000, outerBlockArea.crIpd());
/* The first child of the outer block area is a line-area. */
node = outerBlockArea.getChildAt(0);
@@ -79,9 +79,9 @@
* 720,000 - 1,200 = 718,800. */
assertEquals(718800, lineArea.crOriginY());
/* Same as parent. */
- assertEquals(432000, lineArea.crIPD());
+ assertEquals(432000, lineArea.crIpd());
/* Default font-size is 12 points. */
- assertEquals(12000, lineArea.crBPD());
+ assertEquals(12000, lineArea.crBpd());
/* The second child of the outer block area is a block-area. */
node = outerBlockArea.getChildAt(1);
@@ -97,9 +97,9 @@
* 718,800 - 12,000 - 1,200 = 705,600. */
assertEquals(705600, insideBlockArea.crOriginY());
/* Same as parent. */
- assertEquals(432000, insideBlockArea.crIPD());
+ assertEquals(432000, insideBlockArea.crIpd());
/* Height of 0, as it has no content. */
- assertEquals(0, insideBlockArea.crBPD());
+ assertEquals(0, insideBlockArea.crBpd());
/* The third child of the outer block area is another line-area. */
node = outerBlockArea.getChildAt(2);
@@ -114,9 +114,9 @@
* 705,600 - 1,200 = 704,400. */
assertEquals(704400, lineArea.crOriginY());
/* Same as parent. */
- assertEquals(432000, lineArea.crIPD());
+ assertEquals(432000, lineArea.crIpd());
/* Same as the first line. */
- assertEquals(12000, lineArea.crBPD());
+ assertEquals(12000, lineArea.crBpd());
/* The fourth child of the outer block area is another line-area. */
node = outerBlockArea.getChildAt(3);
@@ -133,9 +133,9 @@
* 704,400 - 12,000 - 1,200 - 1,200 = 690,000. */
assertEquals(690000, lineArea.crOriginY());
/* Same as parent. */
- assertEquals(432000, lineArea.crIPD());
+ assertEquals(432000, lineArea.crIpd());
/* Same as the other lines. */
- assertEquals(12000, lineArea.crBPD());
+ assertEquals(12000, lineArea.crBpd());
}
/**
Modified: trunk/foray/foray-app/src/javatest/org/foray/app/area/TestBorder.java
===================================================================
--- trunk/foray/foray-app/src/javatest/org/foray/app/area/TestBorder.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-app/src/javatest/org/foray/app/area/TestBorder.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -55,15 +55,15 @@
final NormalBlockArea blockArea = (NormalBlockArea) node;
assertEquals(72000, blockArea.brOriginX());
assertEquals(720000, blockArea.brOriginY());
- assertEquals(432000, blockArea.brIPD());
+ assertEquals(432000, blockArea.brIpd());
assertEquals(72500, blockArea.prOriginX());
assertEquals(719500, blockArea.prOriginY());
- assertEquals(431000, blockArea.prIPD());
+ assertEquals(431000, blockArea.prIpd());
assertEquals(72500, blockArea.crOriginX());
assertEquals(719500, blockArea.crOriginY());
- assertEquals(431000, blockArea.crIPD());
+ assertEquals(431000, blockArea.crIpd());
}
}
Modified: trunk/foray/foray-app/src/javatest/org/foray/app/area/TestGraphicArea.java
===================================================================
--- trunk/foray/foray-app/src/javatest/org/foray/app/area/TestGraphicArea.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-app/src/javatest/org/foray/app/area/TestGraphicArea.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -73,7 +73,7 @@
/* First test the size of the viewport. */
final ExternalGraphicArea ega = (ExternalGraphicArea) node;
- final int width = ega.crIPD();
+ final int width = ega.crIpd();
/* 200 pixels @ 96 pixels per inch = (200 / 96) * 72,000 millipoints
* = 150,000 millipoints. */
assertEquals(150000, width);
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AbstractInlineArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AbstractInlineArea.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AbstractInlineArea.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -131,14 +131,14 @@
/**
* {@inheritDoc}
*/
- public int crIPD() {
+ public int crIpd() {
return this.getProgressionDimension();
}
/**
* {@inheritDoc}
*/
- public int crBPD() {
+ public int crBpd() {
return crBPDInline();
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AbstractListItemContent.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AbstractListItemContent.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AbstractListItemContent.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -176,7 +176,7 @@
for (Area area : this.children) {
/* TODO: This is not right. We need the space-before, etc.
* considered also. */
- pd += area.brBPD();
+ pd += area.brBpd();
}
return pd;
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -189,7 +189,7 @@
* @see Fo#traitEndIndent(FoContext, int)
*/
public int traitEndIndent() {
- final int percentBase = this.getContainingReferenceArea().crIPD();
+ final int percentBase = this.getContainingReferenceArea().crIpd();
return traitGeneratedBy().traitEndIndent(this, percentBase);
}
@@ -200,7 +200,7 @@
*/
public int traitStartIndent() {
final Area containingRA = this.getContainingReferenceArea();
- final int percentBase = containingRA.crIPD();
+ final int percentBase = containingRA.crIpd();
return traitGeneratedBy().traitStartIndent(this, percentBase);
}
@@ -473,15 +473,15 @@
/**
* {@inheritDoc}
*/
- public int brIPD() {
- return prIPD() + traitBorderStartWidth() + traitBorderEndWidth();
+ public int brIpd() {
+ return prIpd() + traitBorderStartWidth() + traitBorderEndWidth();
}
/**
* {@inheritDoc}
*/
- public int brBPD() {
- return prBPD() + traitBorderBeforeWidth() + traitBorderAfterWidth();
+ public int brBpd() {
+ return prBpd() + traitBorderBeforeWidth() + traitBorderAfterWidth();
}
/**
@@ -571,8 +571,8 @@
* @return The inline-progression-dimension of the padding-rectangle for
* this Area.
*/
- public int prIPD() {
- return crIPD() + traitPaddingStart() + traitPaddingEnd();
+ public int prIpd() {
+ return crIpd() + traitPaddingStart() + traitPaddingEnd();
}
/**
@@ -580,8 +580,8 @@
* @return The block-progression-dimension of the padding-rectangle for
* this Area.
*/
- public int prBPD() {
- return crBPD() + traitPaddingBefore() + traitPaddingAfter();
+ public int prBpd() {
+ return crBpd() + traitPaddingBefore() + traitPaddingAfter();
}
/**
@@ -670,12 +670,12 @@
/**
* {@inheritDoc}
*/
- public abstract int crIPD();
+ public abstract int crIpd();
/**
* {@inheritDoc}
*/
- public abstract int crBPD();
+ public abstract int crBpd();
/**
* The difference, in millipoints, between the page-viewport-area's
@@ -781,9 +781,9 @@
*/
public int narIPD() {
if (isBlockArea()) {
- return crIPD() + traitStartIndent() + traitEndIndent();
+ return crIpd() + traitStartIndent() + traitEndIndent();
}
- return brIPD();
+ return brIpd();
}
/**
@@ -793,9 +793,9 @@
*/
public int narBPD() {
if (isBlockArea()) {
- return brBPD();
+ return brBpd();
}
- return crBPD();
+ return crBpd();
}
/**
@@ -823,7 +823,7 @@
*/
public int larIPD() {
// LAR is the same as the BR
- return brIPD();
+ return brIpd();
}
/**
@@ -833,7 +833,7 @@
*/
public int larBPD() {
// LAR is the same as the BR
- return brBPD();
+ return brBpd();
}
/**
@@ -1027,7 +1027,7 @@
public int traitSpaceStartOptimum() {
final Area ancestor = this.ancestorBlockAreaNotALineArea();
return traitGeneratedBy().traitSpaceStartOptimum(this,
- ancestor.crIPD());
+ ancestor.crIpd());
}
/**
@@ -1055,7 +1055,7 @@
*/
public int traitSpaceEndOptimum() {
final Area ancestor = this.ancestorBlockAreaNotALineArea();
- return traitGeneratedBy().traitSpaceEndOptimum(this, ancestor.crIPD());
+ return traitGeneratedBy().traitSpaceEndOptimum(this, ancestor.crIpd());
}
/**
@@ -1550,8 +1550,8 @@
return new Rectangle2D.Float(
crOriginX() / WKConstants.MILLIPOINTS_PER_POINT,
crOriginY() / WKConstants.MILLIPOINTS_PER_POINT,
- crIPD() / WKConstants.MILLIPOINTS_PER_POINT,
- crBPD() / WKConstants.MILLIPOINTS_PER_POINT);
+ crIpd() / WKConstants.MILLIPOINTS_PER_POINT,
+ crBpd() / WKConstants.MILLIPOINTS_PER_POINT);
}
/**
@@ -1562,8 +1562,8 @@
return new Rectangle2D.Float(
brOriginX() / WKConstants.MILLIPOINTS_PER_POINT,
brOriginY() / WKConstants.MILLIPOINTS_PER_POINT,
- brIPD() / WKConstants.MILLIPOINTS_PER_POINT,
- brBPD() / WKConstants.MILLIPOINTS_PER_POINT);
+ brIpd() / WKConstants.MILLIPOINTS_PER_POINT,
+ brBpd() / WKConstants.MILLIPOINTS_PER_POINT);
}
/**
@@ -1601,7 +1601,7 @@
*/
public int traitTop() {
final Area ancestor = this.ancestorBlockAreaNotALineArea();
- return traitGeneratedBy().traitTop(this, ancestor.crBPD());
+ return traitGeneratedBy().traitTop(this, ancestor.crBpd());
}
/**
@@ -1611,7 +1611,7 @@
*/
public int traitBottom() {
final Area ancestor = this.ancestorBlockAreaNotALineArea();
- return traitGeneratedBy().traitBottom(this, ancestor.crBPD());
+ return traitGeneratedBy().traitBottom(this, ancestor.crBpd());
}
/**
@@ -1621,7 +1621,7 @@
*/
public int traitLeft() {
final Area ancestor = this.ancestorBlockAreaNotALineArea();
- return traitGeneratedBy().traitLeft(this, ancestor.crIPD());
+ return traitGeneratedBy().traitLeft(this, ancestor.crIpd());
}
/**
@@ -1631,7 +1631,7 @@
*/
public int traitRight() {
final Area ancestor = this.ancestorBlockAreaNotALineArea();
- return traitGeneratedBy().traitRight(this, ancestor.crIPD());
+ return traitGeneratedBy().traitRight(this, ancestor.crIpd());
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaFixed.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AreaFixed.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaFixed.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -49,7 +49,7 @@
* {@inheritDoc}
*/
public int pdAvailable() {
- int dimension = brBPD();
+ int dimension = brBpd();
final List<AreaNode> children = getChildren();
for (int i = 0; i < children.size(); i++) {
if (children.get(i) instanceof AreaFlexible) {
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaFlexible.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AreaFlexible.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaFlexible.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -186,7 +186,7 @@
int actual = 0;
final int computed = this.traitIPDimensionOpt();
if (computed < 0) {
- actual = ancestorArea().crIPD()
+ actual = ancestorArea().crIpd()
- traitBorderStartWidth()
- traitBorderEndWidth()
- traitPaddingStart()
@@ -205,7 +205,7 @@
int actual = 0;
final int computed = this.traitBPDimensionOpt();
if (computed < 0) {
- actual = ancestorArea().crBPD()
+ actual = ancestorArea().crBpd()
- traitBorderBeforeWidth()
- traitBorderAfterWidth()
- traitPaddingBefore()
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -376,11 +376,11 @@
/**
* {@inheritDoc}
*/
- public Area nearestGeneratedByBlockLevelFO() {
+ public Area nearestGeneratedByBlockLevelFo() {
if (this instanceof Area && traitGeneratedBy().isBlockLevelFO()) {
return (Area) this;
}
- return getParent().nearestGeneratedByBlockLevelFO();
+ return getParent().nearestGeneratedByBlockLevelFo();
}
/**
@@ -662,7 +662,7 @@
* Also, consider renaming the method, both here and in aXSL, depending
* on the clarification. */
final Area area = this.ancestorRaOrGenByBlockFo();
- return area.crIPD();
+ return area.crIpd();
}
/**
@@ -674,7 +674,7 @@
* Also, consider renaming the method, both here and in aXSL, depending
* on the clarification. */
final Area area = this.ancestorRaOrGenByBlockFo();
- return area.crBPD();
+ return area.crBpd();
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -78,16 +78,16 @@
/**
* {@inheritDoc}
*/
- public int crBPD() {
+ public int crBpd() {
return ((RegionRABody) ancestorArea()).getDimensionBeforeFloatRA();
}
/**
* {@inheritDoc}
*/
- public int crIPD() {
+ public int crIpd() {
// Same as its parent's.
- return ancestorArea().crIPD();
+ return ancestorArea().crIpd();
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BlockArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/BlockArea.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/BlockArea.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -43,9 +43,9 @@
/**
* {@inheritDoc}
*/
- public int crIPD() {
+ public int crIpd() {
final Area containingReferenceArea = this.getContainingReferenceArea();
- int result = containingReferenceArea.crIPD();
+ int result = containingReferenceArea.crIpd();
result -= this.traitStartIndent();
result -= this.traitEndIndent();
result -= this.traitBorderStartWidth();
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -115,7 +115,7 @@
if (bottom != Fo.ABSOLUTE_POSITION_AUTO) {
/* If "bottom" is specified, */
final Area parentArea = this.getAreaParent();
- return parentArea.crBPD() - bottom
+ return parentArea.crBpd() - bottom
- this.getProgressionDimension();
}
}
@@ -148,14 +148,14 @@
/**
* {@inheritDoc}
*/
- public int crIPD() {
+ public int crIpd() {
return crIPDBlockArea();
}
/**
* {@inheritDoc}
*/
- public int crBPD() {
+ public int crBpd() {
return getProgressionDimension();
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -76,16 +76,16 @@
/**
* {@inheritDoc}
*/
- public int crBPD() {
+ public int crBpd() {
return ((RegionRABody) ancestorArea()).getDimensionFootnoteRA();
}
/**
* {@inheritDoc}
*/
- public int crIPD() {
+ public int crIpd() {
// Same as its parent's.
- return ancestorArea().crIPD();
+ return ancestorArea().crIpd();
}
/**
@@ -101,7 +101,7 @@
*/
public int crOriginBPDOffset() {
// The bpd of the main-reference-area ...
- int offset = ancestorArea().crBPD();
+ int offset = ancestorArea().crBpd();
// ... less the size of the footnote-reference-area
offset -= getRegionBodyArea().getDimensionFootnoteRA();
return offset;
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -222,7 +222,7 @@
*/
public int traitLeaderPatternWidth() {
return traitGeneratedBy().traitLeaderPatternWidth(
- this, ancestorArea().crIPD());
+ this, ancestorArea().crIpd());
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -535,8 +535,8 @@
final Object o = getChildren().get(i);
if (o instanceof AbstractInlineArea) {
final AbstractInlineArea ia = (AbstractInlineArea) o;
- if (ia.crBPD() > maxHeight) {
- maxHeight = ia.crBPD();
+ if (ia.crBpd() > maxHeight) {
+ maxHeight = ia.crBpd();
}
}
}
@@ -637,7 +637,7 @@
* @return The amount of unused space on the line.
*/
public int totalAlignmentAdjustment() {
- return this.crIPD() - lineContentLengthUsed();
+ return this.crIpd() - lineContentLengthUsed();
}
/**
@@ -679,7 +679,7 @@
*/
public int pdAvailable() {
// First, get the total usable line length.
- int dimension = crIPD();
+ int dimension = crIpd();
// Now, subtract the amount already used by children.
dimension -= lineContentLengthUsed();
return dimension;
@@ -872,7 +872,7 @@
}
final Area ancestorBlockAreaNotALineArea
= this.ancestorBlockAreaNotALineArea();
- final int percentBase = ancestorBlockAreaNotALineArea.crIPD();
+ final int percentBase = ancestorBlockAreaNotALineArea.crIpd();
return traitGeneratedBy().traitTextIndent(this, percentBase);
}
@@ -886,7 +886,7 @@
}
final Area ancestorBlockAreaNotALineArea
= this.ancestorBlockAreaNotALineArea();
- final int percentBase = ancestorBlockAreaNotALineArea.crIPD();
+ final int percentBase = ancestorBlockAreaNotALineArea.crIpd();
return traitGeneratedBy().traitLastLineEndIndent(this, percentBase);
}
@@ -924,7 +924,7 @@
* {@inheritDoc}
*/
public int capacityTotal() {
- return crIPD();
+ return crIpd();
}
/**
@@ -1230,7 +1230,7 @@
/**
* {@inheritDoc}
*/
- public int crBPD() {
+ public int crBpd() {
return getProgressionDimension();
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -121,16 +121,16 @@
/**
* {@inheritDoc}
*/
- public int crBPD() {
+ public int crBpd() {
return getProgressionDimension();
}
/**
* {@inheritDoc}
*/
- public int crIPD() {
+ public int crIpd() {
/* TODO: This is probably not right. */
- return this.ancestorArea().crIPD();
+ return this.ancestorArea().crIpd();
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ListItemArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/ListItemArea.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/ListItemArea.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -113,16 +113,16 @@
/**
* {@inheritDoc}
*/
- public int crBPD() {
+ public int crBpd() {
return getProgressionDimension();
}
/**
* {@inheritDoc}
*/
- public int crIPD() {
+ public int crIpd() {
/* TODO: This is probably not right. */
- return this.ancestorArea().crIPD();
+ return this.ancestorArea().crIpd();
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -265,16 +265,16 @@
/**
* {@inheritDoc}
*/
- public int crBPD() {
+ public int crBpd() {
return ((RegionRABody) ancestorArea()).getDimensionMainRA();
}
/**
* {@inheritDoc}
*/
- public int crIPD() {
+ public int crIpd() {
// Same as its parent's.
- return ancestorArea().brIPD();
+ return ancestorArea().brIpd();
}
/**
@@ -299,7 +299,7 @@
throws WritableAreaException {
final RegionRABody bodyRegion = (RegionRABody) ancestorArea()
.getOverflowArea(this);
- return bodyRegion.getMainRA();
+ return bodyRegion.getMainRefArea();
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -202,7 +202,7 @@
/**
* {@inheritDoc}
*/
- public int crBPD() {
+ public int crBpd() {
return this.getProgressionDimension();
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java 2007-07-02 18:22:30 UTC (rev 9908)
@@ -121,14 +121,14 @@
/**
* {@inheritDoc}
*/
- public int crBPD() {
- return ancestorArea().crBPD();
+ public int crBpd() {
+ return ancestorArea().crBpd();
}
/**
* {@inheritDoc}
*/
- public int crIPD() {
+ public int crIpd() {
return getParent().getColumnWidth();
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java 2007-07-02 17:36:55 UTC (rev 9907)
+++ t...
[truncated message content] |
|
From: <vic...@us...> - 2007-07-02 18:43:44
|
Revision: 9909
http://svn.sourceforge.net/foray/?rev=9909&view=rev
Author: victormote
Date: 2007-07-02 11:42:13 -0700 (Mon, 02 Jul 2007)
Log Message:
-----------
Conform to axsl method name changes.
Modified Paths:
--------------
trunk/foray/foray-app/src/javatest/org/foray/app/area/AreaTreeCreator.java
trunk/foray/foray-app/src/javatest/org/foray/app/fo/AbstractFoTreeTest.java
trunk/foray/foray-app/src/javatest/org/foray/app/fo/FoDocumentReader.java
trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java
trunk/foray/foray-core/src/java/org/foray/core/FOrayDocument.java
trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjScaled.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FOrayFOTreeServer.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Float.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Footnote.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiProperties.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiSwitch.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Region.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionAfter.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBefore.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBody.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionEnd.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionStart.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveMarker.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Title.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Wrapper.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractAbsoluteDimension.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractRelativeDimension.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderSeparation.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnGap.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ContentHeight.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ContentWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/ExternalGraphicPL.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/TableCellPL.java
Modified: trunk/foray/foray-app/src/javatest/org/foray/app/area/AreaTreeCreator.java
===================================================================
--- trunk/foray/foray-app/src/javatest/org/foray/app/area/AreaTreeCreator.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-app/src/javatest/org/foray/app/area/AreaTreeCreator.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -103,7 +103,7 @@
public AreaTree buildAreaTree(final String file) throws FOrayException {
final FoDocumentReader foReader = FoDocumentReader.getInstance();
final FOTreeBuilder foTree = foReader.buildFoTree(file);
- final Root root = foTree.getRootFObj();
+ final Root root = foTree.getRootFo();
final AreaTree areaTree = this.areaTreeFactory.makeAreaTree(root);
final PioneerLS layout = this.layoutFactory.makeLayout();
for (PageSequence pageSequence : root.getPageSequences()) {
Modified: trunk/foray/foray-app/src/javatest/org/foray/app/fo/AbstractFoTreeTest.java
===================================================================
--- trunk/foray/foray-app/src/javatest/org/foray/app/fo/AbstractFoTreeTest.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-app/src/javatest/org/foray/app/fo/AbstractFoTreeTest.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -47,7 +47,7 @@
* @return The first flow in <code>foTree</code>
*/
protected Flow getFlow(final FOTreeBuilder foTree) {
- final Root root = foTree.getRootFObj();
+ final Root root = foTree.getRootFo();
FONode node = root.getChildAt(1);
assertTrue(node instanceof PageSequence);
final PageSequence sequence = (PageSequence) node;
Modified: trunk/foray/foray-app/src/javatest/org/foray/app/fo/FoDocumentReader.java
===================================================================
--- trunk/foray/foray-app/src/javatest/org/foray/app/fo/FoDocumentReader.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-app/src/javatest/org/foray/app/fo/FoDocumentReader.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -147,7 +147,7 @@
} catch (final ParserConfigurationException e) {
throw new FOrayException(e);
}
- final FOTreeBuilder foTree = this.treeServer.makeFOTree();
+ final FOTreeBuilder foTree = this.treeServer.makeFoTree();
final FontServer fontServer = this.treeServer.getFontServer();
final FontConsumer fontConsumer = fontServer.makeFontConsumer();
foTree.setFontConsumer(fontConsumer);
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -1079,28 +1079,28 @@
/**
* Returns the bp direction trait for this area.
* @return The bp direction trait for this area.
- * @see Fo#traitBPDirection(FoContext)
+ * @see Fo#traitBpDirection(FoContext)
*/
public AbsoluteDirection traitBPDirection() {
- return traitGeneratedBy().traitBPDirection(this);
+ return traitGeneratedBy().traitBpDirection(this);
}
/**
* Returns the ip direction trait for odd-numbered lines in this area.
* @return The ip direction trait for odd-numbered lines in this area.
- * @see Fo#traitIPDirectionOdd(FoContext)
+ * @see Fo#traitIpDirectionOdd(FoContext)
*/
public AbsoluteDirection traitIPDirectionOdd() {
- return traitGeneratedBy().traitIPDirectionOdd(this);
+ return traitGeneratedBy().traitIpDirectionOdd(this);
}
/**
* Returns the ip direction trait for even-numbered lines in this area.
* @return The ip direction trait for even-numbered lines in this area.
- * @see Fo#traitIPDirectionOdd(FoContext)
+ * @see Fo#traitIpDirectionOdd(FoContext)
*/
public AbsoluteDirection traitIPDirectionEven() {
- return traitGeneratedBy().traitIPDirectionEven(this);
+ return traitGeneratedBy().traitIpDirectionEven(this);
}
/**
@@ -1108,7 +1108,7 @@
* @return The minimum BP dimension for this area, or -1 for "auto".
*/
public int traitBPDimensionMin() {
- return traitGeneratedBy().traitBPDimensionMin(this);
+ return traitGeneratedBy().traitBpDimensionMin(this);
}
/**
@@ -1116,7 +1116,7 @@
* @return The optimum BP dimension for this area, or -1 for "auto".
*/
public int traitBPDimensionOpt() {
- return traitGeneratedBy().traitBPDimensionOpt(this);
+ return traitGeneratedBy().traitBpDimensionOpt(this);
}
/**
@@ -1124,7 +1124,7 @@
* @return The maximim BP dimension for this area, or -1 for "auto".
*/
public int traitBPDimensionMax() {
- return traitGeneratedBy().traitBPDimensionMax(this);
+ return traitGeneratedBy().traitBpDimensionMax(this);
}
/**
@@ -1132,7 +1132,7 @@
* @return The minimum IP dimension for this area, or -1 for "auto".
*/
public int traitIPDimensionMin() {
- return traitGeneratedBy().traitIPDimensionMin(this);
+ return traitGeneratedBy().traitIpDimensionMin(this);
}
/**
@@ -1140,7 +1140,7 @@
* @return The optimum IP dimension for this area, or -1 for "auto".
*/
public int traitIPDimensionOpt() {
- return traitGeneratedBy().traitIPDimensionOpt(this);
+ return traitGeneratedBy().traitIpDimensionOpt(this);
}
/**
@@ -1148,7 +1148,7 @@
* @return The maximim IP dimension for this area, or -1 for "auto".
*/
public int traitIPDimensionMax() {
- return traitGeneratedBy().traitIPDimensionMax(this);
+ return traitGeneratedBy().traitIpDimensionMax(this);
}
/**
@@ -1175,7 +1175,7 @@
* {@link AbsoluteAxis#VERTICAL}, or null if writing-mode is invalid.
*/
public AbsoluteAxis getBPAxis() {
- return traitGeneratedBy().getBPAxis(this);
+ return traitGeneratedBy().getBpAxis(this);
}
/**
@@ -1184,7 +1184,7 @@
* {@link AbsoluteAxis#VERTICAL}, or null if writing-mode is invalid.
*/
public AbsoluteAxis getIPAxis() {
- return traitGeneratedBy().getIPAxis(this);
+ return traitGeneratedBy().getIpAxis(this);
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -377,7 +377,7 @@
* {@inheritDoc}
*/
public Area nearestGeneratedByBlockLevelFo() {
- if (this instanceof Area && traitGeneratedBy().isBlockLevelFO()) {
+ if (this instanceof Area && traitGeneratedBy().isBlockLevelFo()) {
return (Area) this;
}
return getParent().nearestGeneratedByBlockLevelFo();
@@ -405,7 +405,7 @@
* @return True iff this Area was generated by a block-level FO.
*/
public boolean isGeneratedByBlockLevelFo() {
- return this.traitGeneratedBy().isBlockLevelFO();
+ return this.traitGeneratedBy().isBlockLevelFo();
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -144,7 +144,7 @@
*/
public int viewportBPD() {
final ExternalGraphic eg = this.traitGeneratedBy();
- return eg.viewportBPD(this);
+ return eg.viewportBpd(this);
}
/**
@@ -153,7 +153,7 @@
*/
public int viewportIPD() {
final ExternalGraphic eg = this.traitGeneratedBy();
- return eg.viewportIPD(this);
+ return eg.viewportIpd(this);
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -126,7 +126,7 @@
newFoArea.viewportBPD());
// Create the reference area for the content.
- final FoForeignXml foreign = generatedBy.getForeignXML();
+ final FoForeignXml foreign = generatedBy.getForeignXml();
if (foreign instanceof SvgElement) {
final SvgElement svgElement = (SvgElement) foreign;
final SVGArea svgArea = SVGArea.makeSvgArea(svgElement, newFoArea,
@@ -149,7 +149,7 @@
*/
public int viewportBPD() {
final InstreamForeignObject ifo = this.traitGeneratedBy();
- return ifo.viewportBPD(this);
+ return ifo.viewportBpd(this);
}
/**
@@ -158,7 +158,7 @@
*/
public int viewportIPD() {
final InstreamForeignObject ifo = this.traitGeneratedBy();
- return ifo.viewportIPD(this);
+ return ifo.viewportIpd(this);
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -89,7 +89,7 @@
* @return The y position of this area (??).
*/
public int getYPosition() {
- return traitGeneratedBy().getYPositionVPContent(this);
+ return traitGeneratedBy().crY(this);
}
/**
@@ -97,7 +97,7 @@
* @return The x position of this area (??).
*/
public int getXPosition() {
- return traitGeneratedBy().getXPositionVPContent(this);
+ return traitGeneratedBy().crX(this);
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -80,7 +80,7 @@
*/
public SvgGraphic getSvgGraphic() {
final SvgElement generatedBy = traitGeneratedBy();
- return generatedBy.getSVGGraphic();
+ return generatedBy.getSvgGraphic();
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -237,7 +237,7 @@
public int getStartAdjust() {
final TableCell tableCell = traitGeneratedBy();
if (tableCell.traitBorderCollapse(this) == BorderModel.SEPARATE) {
- final int iSep = tableCell.traitBorderSeparationIPD(this);
+ final int iSep = tableCell.traitBorderSeparationIpd(this);
return iSep / 2 + tableCell.traitBorderStartWidth(this, true)
+ tableCell.traitPaddingStart(this, true);
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -260,7 +260,7 @@
/* For "auto" column width, start by just making all of the columns
* equal. */
final Table table = this.traitGeneratedBy();
- final int tableWidth = table.traitIPDimensionOpt(this);
+ final int tableWidth = table.traitIpDimensionOpt(this);
if (this.resolvedColumnWidth.length < 1) {
/* TODO: Consider throwing an exception here. */
return 0;
@@ -280,7 +280,7 @@
*/
private int calcFixedColumnWidths(final int maxAllocationIPD) {
final Table table = this.traitGeneratedBy();
- final int tableWidth = table.traitIPDimensionOpt(this);
+ final int tableWidth = table.traitIpDimensionOpt(this);
/* Accumulates the total table units used in columns in this table. */
double totalTableUnits = 0.0;
/* Accumulates the total width, in millipoints, of the columns that
@@ -317,32 +317,32 @@
int maxIPD;
final boolean bHasProportionalUnits = totalTableUnits > 0.0;
- if (table.traitIPDimensionMax(this) >= 0) {
- maxIPD = table.traitIPDimensionMax(this);
+ if (table.traitIpDimensionMax(this) >= 0) {
+ maxIPD = table.traitIpDimensionMax(this);
} else {
maxIPD = maxAllocationIPD;
}
- if (table.traitIPDimensionOpt(this) < 0) {
+ if (table.traitIpDimensionOpt(this) < 0) {
optIPD = -1;
} else {
- optIPD = table.traitIPDimensionOpt(this);
+ optIPD = table.traitIpDimensionOpt(this);
}
- if (table.traitIPDimensionMin(this) < 0) {
+ if (table.traitIpDimensionMin(this) < 0) {
minIPD = -1;
} else {
- minIPD = table.traitIPDimensionMin(this);
+ minIPD = table.traitIpDimensionMin(this);
}
if (bHasProportionalUnits && optIPD < 0) {
if (minIPD > 0) {
- if (table.traitIPDimensionMax(this) >= 0) {
+ if (table.traitIpDimensionMax(this) >= 0) {
optIPD = (minIPD + maxIPD) / 2;
} else {
optIPD = minIPD;
}
- } else if (table.traitIPDimensionMax(this) >= 0) {
+ } else if (table.traitIpDimensionMax(this) >= 0) {
optIPD = maxIPD;
} else {
getLogger().error("At least one of minimum, optimum, or "
@@ -661,7 +661,7 @@
* @return The IPD portion of the border separation trait for this Area.
*/
public int traitBorderSeparationIPD() {
- return traitGeneratedBy().traitBorderSeparationIPD(this);
+ return traitGeneratedBy().traitBorderSeparationIpd(this);
}
/**
@@ -669,7 +669,7 @@
* @return The BPD portion of the border separation trait for this Area.
*/
public int traitBorderSeparationBPD() {
- return traitGeneratedBy().traitBorderSeparationBPD(this);
+ return traitGeneratedBy().traitBorderSeparationBpd(this);
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -88,7 +88,7 @@
newRow.registerWithLinkage(graftingPoint);
/* Non-standard initialization of progression dimension. */
- int startingPD = generatedBy.traitBPDimensionMin(newRow);
+ int startingPD = generatedBy.traitBpDimensionMin(newRow);
if (startingPD == Fo.DIMENSION_AUTO) {
startingPD = 0;
}
Modified: trunk/foray/foray-core/src/java/org/foray/core/FOrayDocument.java
===================================================================
--- trunk/foray/foray-core/src/java/org/foray/core/FOrayDocument.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-core/src/java/org/foray/core/FOrayDocument.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -115,7 +115,7 @@
private FOrayDocument(final FOraySession session) {
this.session = session;
session.registerDocument(this);
- treeBuilder = this.session.getFOTreeFactory().makeFOTree();
+ treeBuilder = this.session.getFOTreeFactory().makeFoTree();
}
/**
Modified: trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java
===================================================================
--- trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -274,7 +274,7 @@
private org.axsl.areaW.AreaTree getCreatedAreaTree() {
if (this.areaTree == null) {
this.areaTree = this.getAreaTreeFactory().makeAreaTree(
- this.document.getFOTreeBuilder().getRootFObj());
+ this.document.getFOTreeBuilder().getRootFo());
this.areaTree.registerListener(this);
}
return this.areaTree;
@@ -322,7 +322,7 @@
* do not need to do anything with it, so we ignore it.
* @param event The FOTreeEvent that was fired.
*/
- public void foFObjComplete(final FoTreeEvent event) {
+ public void foComplete(final FoTreeEvent event) {
}
/**
@@ -359,7 +359,7 @@
/**
* {@inheritDoc}
*/
- public boolean wantsFObjCompleteEvents() {
+ public boolean wantsFoCompleteEvents() {
return false;
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -342,7 +342,7 @@
return;
}
foTreeListeners.add(listener);
- if (listener.wantsFObjCompleteEvents()) {
+ if (listener.wantsFoCompleteEvents()) {
this.qtyFObjListeners ++;
}
}
@@ -357,7 +357,7 @@
return;
}
foTreeListeners.remove(listener);
- if (listener.wantsFObjCompleteEvents()) {
+ if (listener.wantsFoCompleteEvents()) {
this.qtyFObjListeners --;
}
}
@@ -376,7 +376,7 @@
final FoTreeEvent event = new FoTreeEvent(this, fobj);
for (int i = 0; i < foTreeListeners.size(); i++) {
final FoTreeListener listener = foTreeListeners.get(i);
- listener.foFObjComplete(event);
+ listener.foComplete(event);
}
}
@@ -457,7 +457,7 @@
/**
* {@inheritDoc}
*/
- public Root getRootFObj() {
+ public Root getRootFo() {
return this.rootFObj;
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -336,7 +336,7 @@
/**
* {@inheritDoc}
*/
- public boolean isBlockLevelFO() {
+ public boolean isBlockLevelFo() {
return false;
}
@@ -730,7 +730,7 @@
public Span traitSpan(final FoContext context) {
/* Only block-level FOs are affected by column-count, so, for all other
* FOs, treat them as if the span trait were "all". */
- if (this.isBlockLevelFO()) {
+ if (this.isBlockLevelFo()) {
final FoValue foSpan = propertyList.getSpan(this, context);
return convertSpan(foSpan);
}
@@ -866,14 +866,14 @@
/**
* {@inheritDoc}
*/
- public int traitBorderSeparationIPD(final FoContext context) {
+ public int traitBorderSeparationIpd(final FoContext context) {
return propertyList.getBorderSeparationIPD(this, context);
}
/**
* {@inheritDoc}
*/
- public int traitBorderSeparationBPD(final FoContext context) {
+ public int traitBorderSeparationBpd(final FoContext context) {
return propertyList.getBorderSeparationBPD(this, context);
}
@@ -1682,42 +1682,42 @@
/**
* {@inheritDoc}
*/
- public int traitBPDimensionMax(final FoContext context) {
+ public int traitBpDimensionMax(final FoContext context) {
return propertyList.traitBPDimensionMax(this, context);
}
/**
* {@inheritDoc}
*/
- public int traitBPDimensionOpt(final FoContext context) {
+ public int traitBpDimensionOpt(final FoContext context) {
return propertyList.traitBPDimensionOpt(this, context);
}
/**
* {@inheritDoc}
*/
- public int traitBPDimensionMin(final FoContext context) {
+ public int traitBpDimensionMin(final FoContext context) {
return propertyList.traitBPDimensionMin(this, context);
}
/**
* {@inheritDoc}
*/
- public int traitIPDimensionMax(final FoContext context) {
+ public int traitIpDimensionMax(final FoContext context) {
return propertyList.traitIPDimensionMax(this, context);
}
/**
* {@inheritDoc}
*/
- public int traitIPDimensionOpt(final FoContext context) {
+ public int traitIpDimensionOpt(final FoContext context) {
return propertyList.traitIPDimensionOpt(this, context);
}
/**
* {@inheritDoc}
*/
- public int traitIPDimensionMin(final FoContext context) {
+ public int traitIpDimensionMin(final FoContext context) {
return propertyList.traitIPDimensionMin(this, context);
}
@@ -2072,21 +2072,21 @@
/**
* {@inheritDoc}
*/
- public AbsoluteDirection traitIPDirectionOdd(final FoContext context) {
+ public AbsoluteDirection traitIpDirectionOdd(final FoContext context) {
return propertyList.traitIPDirectionOdd(this, context);
}
/**
* {@inheritDoc}
*/
- public AbsoluteDirection traitIPDirectionEven(final FoContext context) {
+ public AbsoluteDirection traitIpDirectionEven(final FoContext context) {
return propertyList.traitIPDirectionEven(this, context);
}
/**
* {@inheritDoc}
*/
- public AbsoluteDirection traitBPDirection(final FoContext context) {
+ public AbsoluteDirection traitBpDirection(final FoContext context) {
return propertyList.traitBPDirection(this, context);
}
@@ -2163,7 +2163,7 @@
context);
switch (rawValue) {
case AUTO: {
- if (this.isBlockLevelFO()) {
+ if (this.isBlockLevelFo()) {
final Iso15924 script = this.traitScript(context);
final DtWritingMode writingMode = this.getWritingMode(context);
if (script.equals("auto")) {
@@ -3535,14 +3535,14 @@
/**
* {@inheritDoc}
*/
- public AbsoluteAxis getBPAxis(final FoContext context) {
+ public AbsoluteAxis getBpAxis(final FoContext context) {
return propertyList.getBPAxis(this, context);
}
/**
* {@inheritDoc}
*/
- public AbsoluteAxis getIPAxis(final FoContext context) {
+ public AbsoluteAxis getIpAxis(final FoContext context) {
return propertyList.getIPAxis(this, context);
}
@@ -3556,7 +3556,7 @@
/**
* {@inheritDoc}
*/
- public FObj getPreviousSiblingFObj() {
+ public FObj getPreviousSiblingFo() {
FONode node = this;
while (node != null) {
node = (FONode) node.getPreviousSibling();
@@ -3584,7 +3584,7 @@
/**
* {@inheritDoc}
*/
- public boolean isContentPCDATA() {
+ public boolean isContentPcdata() {
return false;
}
@@ -3605,7 +3605,7 @@
/**
* {@inheritDoc}
*/
- public boolean canContainPCDATA() {
+ public boolean canContainPcdata() {
return false;
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -148,7 +148,7 @@
* {@inheritDoc}
*/
@Override
- public boolean canContainPCDATA() {
+ public boolean canContainPcdata() {
return true;
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjScaled.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjScaled.java 2007-07-02 18:22:30 UTC (rev 9908)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjScaled.java 2007-07-02 18:42:13 UTC (rev 9909)
@@ -69,10 +69,10 @@
/**
* {@inheritDoc}
*/
- public int viewportIPD(final FoContext context) {
+ public int viewportIpd(final FoContext context) {
/* See XSL-FO Standard 1.0, Section 6.6.5 and 6.6.6, Subsection
* "Constraints", first paragraph, for explanation of logic. */
- final int viewportIPD = this.traitIPDimensionOpt(context);
+ final int viewportIPD = this.traitIpDimensionOpt(context);
if (viewportIPD != FObj.DIMENSION_AUTO) {
return viewportIPD;
}
@@ -103,7 +103,7 @@
context.ipdNearestBlockLevel());
} else {
/* We can use the other dimension to compute this one. */
- final int viewportBpd = this.viewportBPD(context);
+ final int viewportBpd = this.viewportBpd(context);
final int intrinsicHeight = this.intrinsicContentWidth(context);
final float widthToHeight = (float) intrinsicWidth
/ (float) intrinsicHeight;
@@ -126,7 +126,7 @@
* can be.
*/
private boolean isViewportIpdDependent(final FoContext context) {
- final int viewportIPD = this.traitIPDimensionOpt(context);
+ final int viewportIPD = this.traitIpDimensionOpt(context);
...
[truncated message content] |
|
From: <vic...@us...> - 2007-07-02 19:20:26
|
Revision: 9910
http://svn.sourceforge.net/foray/?rev=9910&view=rev
Author: victormote
Date: 2007-07-02 12:20:26 -0700 (Mon, 02 Jul 2007)
Log Message:
-----------
Make EncodingVector abstract, and create a concrete subclass for non-predefined instances.
Modified Paths:
--------------
trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java
trunk/foray/foray-font/src/java/org/foray/font/format/MetricsFileAFM.java
trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java
Modified: trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java 2007-07-02 18:42:13 UTC (rev 9909)
+++ trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java 2007-07-02 19:20:26 UTC (rev 9910)
@@ -30,6 +30,7 @@
import org.foray.common.RandomReader;
import org.foray.common.url.URLFactory;
+import org.foray.ps.encode.EncodingCustom;
import org.foray.ps.encode.EncodingParser;
import org.foray.ps.encode.EncodingVector;
import org.foray.ps.encode.GlyphList;
@@ -768,7 +769,7 @@
} catch (final IOException e2) {
logError("Error parsing: " + encodingFile);
}
- encoding = new EncodingVector(name, parser.getGlyphListsToCheck(),
+ encoding = new EncodingCustom(name, parser.getGlyphListsToCheck(),
parser.getCodePoints(),
parser.getCodePointIndexes());
EncodingVector.registerEncoding(name, encoding);
Modified: trunk/foray/foray-font/src/java/org/foray/font/format/MetricsFileAFM.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/format/MetricsFileAFM.java 2007-07-02 18:42:13 UTC (rev 9909)
+++ trunk/foray/foray-font/src/java/org/foray/font/format/MetricsFileAFM.java 2007-07-02 19:20:26 UTC (rev 9910)
@@ -31,6 +31,7 @@
import org.foray.common.Bit;
import org.foray.font.charset.CharSet;
import org.foray.font.output.FOrayFontPDF;
+import org.foray.ps.encode.EncodingCustom;
import org.foray.ps.encode.EncodingVector;
import org.foray.ps.encode.GlyphList;
@@ -1624,7 +1625,7 @@
EncodingVector.sortCodePoints(this.internalCodePoints,
this.internalCodePointIndexes);
/* Create a tentative EncodingVector instance. */
- final EncodingVector newEncoding = new EncodingVector("internal-"
+ final EncodingVector newEncoding = new EncodingCustom("internal-"
+ this.getPostscriptName(), null, this.internalCodePoints,
this.internalCodePointIndexes);
/* Is this a predefined encoding? */
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java 2007-07-02 18:42:13 UTC (rev 9909)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java 2007-07-02 19:20:26 UTC (rev 9910)
@@ -83,7 +83,7 @@
* the first array.
* Methods are provided to encode and decode characters.</p>
*/
-public class EncodingVector extends Encoding
+public abstract class EncodingVector extends Encoding
implements org.axsl.psR.EncodingVector, Serializable {
/** Constant needed for serialization. */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-02 19:47:53
|
Revision: 9913
http://svn.sourceforge.net/foray/?rev=9913&view=rev
Author: victormote
Date: 2007-07-02 12:47:27 -0700 (Mon, 02 Jul 2007)
Log Message:
-----------
Conform to axsl method name changes.
Modified Paths:
--------------
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFEncoding.java
trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java
trunk/foray/foray-ps/src/java/org/foray/ps/encode/Encoding.java
trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingISOLatin1.java
trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingMacExpert.java
trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingMacRoman.java
trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingPDFDoc.java
trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingStandard.java
trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java
trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingWinAnsi.java
trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFEncoding.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFEncoding.java 2007-07-02 19:36:43 UTC (rev 9912)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFEncoding.java 2007-07-02 19:47:27 UTC (rev 9913)
@@ -75,7 +75,7 @@
*/
@Override
public String pdfReference() {
- if (this.encoding.isPredefinedPDF()) {
+ if (this.encoding.isPredefinedPdf()) {
return "/" + this.getName();
}
if (! (this.encoding instanceof EncodingVector)) {
@@ -88,7 +88,7 @@
* {@inheritDoc}
*/
public String toPDF() {
- if (this.encoding.isPredefinedPDF()) {
+ if (this.encoding.isPredefinedPdf()) {
/* The predefined PDF encodings are present by name. They do not
* need to be written into the document. */
return new String();
Modified: trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java
===================================================================
--- trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java 2007-07-02 19:36:43 UTC (rev 9912)
+++ trunk/foray/foray-pdf/src/java/org/foray/pdf/object/PDFFont.java 2007-07-02 19:47:27 UTC (rev 9913)
@@ -204,7 +204,7 @@
* We're not sure why this is necessary, but it seems to be. */
if (this.fsFont.getFont().isPdfStandardFont()) {
final Encoding encoding = this.fsFont.getEncoding();
- if (encoding.isPredefinedPDF()) {
+ if (encoding.isPredefinedPdf()) {
return true;
}
if (encoding == this.fsFont.getFont().getInternalEncoding()) {
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/Encoding.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/encode/Encoding.java 2007-07-02 19:36:43 UTC (rev 9912)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/Encoding.java 2007-07-02 19:47:27 UTC (rev 9913)
@@ -55,14 +55,14 @@
/**
* {@inheritDoc}
*/
- public boolean isPredefinedPS() {
+ public boolean isPredefinedPs() {
return false;
}
/**
* {@inheritDoc}
*/
- public boolean isPredefinedPDF() {
+ public boolean isPredefinedPdf() {
return false;
}
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingISOLatin1.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingISOLatin1.java 2007-07-02 19:36:43 UTC (rev 9912)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingISOLatin1.java 2007-07-02 19:47:27 UTC (rev 9913)
@@ -897,7 +897,7 @@
/**
* {@inheritDoc}
*/
- public boolean isPredefinedPS() {
+ public boolean isPredefinedPs() {
return true;
}
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingMacExpert.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingMacExpert.java 2007-07-02 19:36:43 UTC (rev 9912)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingMacExpert.java 2007-07-02 19:47:27 UTC (rev 9913)
@@ -757,7 +757,7 @@
/**
* {@inheritDoc}
*/
- public boolean isPredefinedPDF() {
+ public boolean isPredefinedPdf() {
return true;
}
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingMacRoman.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingMacRoman.java 2007-07-02 19:36:43 UTC (rev 9912)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingMacRoman.java 2007-07-02 19:47:27 UTC (rev 9913)
@@ -925,7 +925,7 @@
/**
* {@inheritDoc}
*/
- public boolean isPredefinedPDF() {
+ public boolean isPredefinedPdf() {
return true;
}
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingPDFDoc.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingPDFDoc.java 2007-07-02 19:36:43 UTC (rev 9912)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingPDFDoc.java 2007-07-02 19:47:27 UTC (rev 9913)
@@ -1013,7 +1013,7 @@
/**
* {@inheritDoc}
*/
- public org.axsl.psR.EncodingVector bestBaseEncodingPDF() {
+ public org.axsl.psR.EncodingVector bestBaseEncodingPdf() {
return EncodingVector.getPredefinedEncoding("WinAnsiEncoding");
}
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingStandard.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingStandard.java 2007-07-02 19:36:43 UTC (rev 9912)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingStandard.java 2007-07-02 19:47:27 UTC (rev 9913)
@@ -696,7 +696,7 @@
/**
* {@inheritDoc}
*/
- public boolean isPredefinedPS() {
+ public boolean isPredefinedPs() {
return true;
}
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java 2007-07-02 19:36:43 UTC (rev 9912)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java 2007-07-02 19:47:27 UTC (rev 9913)
@@ -86,9 +86,6 @@
public abstract class EncodingVector extends Encoding
implements org.axsl.psR.EncodingVector, Serializable {
- /** Constant needed for serialization. */
- public static final long serialVersionUID = -401311001482299007L;
-
/** The name of the undefined glyph. */
public static final String NOTDEF = ".notdef";
@@ -396,9 +393,9 @@
/**
* {@inheritDoc}
*/
- public org.axsl.psR.EncodingVector bestBaseEncodingPDF() {
+ public org.axsl.psR.EncodingVector bestBaseEncodingPdf() {
/* Predefined encodings do not need to be written at all. */
- if (this.isPredefinedPDF()) {
+ if (this.isPredefinedPdf()) {
return null;
}
/* TODO: Write a standard implementation of this that compares this
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingWinAnsi.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingWinAnsi.java 2007-07-02 19:36:43 UTC (rev 9912)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingWinAnsi.java 2007-07-02 19:47:27 UTC (rev 9913)
@@ -961,7 +961,7 @@
/**
* {@inheritDoc}
*/
- public boolean isPredefinedPDF() {
+ public boolean isPredefinedPdf() {
return true;
}
Modified: trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java
===================================================================
--- trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java 2007-07-02 19:36:43 UTC (rev 9912)
+++ trunk/foray/foray-render/src/java/org/foray/render/ps/PSRenderer.java 2007-07-02 19:47:27 UTC (rev 9913)
@@ -414,7 +414,7 @@
/* Except PostScript-native encodings, write each encoding vector. */
for (int i = 0; i < encodingsUsed.size(); i++) {
final EncodingVector vector = encodingsUsed.get(i);
- if (! vector.isPredefinedPS()) {
+ if (! vector.isPredefinedPs()) {
writeRaw(vector.asPostScript(null));
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-03 15:35:48
|
Revision: 9915
http://svn.sourceforge.net/foray/?rev=9915&view=rev
Author: victormote
Date: 2007-07-03 08:35:48 -0700 (Tue, 03 Jul 2007)
Log Message:
-----------
Conform to cleanup of axsl Eclipse project names.
Modified Paths:
--------------
trunk/foray/foray-app/.classpath
trunk/foray/foray-areatree/.classpath
trunk/foray/foray-core/.classpath
trunk/foray/foray-font/.classpath
trunk/foray/foray-fotree/.classpath
trunk/foray/foray-graphic/.classpath
trunk/foray/foray-hyphen-r/.classpath
trunk/foray/foray-layout/.classpath
trunk/foray/foray-output/.classpath
trunk/foray/foray-pdf/.classpath
trunk/foray/foray-pioneer/.classpath
trunk/foray/foray-ps/.classpath
trunk/foray/foray-render/.classpath
trunk/foray/foray-text/.classpath
Modified: trunk/foray/foray-app/.classpath
===================================================================
--- trunk/foray/foray-app/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-app/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -9,26 +9,26 @@
<classpathentry kind="src" path="/FOrayRender"/>
<classpathentry kind="src" path="/FOrayAreaTree"/>
<classpathentry kind="src" path="/FOrayPioneer"/>
- <classpathentry kind="src" path="/axslFont-R"/>
- <classpathentry kind="src" path="/axslGraphic-R"/>
- <classpathentry kind="src" path="/axslArea-R"/>
+ <classpathentry kind="src" path="/axslFont"/>
+ <classpathentry kind="src" path="/axslGraphic"/>
+ <classpathentry kind="src" path="/axslGalley"/>
<classpathentry kind="src" path="/FOrayOutput"/>
- <classpathentry kind="src" path="/axslFO-R"/>
+ <classpathentry kind="src" path="/axslFoTree"/>
<classpathentry kind="src" path="/axslCommon"/>
<classpathentry kind="src" path="/axslText"/>
<classpathentry kind="src" path="/FOrayText"/>
<classpathentry kind="src" path="/FOrayFOTree"/>
<classpathentry kind="var" path="ANT_HOME/lib/ant.jar"/>
- <classpathentry kind="src" path="/axslPDF-W"/>
+ <classpathentry kind="src" path="/axslPdf"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayPDF"/>
<classpathentry kind="var" path="ANT_HOME/lib/ant-launcher.jar"/>
<classpathentry kind="var" path="ANT_HOME/lib/ant-trax.jar"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslArea-W"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslAreaTree"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayLayout"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslLayout"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayCore"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslOutput"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslHyphen-R"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslHyphen"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayHyphen-R"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayPS"/>
<classpathentry kind="lib" path="/FOray Lib-Build/junit/junit.jar"/>
Modified: trunk/foray/foray-areatree/.classpath
===================================================================
--- trunk/foray/foray-areatree/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-areatree/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -4,13 +4,13 @@
<classpathentry kind="src" path="src/javatest"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="/FOrayCommon"/>
- <classpathentry kind="src" path="/axslFont-R"/>
- <classpathentry kind="src" path="/axslGraphic-R"/>
- <classpathentry kind="src" path="/axslArea-R"/>
- <classpathentry kind="src" path="/axslFO-R"/>
+ <classpathentry kind="src" path="/axslFont"/>
+ <classpathentry kind="src" path="/axslGraphic"/>
+ <classpathentry kind="src" path="/axslGalley"/>
+ <classpathentry kind="src" path="/axslFoTree"/>
<classpathentry kind="src" path="/axslCommon"/>
<classpathentry kind="src" path="/axslText"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslArea-W"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslAreaTree"/>
<classpathentry kind="lib" path="/FOray Lib-Build/junit/junit.jar"/>
<classpathentry kind="lib" path="/FOray Lib/commons-logging-1.1.jar" sourcepath="/FOray Lib-Build/commons-logging/commons-logging-1.1-src.zip"/>
<classpathentry kind="lib" path="/FOray Lib/svg-1.1.jar" sourcepath="/FOray Lib-Build/svg/svg-1.1-src.zip"/>
Modified: trunk/foray/foray-core/.classpath
===================================================================
--- trunk/foray/foray-core/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-core/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -3,16 +3,16 @@
<classpathentry kind="src" path="src/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayCommon"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslArea-W"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslFont-R"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslFO-R"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslGraphic-R"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslAreaTree"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslFont"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslFoTree"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslGraphic"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslLayout"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslText"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslArea-R"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslGalley"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslOutput"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslCommon"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslHyphen-R"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslHyphen"/>
<classpathentry kind="lib" path="/FOray Lib/xercesImpl-2.7.1.jar"/>
<classpathentry kind="lib" path="/FOray Lib/xml-apis-1.3.02.jar"/>
<classpathentry kind="lib" path="/FOray Lib/commons-logging-1.1.jar" sourcepath="/FOray Lib-Build/commons-logging/commons-logging-1.1-src.zip"/>
Modified: trunk/foray/foray-font/.classpath
===================================================================
--- trunk/foray/foray-font/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-font/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -4,9 +4,9 @@
<classpathentry kind="src" path="src/javatest"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="/FOrayPS"/>
- <classpathentry kind="src" path="/axslFont-R"/>
+ <classpathentry kind="src" path="/axslFont"/>
<classpathentry kind="src" path="/FOrayCommon"/>
- <classpathentry kind="src" path="/axslPS-R"/>
+ <classpathentry kind="src" path="/axslPs"/>
<classpathentry kind="src" path="/axslCommon"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayPretty"/>
<classpathentry kind="var" path="ANT_HOME/lib/ant.jar"/>
Modified: trunk/foray/foray-fotree/.classpath
===================================================================
--- trunk/foray/foray-fotree/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-fotree/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -4,9 +4,9 @@
<classpathentry kind="src" path="/FOrayCommon"/>
<classpathentry excluding=".#*" kind="src" path="src/java"/>
<classpathentry kind="src" path="src/javatest"/>
- <classpathentry kind="src" path="/axslFont-R"/>
- <classpathentry kind="src" path="/axslGraphic-R"/>
- <classpathentry kind="src" path="/axslFO-R"/>
+ <classpathentry kind="src" path="/axslFont"/>
+ <classpathentry kind="src" path="/axslGraphic"/>
+ <classpathentry kind="src" path="/axslFoTree"/>
<classpathentry kind="src" path="/axslCommon"/>
<classpathentry kind="src" path="/axslText"/>
<classpathentry kind="lib" path="/FOray Lib-Build/junit/junit.jar"/>
Modified: trunk/foray/foray-graphic/.classpath
===================================================================
--- trunk/foray/foray-graphic/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-graphic/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -4,7 +4,7 @@
<classpathentry kind="src" path="src/javatest"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="/FOrayCommon"/>
- <classpathentry kind="src" path="/axslGraphic-R"/>
+ <classpathentry kind="src" path="/axslGraphic"/>
<classpathentry kind="src" path="/axslCommon"/>
<classpathentry kind="lib" path="/FOray Lib-Build/junit/junit.jar"/>
<classpathentry kind="lib" path="/FOray Lib/xmlgraphics-commons-1.1.jar" sourcepath="/FOray Lib-Build/xmlgraphics-commons/xmlgraphics-commons-1.1-src.zip"/>
@@ -20,12 +20,12 @@
<classpathentry kind="lib" path="/FOray Lib/batik-1.6-svg-dom.jar" sourcepath="/FOray Lib-Build/batik/batik-1.6-sources.zip"/>
<classpathentry kind="lib" path="/FOray Lib/batik-1.6-dom.jar" sourcepath="/FOray Lib-Build/batik/batik-1.6-sources.zip"/>
<classpathentry kind="lib" path="/FOray Lib/batik-1.6-xml.jar" sourcepath="/FOray Lib-Build/batik/batik-1.6-sources.zip"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslFont-R"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslFont"/>
<classpathentry kind="lib" path="/FOray Lib/batik-1.6-css.jar" sourcepath="/FOray Lib-Build/batik/batik-1.6-sources.zip"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayPDF"/>
<classpathentry kind="lib" path="/FOray Lib/batik-1.6-awt-util.jar" sourcepath="/FOray Lib-Build/batik/batik-1.6-sources.zip"/>
<classpathentry kind="lib" path="/FOray Lib/batik-1.6-ext.jar" sourcepath="/FOray Lib-Build/batik/batik-1.6-sources.zip"/>
<classpathentry kind="lib" path="/FOray Lib/batik-1.6-pdf-transcoder.jar" sourcepath="/FOray Lib-Build/batik/batik-1.6-pdf-transcoder-src.zip"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslPS-R"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslPs"/>
<classpathentry kind="output" path="build/eclipse"/>
</classpath>
Modified: trunk/foray/foray-hyphen-r/.classpath
===================================================================
--- trunk/foray/foray-hyphen-r/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-hyphen-r/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -5,7 +5,7 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayCommon"/>
<classpathentry kind="var" path="ANT_HOME/lib/ant.jar"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslHyphen-R"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslHyphen"/>
<classpathentry kind="lib" path="/FOray Lib-Build/junit/junit.jar"/>
<classpathentry kind="lib" path="/FOray Lib/xercesImpl-2.7.1.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslCommon"/>
Modified: trunk/foray/foray-layout/.classpath
===================================================================
--- trunk/foray/foray-layout/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-layout/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -3,11 +3,11 @@
<classpathentry kind="src" path="src/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayCommon"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslFO-R"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslFoTree"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslText"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslArea-W"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslFont-R"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslGraphic-R"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslAreaTree"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslFont"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslGraphic"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslCommon"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslLayout"/>
<classpathentry kind="lib" path="/FOray Lib/commons-logging-1.1.jar" sourcepath="/FOray Lib-Build/commons-logging/commons-logging-1.1-src.zip"/>
Modified: trunk/foray/foray-output/.classpath
===================================================================
--- trunk/foray/foray-output/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-output/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -2,10 +2,10 @@
<classpath>
<classpathentry kind="src" path="src/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="src" path="/axslGraphic-R"/>
+ <classpathentry kind="src" path="/axslGraphic"/>
<classpathentry kind="src" path="/FOrayCommon"/>
- <classpathentry kind="src" path="/axslFont-R"/>
- <classpathentry kind="src" path="/axslFO-R"/>
+ <classpathentry kind="src" path="/axslFont"/>
+ <classpathentry kind="src" path="/axslFoTree"/>
<classpathentry kind="src" path="/axslCommon"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayMIF"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslOutput"/>
Modified: trunk/foray/foray-pdf/.classpath
===================================================================
--- trunk/foray/foray-pdf/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-pdf/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -2,13 +2,13 @@
<classpath>
<classpathentry excluding=".#*" kind="src" path="src/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="src" path="/axslFont-R"/>
- <classpathentry kind="src" path="/axslGraphic-R"/>
+ <classpathentry kind="src" path="/axslFont"/>
+ <classpathentry kind="src" path="/axslGraphic"/>
<classpathentry kind="src" path="/FOrayCommon"/>
- <classpathentry kind="src" path="/axslPS-R"/>
+ <classpathentry kind="src" path="/axslPs"/>
<classpathentry kind="src" path="/axslCommon"/>
<classpathentry kind="src" path="/FOrayPS"/>
- <classpathentry kind="src" path="/axslPDF-W"/>
+ <classpathentry kind="src" path="/axslPdf"/>
<classpathentry kind="lib" path="/FOray Lib/commons-logging-1.1.jar" sourcepath="/FOray Lib-Build/commons-logging/commons-logging-1.1-src.zip"/>
<classpathentry kind="lib" path="/FOray Lib/svg-1.1.jar" sourcepath="/FOray Lib-Build/svg/svg-1.1-src.zip"/>
<classpathentry kind="output" path="build/eclipse"/>
Modified: trunk/foray/foray-pioneer/.classpath
===================================================================
--- trunk/foray/foray-pioneer/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-pioneer/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -2,10 +2,10 @@
<classpath>
<classpathentry excluding=".#*" kind="src" path="src/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="src" path="/axslFont-R"/>
- <classpathentry kind="src" path="/axslGraphic-R"/>
- <classpathentry kind="src" path="/axslArea-W"/>
- <classpathentry kind="src" path="/axslFO-R"/>
+ <classpathentry kind="src" path="/axslFont"/>
+ <classpathentry kind="src" path="/axslGraphic"/>
+ <classpathentry kind="src" path="/axslAreaTree"/>
+ <classpathentry kind="src" path="/axslFoTree"/>
<classpathentry kind="src" path="/axslCommon"/>
<classpathentry kind="src" path="/FOrayCommon"/>
<classpathentry kind="src" path="/axslText"/>
Modified: trunk/foray/foray-ps/.classpath
===================================================================
--- trunk/foray/foray-ps/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-ps/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -4,7 +4,7 @@
<classpathentry kind="src" path="src/javatest"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="/FOrayCommon"/>
- <classpathentry kind="src" path="/axslPS-R"/>
+ <classpathentry kind="src" path="/axslPs"/>
<classpathentry kind="src" path="/axslCommon"/>
<classpathentry kind="lib" path="/FOray Lib-Build/junit/junit.jar"/>
<classpathentry kind="lib" path="/FOray Lib/commons-logging-1.1.jar" sourcepath="/FOray Lib-Build/commons-logging/commons-logging-1.1-src.zip"/>
Modified: trunk/foray/foray-render/.classpath
===================================================================
--- trunk/foray/foray-render/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-render/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -4,14 +4,14 @@
<classpathentry kind="src" path="src/javatest"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="/FOrayCommon"/>
- <classpathentry kind="src" path="/axslFont-R"/>
- <classpathentry kind="src" path="/axslGraphic-R"/>
- <classpathentry kind="src" path="/axslArea-R"/>
+ <classpathentry kind="src" path="/axslFont"/>
+ <classpathentry kind="src" path="/axslGraphic"/>
+ <classpathentry kind="src" path="/axslGalley"/>
<classpathentry kind="src" path="/FOrayOutput"/>
- <classpathentry kind="src" path="/axslPS-R"/>
+ <classpathentry kind="src" path="/axslPs"/>
<classpathentry kind="src" path="/axslCommon"/>
<classpathentry kind="src" path="/axslText"/>
- <classpathentry kind="src" path="/axslPDF-W"/>
+ <classpathentry kind="src" path="/axslPdf"/>
<classpathentry combineaccessrules="false" kind="src" path="/FOrayPS"/>
<classpathentry combineaccessrules="false" kind="src" path="/axslOutput"/>
<classpathentry kind="lib" path="/FOray Lib-Build/junit/junit.jar"/>
Modified: trunk/foray/foray-text/.classpath
===================================================================
--- trunk/foray/foray-text/.classpath 2007-07-02 20:15:27 UTC (rev 9914)
+++ trunk/foray/foray-text/.classpath 2007-07-03 15:35:48 UTC (rev 9915)
@@ -2,12 +2,12 @@
<classpath>
<classpathentry excluding=".#*" kind="src" path="src/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="src" path="/axslFont-R"/>
+ <classpathentry kind="src" path="/axslFont"/>
<classpathentry kind="src" path="/axslText"/>
<classpathentry kind="src" path="/axslCommon"/>
<classpathentry kind="src" path="/FOrayCommon"/>
<classpathentry kind="var" path="ANT_HOME/lib/ant.jar"/>
- <classpathentry combineaccessrules="false" kind="src" path="/axslHyphen-R"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/axslHyphen"/>
<classpathentry kind="lib" path="/FOray Lib/commons-logging-1.1.jar" sourcepath="/FOray Lib-Build/commons-logging/commons-logging-1.1-src.zip"/>
<classpathentry kind="output" path="build/eclipse"/>
</classpath>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-03 16:04:34
|
Revision: 9916
http://svn.sourceforge.net/foray/?rev=9916&view=rev
Author: victormote
Date: 2007-07-03 09:04:28 -0700 (Tue, 03 Jul 2007)
Log Message:
-----------
Conform to axsl changes cleaning up package names.
Modified Paths:
--------------
trunk/foray/foray-app/src/java/org/foray/app/FOraySpecific.java
trunk/foray/foray-app/src/java/org/foray/app/OutputTargetFactory.java
trunk/foray/foray-app/src/javatest/org/foray/app/area/AreaTreeCreator.java
trunk/foray/foray-app/src/javatest/org/foray/app/fo/FoDocumentReader.java
trunk/foray/foray-areatree/src/java/org/foray/area/AbstractInlineArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/AbstractListItemContent.java
trunk/foray/foray-areatree/src/java/org/foray/area/AbstractTablePartContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
trunk/foray/foray-areatree/src/java/org/foray/area/AreaTree.java
trunk/foray/foray-areatree/src/java/org/foray/area/BeforeFloatRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/BlockContainerRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkParentArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTitleArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/BookmarkTreeArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/ExternalGraphicArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/FOLinkage.java
trunk/foray/foray-areatree/src/java/org/foray/area/FOLinkageMarker.java
trunk/foray/foray-areatree/src/java/org/foray/area/FOLinkageNormal.java
trunk/foray/foray-areatree/src/java/org/foray/area/FOrayAreaTreeFactory.java
trunk/foray/foray-areatree/src/java/org/foray/area/FootnoteRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/ForeignObjectArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/InlineArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/InlineContainerArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/LeaderArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/ListBlockArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/ListItemArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/ListItemBodyContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/ListItemLabelContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/MainRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/NormalBlockArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/NormalFlowRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/PageCollection.java
trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/PageNumberCitationArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/PageRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/RegionRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/RegionRABody.java
trunk/foray/foray-areatree/src/java/org/foray/area/SVGArea.java
trunk/foray/foray-areatree/src/java/org/foray/area/SpanRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableBodyContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableCellRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableFooterContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableHeaderContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableRowContainer.java
trunk/foray/foray-areatree/src/java/org/foray/area/TextArea.java
trunk/foray/foray-core/src/java/org/foray/core/FOrayDocument.java
trunk/foray/foray-core/src/java/org/foray/core/FOraySession.java
trunk/foray/foray-core/src/java/org/foray/core/FOrayTarget.java
trunk/foray/foray-font/src/java/org/foray/font/FOrayConsumerFont.java
trunk/foray/foray-font/src/java/org/foray/font/FOrayFont.java
trunk/foray/foray-font/src/java/org/foray/font/FOrayFontConsumer.java
trunk/foray/foray-font/src/java/org/foray/font/FOrayFontServer.java
trunk/foray/foray-font/src/java/org/foray/font/FOrayFontUse.java
trunk/foray/foray-font/src/java/org/foray/font/FSTrueTypeFont.java
trunk/foray/foray-font/src/java/org/foray/font/FSType1Font.java
trunk/foray/foray-font/src/java/org/foray/font/FontConfigParser.java
trunk/foray/foray-font/src/java/org/foray/font/FontSelector.java
trunk/foray/foray-font/src/java/org/foray/font/FontSelectorCBC.java
trunk/foray/foray-font/src/java/org/foray/font/FreeStandingFont.java
trunk/foray/foray-font/src/java/org/foray/font/RegisteredFont.java
trunk/foray/foray-font/src/java/org/foray/font/RegisteredFontDesc.java
trunk/foray/foray-font/src/java/org/foray/font/RegisteredFontFamily.java
trunk/foray/foray-font/src/java/org/foray/font/Subset.java
trunk/foray/foray-font/src/java/org/foray/font/SystemFont.java
trunk/foray/foray-font/src/java/org/foray/font/format/FontFileReader.java
trunk/foray/foray-font/src/java/org/foray/font/format/MetricsFileAFM.java
trunk/foray/foray-font/src/java/org/foray/font/format/MetricsFilePFM.java
trunk/foray/foray-font/src/java/org/foray/font/format/TTFFile.java
trunk/foray/foray-font/src/java/org/foray/font/format/TTFFont.java
trunk/foray/foray-font/src/java/org/foray/font/format/TTFMtxEntry.java
trunk/foray/foray-font/src/java/org/foray/font/format/TTFTableGLYF.java
trunk/foray/foray-font/src/java/org/foray/font/format/TTFTableHEAD.java
trunk/foray/foray-font/src/java/org/foray/font/format/Type1File.java
trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontOutput.java
trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontOutputFactory.java
trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPDF.java
trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPDFFactory.java
trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPS.java
trunk/foray/foray-font/src/java/org/foray/font/output/FOrayFontPSFactory.java
trunk/foray/foray-font/src/javatest/org/foray/font/TestFontServer.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FOLineNonText.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FOLineText.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FONode.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FOText.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FOTreeBuilder.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjMixed.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FObjScaled.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FOrayFOTreeServer.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/ForeignXML.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/Namespace.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/Property.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/axsl/NamespaceAxsl.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/axsl/obj/Metadata.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/axsl/prop/AxslEnumerated.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/NamespaceFO.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/ObjectMakerFO.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractFlow.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractFolioDescriptor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractIndexFormatting.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractPageMaster.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractTablePart.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ChangeBarBegin.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ChangeBarEnd.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Float.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Flow.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FlowAssignment.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FlowMap.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FlowNameSpecifier.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FlowSourceList.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FlowTargetList.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Footnote.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FootnoteBody.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/IndexKeyReference.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/IndexPageCitationList.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/IndexRangeBegin.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/IndexRangeEnd.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InitialPropertySet.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Inline.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InlineContainer.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/LayoutMasterSet.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Leader.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListBlock.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItem.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemBody.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemLabel.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Marker.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiCase.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiProperties.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiPropertySet.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiSwitch.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiToggle.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageMasterResolver.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumber.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberCitation.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberCitationLast.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequence.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequenceMaster.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequenceWrapper.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Region.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionAfter.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBefore.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBody.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionEnd.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionNameSpecifier.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionStart.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveMarker.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveTableMarker.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Root.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ScalingValueCitation.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SimplePageMaster.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/StaticContent.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SubSequenceSpecifier.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableAndCaption.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableBody.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCaption.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCell.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableFooter.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableHeader.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableRow.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Title.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Wrapper.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbsolutePosition.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractAbsoluteDimension.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractAbsoluteOffset.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractAudioDial.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractBackgroundPosition.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractBorderColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractBorderPrecedence.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractBorderStyle.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractBorderWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractContentDimension.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractCue.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractIndent.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractKeep.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractMargin.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractMergeIndex.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractName.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractPadding.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractPageDimension.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractPause.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractRelativeDimension.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractRelativeSpace.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ActiveState.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AlignmentAdjust.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AlignmentBaseline.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AutoRestore.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Azimuth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BackgroundAttachment.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BackgroundColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BackgroundImage.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BackgroundPosition.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BackgroundRepeat.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BaselineShift.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BlankOrNotBlank.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderAfterColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderAfterPrecedence.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderAfterWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderBeforeColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderBeforePrecedence.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderBeforeWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderBottomColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderBottomWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderCollapse.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderEndColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderEndPrecedence.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderEndWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderLeftColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderLeftWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderRightColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderRightWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderSeparation.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderStartColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderStartPrecedence.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderStartWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderStyle.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderTopColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderTopWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BorderWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BreakAfter.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/BreakBefore.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/CaptionSide.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ChangeBarColor.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ChangeBarOffset.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ChangeBarWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Clear.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Clip.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Color.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnCount.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnGap.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnNumber.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ContentHeight.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ContentWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Country.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/DestinationPlacementOffset.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Direction.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/DisplayAlign.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/DominantBaseline.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Elevation.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/EmptyCells.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/EndsRow.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Extent.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Float.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/FontFamily.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/FontSelectionStrategy.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/FontSize.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/FontSizeAdjust.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/FontStretch.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/FontStyle.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/FontVariant.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/FontWeight.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ForcePageCount.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/GlyphOrientationHorizontal.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/GlyphOrientationVertical.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Hyphenate.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/HyphenationCharacter.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/HyphenationKeep.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/HyphenationLadderCount.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/HyphenationPushCharacterCount.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/HyphenationRemainCharacterCount.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/IndicateDestination.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/InitialPageNumber.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Language.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LastLineEndIndent.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LeaderAlignment.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LeaderLength.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LeaderPattern.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LeaderPatternWidth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LetterSpacing.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LineHeight.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LineHeightShiftAdjustment.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LineStackingStrategy.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LinefeedTreatment.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Margin.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/MediaUsage.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Orphans.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Overflow.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Padding.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PaddingAfter.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PaddingBefore.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PaddingBottom.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PaddingEnd.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PaddingLeft.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PaddingRight.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PaddingStart.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PaddingTop.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PageBreakAfter.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PageBreakBefore.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PageBreakInside.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Pitch.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/PlayDuring.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Position.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Precedence.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ProvisionalDistanceBetweenStarts.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ProvisionalLabelSeparation.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/RefId.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ReferenceOrientation.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/RelativeAlign.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/RelativePosition.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/RenderingIntent.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Role.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/RuleStyle.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/RuleThickness.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Scaling.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ScalingMethod.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ScoreSpaces.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Script.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ShowDestination.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Size.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/SourceDocument.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Span.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Speak.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/SpeakHeader.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/SpeakNumeral.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/SpeakPunctuation.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/SpeechRate.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Src.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/StartingState.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/StartsRow.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/SuppressAtLineBreak.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TableOmitFooterAtBreak.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TableOmitHeaderAtBreak.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextAlign.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextAlignLast.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextAltitude.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextDecoration.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextDepth.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextIndent.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextShadow.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextTransform.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TreatAsWordSpace.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/UnicodeBidi.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Visibility.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/VoiceFamily.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Volume.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/WhiteSpace.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/WhiteSpaceCollapse.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/WhiteSpaceTreatment.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Widows.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/WordSpacing.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/WrapOption.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/WritingMode.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ZIndex.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/foray/NamespaceForay.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/foray/obj/ContinuedLabel.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/parse/PropertyParser.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/NamespaceSVG.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/ObjectMakerSVG.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/svg/obj/SVGElement.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/value/DtShadowEffectWrapper.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/value/FnBodyStart.java
trunk/...
[truncated message content] |
|
From: <vic...@us...> - 2007-07-03 19:41:54
|
Revision: 9918
http://svn.sourceforge.net/foray/?rev=9918&view=rev
Author: victormote
Date: 2007-07-03 12:41:56 -0700 (Tue, 03 Jul 2007)
Log Message:
-----------
Add some doc for the hyphenation module.
Modified Paths:
--------------
trunk/foray/doc/web/00-rsrc/include/leftmenu-module.html
trunk/foray/foray-hyphen-r/src/java/org/foray/hyphenR/FOrayHyphenationServer.java
Added Paths:
-----------
trunk/foray/doc/web/module/hyphen/
trunk/foray/doc/web/module/hyphen/index.html
Modified: trunk/foray/doc/web/00-rsrc/include/leftmenu-module.html
===================================================================
--- trunk/foray/doc/web/00-rsrc/include/leftmenu-module.html 2007-07-03 16:27:57 UTC (rev 9917)
+++ trunk/foray/doc/web/00-rsrc/include/leftmenu-module.html 2007-07-03 19:41:56 UTC (rev 9918)
@@ -53,19 +53,25 @@
<tr>
<td class="Bullet1"> </td>
<td class="Menu1">
- <a class="Menu" href="/module/ps/">FOrayPS</a>
+ <a class="Menu" href="/module/ps/">FOrayPs</a>
</td>
</tr>
<tr>
<td class="Bullet1"> </td>
<td class="Menu1">
+ <a class="Menu" href="/module/font/">FOrayFont</a>
+ </td>
+ </tr>
+ <tr>
+ <td class="Bullet1"> </td>
+ <td class="Menu1">
<a class="Menu" href="/module/graphic/">FOrayGraphic</a>
</td>
</tr>
<tr>
<td class="Bullet1"> </td>
<td class="Menu1">
- <a class="Menu" href="/module/font/">FOrayFont</a>
+ <a class="Menu" href="/module/hyphen/">FOrayHyphen</a>
</td>
</tr>
<tr>
Added: trunk/foray/doc/web/module/hyphen/index.html
===================================================================
--- trunk/foray/doc/web/module/hyphen/index.html (rev 0)
+++ trunk/foray/doc/web/module/hyphen/index.html 2007-07-03 19:41:56 UTC (rev 9918)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+
+<head>
+ <title>FOray Modules: FOrayHyphen</title>
+ <meta name="content-revised"
+ content="$Date$"/>
+ <!--#include virtual="/00-rsrc/include/standard-head.html" -->
+</head>
+
+<body>
+<!--#include virtual="/00-rsrc/include/leftmenu-module.html" -->
+
+<h1>FOray Modules: FOrayHyphen</h1>
+<h2>Contents</h2>
+<ul>
+ <li><a href="#intro">Introduction</a></li>
+ <li><a href="#boot">Bootstrapping FOrayHyphen</a></li>
+</ul>
+
+<h2><a name="intro">Introduction</a></h2>
+<p>FOrayHyphen is an implementation of
+<a href="http://www.axsl.org/hyphen/" rel="external">axslHyphen</a>, which
+should be consulted for details on the general API, sample code, etc.
+Although it is possible to use the FOrayHyphen package directly, there is
+probably no good reason to do so.
+If the axslHyphen interface is not sufficient for your needs, we recommend
+that you suggest changes to it instead of using the FOrayHyphen package
+directly.
+This allows your application to use any aXSL-compliant hyphenation system
+without making substantial changes to your code.</p>
+
+<h2><a name="boot">Bootstrapping FOrayHyphen</a></h2>
+<p>The FOray-specific tasks that are needed to bootstrap the use of FOrayHyphen
+are as follows:</p>
+<ol>
+ <li>Obtain a FOrayHyphenationServer instance.
+FOrayHyphenationServer is an aXSL HyphenationServer implementation, and can be
+instantiated using its constructor.
+It is safe to create multiple instances, but this should be necessary only in
+extremely sophisticated environments.</li>
+</ol>
+
+<p>Once these tasks are accomplished, all downstream processing is documented
+in the <a href="http://www.axsl.org/hyphen/" rel="external">axslHyphen</a>
+API.
+In general, this consists of using passing a word, language, and courntry code
+to the HyphenationServer, and receiving a Hyphenation instance back, which
+contains the valid hyphenation points.</p>
+
+<p>Here is some sample bootstrap code:</p>
+<pre>/* Instantiate a FOray HyphenationServer. */
+Log logger = org.foray.common.Logging.makeDefaultLogger();
+URL patternsURL = ...;
+HyphenationServer server = new FOrayHyphenationServer(logger, patternsURL);</pre>
+
+<!--#include virtual="/00-rsrc/include/leftmenu-end.html" -->
+</body>
+</html>
Property changes on: trunk/foray/doc/web/module/hyphen/index.html
___________________________________________________________________
Name: svn:keywords
+ "Author Id Rev Date URL"
Name: svn:eol-style
+ native
Modified: trunk/foray/foray-hyphen-r/src/java/org/foray/hyphenR/FOrayHyphenationServer.java
===================================================================
--- trunk/foray/foray-hyphen-r/src/java/org/foray/hyphenR/FOrayHyphenationServer.java 2007-07-03 16:27:57 UTC (rev 9917)
+++ trunk/foray/foray-hyphen-r/src/java/org/foray/hyphenR/FOrayHyphenationServer.java 2007-07-03 19:41:56 UTC (rev 9918)
@@ -97,7 +97,8 @@
/**
* Constructor.
- * @param logger The Log instance for user messages.
+ * @param logger The Log instance for user messages. Null can safely be
+ * passed here as a default logger will be created by the server.
* @param hyphenationDir The base URL for hyphenation patterns.
*/
public FOrayHyphenationServer(final Log logger, final URL hyphenationDir) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-03 22:25:05
|
Revision: 9920
http://svn.sourceforge.net/foray/?rev=9920&view=rev
Author: victormote
Date: 2007-07-03 15:25:04 -0700 (Tue, 03 Jul 2007)
Log Message:
-----------
Conform to axsl changes replacing method parameter with new method in FoContext.
Modified Paths:
--------------
trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnWidth.java
trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java
trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestColumnWidth.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-03 21:58:57 UTC (rev 9919)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-03 22:25:04 UTC (rev 9920)
@@ -35,6 +35,7 @@
import org.axsl.fo.Fo;
import org.axsl.fo.FoNode;
import org.axsl.fo.fo.GraftingPoint;
+import org.axsl.fo.fo.Table;
import org.axsl.font.FontConsumer;
import org.axsl.text.TextServer;
@@ -516,6 +517,18 @@
}
/**
+ * Retujrns this if it is an instance of {@link TableRA}, or the nearest
+ * ancestor {@link TableRA} if it is not.
+ * @return This or the nearest ancestor Table.
+ */
+ public TableRA nearestTableArea() {
+ if (this instanceof TableRA) {
+ return (TableRA) this;
+ }
+ return this.ancestorTableArea();
+ }
+
+ /**
* Returns the ancestor page collection for this area.
* @return The ancestor page collection.
*/
@@ -719,4 +732,18 @@
}
+ /**
+ * {@inheritDoc}
+ */
+ public int widthNearestTable() {
+ final TableRA tableRA = this.nearestTableArea();
+ if (tableRA == null) {
+ throw new IllegalStateException("Attempted to get the width of "
+ + "the nearest table in a context that is not inside a "
+ + "table.");
+ }
+ final Table table = tableRA.traitGeneratedBy();
+ return table.traitIpDimensionOpt(tableRA);
+ }
+
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2007-07-03 21:58:57 UTC (rev 9919)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/TableRA.java 2007-07-03 22:25:04 UTC (rev 9920)
@@ -146,7 +146,7 @@
/**
* Returns the resolved width of a given column.
* The value returned here can be different from the nominal column-width
- * returned by {@link TableColumn#traitColumnWidth(FoContext, int)}
+ * returned by {@link TableColumn#traitColumnWidth(FoContext)}
* because of allocation of excesses or deficiencies in the table width.
* @param columnNumber The column whose resolved width is needed.
* @return The computed column-width, in millipoints.
@@ -280,7 +280,6 @@
*/
private int calcFixedColumnWidths(final int maxAllocationIPD) {
final Table table = this.traitGeneratedBy();
- final int tableWidth = table.traitIpDimensionOpt(this);
/* Accumulates the total table units used in columns in this table. */
double totalTableUnits = 0.0;
/* Accumulates the total width, in millipoints, of the columns that
@@ -300,13 +299,11 @@
/* Keep track of minimum number of proportional units in any
* column which has only proportional units. */
if (tu > 0 && tu < tuMin
- && column.traitColumnWidth(this,
- tableWidth) == 0) {
+ && column.traitColumnWidth(this) == 0) {
tuMin = tu;
}
totalTableUnits += tu;
- totalFixedWidth += column.traitColumnWidth(this,
- tableWidth);
+ totalFixedWidth += column.traitColumnWidth(this);
}
}
@@ -406,7 +403,7 @@
* dUnitLength);
} else {
//Fixed width
- colWidth = column.traitColumnWidth(this, tableWidth);
+ colWidth = column.traitColumnWidth(this);
}
// Check minimum values and adjust if necessary
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java 2007-07-03 21:58:57 UTC (rev 9919)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java 2007-07-03 22:25:04 UTC (rev 9920)
@@ -1008,17 +1008,15 @@
* @param fobj The FObj to which the property belongs.
* @param context An object that knows how to resolve FO Tree context
* issues.
- * @param tableWidth The width of the table, in millipoints.
* @return The <em>nominal</em> width.
*/
- public int getColumnWidth(final FObj fobj, final FoContext context,
- final int tableWidth) {
+ public int getColumnWidth(final FObj fobj, final FoContext context) {
final ColumnWidth property = (ColumnWidth) getProperty(
FoProperty.COLUMN_WIDTH);
if (property == null) {
return ColumnWidth.getValueNoInstance();
}
- return property.getValue(context, fobj, tableWidth);
+ return property.getValue(context, fobj);
}
/**
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java 2007-07-03 21:58:57 UTC (rev 9919)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java 2007-07-03 22:25:04 UTC (rev 9920)
@@ -200,8 +200,8 @@
/**
* {@inheritDoc}
*/
- public int traitColumnWidth(final FoContext context, final int tableWidth) {
- return this.getPropertyList().getColumnWidth(this, context, tableWidth);
+ public int traitColumnWidth(final FoContext context) {
+ return this.getPropertyList().getColumnWidth(this, context);
}
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnWidth.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnWidth.java 2007-07-03 21:58:57 UTC (rev 9919)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnWidth.java 2007-07-03 22:25:04 UTC (rev 9920)
@@ -87,12 +87,11 @@
* Returns the value of this property.
* @param context An object that knows how to resolve FO context issues.
* @param fobj The FO for which this value is needed.
- * @param tableWidth The width of the parent table area.
* @return The value of this property.
*/
- public int getValue(final FoContext context, final FObj fobj,
- final int tableWidth) {
+ public int getValue(final FoContext context, final FObj fobj) {
if (value().canEvalPercentage()) {
+ final int tableWidth = context.widthNearestTable();
final float percentage = value().evalPercentage();
return Math.round(percentage * tableWidth);
}
Modified: trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java
===================================================================
--- trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java 2007-07-03 21:58:57 UTC (rev 9919)
+++ trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java 2007-07-03 22:25:04 UTC (rev 9920)
@@ -52,6 +52,9 @@
public int bpdNearestBlockLevel() {
return 9 * 72000;
}
+ public int widthNearestTable() {
+ return 9 * 72000;
+ }
};
/**
Modified: trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestColumnWidth.java
===================================================================
--- trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestColumnWidth.java 2007-07-03 21:58:57 UTC (rev 9919)
+++ trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestColumnWidth.java 2007-07-03 22:25:04 UTC (rev 9920)
@@ -56,8 +56,7 @@
*/
private int getPropertyValue(final ColumnWidth property,
final FObj testFobj) {
- final int testLength = property.getValue(STD_FO_CONTEXT, testFobj,
- 72000);
+ final int testLength = property.getValue(STD_FO_CONTEXT, testFobj);
return testLength;
}
Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java
===================================================================
--- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java 2007-07-03 21:58:57 UTC (rev 9919)
+++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java 2007-07-03 22:25:04 UTC (rev 9920)
@@ -83,4 +83,11 @@
return this.wrappedContext.bpdNearestBlockLevel();
}
+ /**
+ * {@inheritDoc}
+ */
+ public int widthNearestTable() {
+ return this.wrappedContext.widthNearestTable();
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-03 22:36:43
|
Revision: 9921
http://svn.sourceforge.net/foray/?rev=9921&view=rev
Author: victormote
Date: 2007-07-03 15:36:45 -0700 (Tue, 03 Jul 2007)
Log Message:
-----------
Conform to axsl changes renaming method.
Modified Paths:
--------------
trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnWidth.java
trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-03 22:25:04 UTC (rev 9920)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-03 22:36:45 UTC (rev 9921)
@@ -735,7 +735,7 @@
/**
* {@inheritDoc}
*/
- public int widthNearestTable() {
+ public int tableWidth() {
final TableRA tableRA = this.nearestTableArea();
if (tableRA == null) {
throw new IllegalStateException("Attempted to get the width of "
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnWidth.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnWidth.java 2007-07-03 22:25:04 UTC (rev 9920)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/ColumnWidth.java 2007-07-03 22:36:45 UTC (rev 9921)
@@ -91,7 +91,7 @@
*/
public int getValue(final FoContext context, final FObj fobj) {
if (value().canEvalPercentage()) {
- final int tableWidth = context.widthNearestTable();
+ final int tableWidth = context.tableWidth();
final float percentage = value().evalPercentage();
return Math.round(percentage * tableWidth);
}
Modified: trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java
===================================================================
--- trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java 2007-07-03 22:25:04 UTC (rev 9920)
+++ trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java 2007-07-03 22:36:45 UTC (rev 9921)
@@ -52,7 +52,7 @@
public int bpdNearestBlockLevel() {
return 9 * 72000;
}
- public int widthNearestTable() {
+ public int tableWidth() {
return 9 * 72000;
}
};
Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java
===================================================================
--- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java 2007-07-03 22:25:04 UTC (rev 9920)
+++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java 2007-07-03 22:36:45 UTC (rev 9921)
@@ -86,8 +86,8 @@
/**
* {@inheritDoc}
*/
- public int widthNearestTable() {
- return this.wrappedContext.widthNearestTable();
+ public int tableWidth() {
+ return this.wrappedContext.tableWidth();
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-03 23:25:18
|
Revision: 9922
http://svn.sourceforge.net/foray/?rev=9922&view=rev
Author: victormote
Date: 2007-07-03 16:25:19 -0700 (Tue, 03 Jul 2007)
Log Message:
-----------
Conform to axsl changes moving Fo parameters to new FoContext method.
Modified Paths:
--------------
trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractRelativeSpace.java
trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java
trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/AbstractTestRelativeSpace.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-07-03 22:36:45 UTC (rev 9921)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-07-03 23:25:19 UTC (rev 9922)
@@ -1022,12 +1022,10 @@
/**
* Returns the space-start optimum trait for this area.
* @return The space-start optimum trait for this area.
- * @see Fo#traitSpaceStartOptimum(FoContext, int)
+ * @see Fo#traitSpaceStartOptimum(FoContext)
*/
public int traitSpaceStartOptimum() {
- final Area ancestor = this.ancestorBlockAreaNotALineArea();
- return traitGeneratedBy().traitSpaceStartOptimum(this,
- ancestor.crIpd());
+ return traitGeneratedBy().traitSpaceStartOptimum(this);
}
/**
@@ -1051,11 +1049,10 @@
/**
* Returns the space-end optimum trait for this area.
* @return The space-end optimum trait for this area.
- * @see Fo#traitSpaceEndOptimum(FoContext, int)
+ * @see Fo#traitSpaceEndOptimum(FoContext)
*/
public int traitSpaceEndOptimum() {
- final Area ancestor = this.ancestorBlockAreaNotALineArea();
- return traitGeneratedBy().traitSpaceEndOptimum(this, ancestor.crIpd());
+ return traitGeneratedBy().traitSpaceEndOptimum(this);
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-03 22:36:45 UTC (rev 9921)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-03 23:25:19 UTC (rev 9922)
@@ -746,4 +746,12 @@
return table.traitIpDimensionOpt(tableRA);
}
+ /**
+ * {@inheritDoc}
+ */
+ public int ipdAncestorBlockArea() {
+ final Area ancestor = this.ancestorBlockAreaNotALineArea();
+ return ancestor.crIpd();
+ }
+
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2007-07-03 22:36:45 UTC (rev 9921)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2007-07-03 23:25:19 UTC (rev 9922)
@@ -1335,31 +1335,25 @@
/**
* {@inheritDoc}
*/
- public int traitSpaceStartMinimum(final FoContext context,
- final int ipdAncestorBlockArea) {
+ public int traitSpaceStartMinimum(final FoContext context) {
return propertyList.traitSpaceStartLength(this, context,
- LengthRange.MINIMUM,
- ipdAncestorBlockArea);
+ LengthRange.MINIMUM);
}
/**
* {@inheritDoc}
*/
- public int traitSpaceStartOptimum(final FoContext context,
- final int ipdAncestorBlockArea) {
+ public int traitSpaceStartOptimum(final FoContext context) {
return propertyList.traitSpaceStartLength(this, context,
- LengthRange.OPTIMUM,
- ipdAncestorBlockArea);
+ LengthRange.OPTIMUM);
}
/**
* {@inheritDoc}
*/
- public int traitSpaceStartMaximum(final FoContext context,
- final int ipdAncestorBlockArea) {
+ public int traitSpaceStartMaximum(final FoContext context) {
return propertyList.traitSpaceStartLength(this, context,
- LengthRange.MAXIMUM,
- ipdAncestorBlockArea);
+ LengthRange.MAXIMUM);
}
/**
@@ -1379,28 +1373,25 @@
/**
* {@inheritDoc}
*/
- public int traitSpaceEndMinimum(final FoContext context,
- final int ipdAncestorBlockArea) {
+ public int traitSpaceEndMinimum(final FoContext context) {
return propertyList.traitSpaceEndLength(this, context,
- LengthRange.MINIMUM, ipdAncestorBlockArea);
+ LengthRange.MINIMUM);
}
/**
* {@inheritDoc}
*/
- public int traitSpaceEndOptimum(final FoContext context,
- final int ipdAncestorBlockArea) {
+ public int traitSpaceEndOptimum(final FoContext context) {
return propertyList.traitSpaceEndLength(this, context,
- LengthRange.OPTIMUM, ipdAncestorBlockArea);
+ LengthRange.OPTIMUM);
}
/**
* {@inheritDoc}
*/
- public int traitSpaceEndMaximum(final FoContext context,
- final int ipdAncestorBlockArea) {
+ public int traitSpaceEndMaximum(final FoContext context) {
return propertyList.traitSpaceEndLength(this, context,
- LengthRange.MAXIMUM, ipdAncestorBlockArea);
+ LengthRange.MAXIMUM);
}
/**
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java 2007-07-03 22:36:45 UTC (rev 9921)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java 2007-07-03 23:25:19 UTC (rev 9922)
@@ -1784,7 +1784,7 @@
if (property == null) {
return AbstractRelativeSpace.getValueNoInstance();
}
- return property.getValue(context, subProperty, fobj, 0);
+ return property.getValue(context, subProperty, fobj);
}
/**
@@ -1839,7 +1839,7 @@
if (property == null) {
return AbstractRelativeSpace.getValueNoInstance();
}
- return property.getValue(context, subProperty, fobj, 0);
+ return property.getValue(context, subProperty, fobj);
}
/**
@@ -1885,19 +1885,16 @@
* @param context An object that knows how to resolve FO Tree context
* issues.
* @param subProperty The length-range specified.
- * @param ipdAncestorBlockArea The IPD of the ancestor block area.
* @return The space-start.length property.
*/
public int traitSpaceStartLength(final FObj fobj, final FoContext context,
- final LengthRange subProperty,
- final int ipdAncestorBlockArea) {
+ final LengthRange subProperty) {
final AbstractRelativeSpace property =
(AbstractRelativeSpace) getProperty(FoProperty.SPACE_START);
if (property == null) {
return AbstractRelativeSpace.getValueNoInstance();
}
- return property.getValue(context, subProperty, fobj,
- ipdAncestorBlockArea);
+ return property.getValue(context, subProperty, fobj);
}
/**
@@ -1932,18 +1929,16 @@
* @param context An object that knows how to resolve FO Tree context
* issues.
* @param subProperty The length-range specifier.
- * @param ipdAncestorBlockArea The IPD of the ancestor block area.
* @return The space-end.length property.
*/
public int traitSpaceEndLength(final FObj fobj, final FoContext context,
- final LengthRange subProperty, final int ipdAncestorBlockArea) {
+ final LengthRange subProperty) {
final AbstractRelativeSpace property =
(AbstractRelativeSpace) getProperty(FoProperty.SPACE_END);
if (property == null) {
return AbstractRelativeSpace.getValueNoInstance();
}
- return property.getValue(context, subProperty, fobj,
- ipdAncestorBlockArea);
+ return property.getValue(context, subProperty, fobj);
}
/**
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractRelativeSpace.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractRelativeSpace.java 2007-07-03 22:36:45 UTC (rev 9921)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractRelativeSpace.java 2007-07-03 23:25:19 UTC (rev 9922)
@@ -133,13 +133,10 @@
* @param subProperty The length-range for the property needed (MINIMUM,
* OPTIMUM, OR MAXIMUM).
* @param fobj The FO for which this value is needed.
- * @param ipdAncestorBlockArea The inline-progression-dimension of the
- * ancestor block area.
* @return The value of this property.
*/
public int getValue(final FoContext context,
- final LengthRange subProperty, final FObj fobj,
- final int ipdAncestorBlockArea) {
+ final LengthRange subProperty, final FObj fobj) {
if (value() instanceof DtSpace) {
final DtSpace spaceDT = (DtSpace) value();
switch (subProperty) {
@@ -161,6 +158,7 @@
* occurrences of them for space-before and space-after were caught
* at parse time in createPropertyValue(). */
if (value().canEvalPercentage()) {
+ final int ipdAncestorBlockArea = context.ipdAncestorBlockArea();
if (ipdAncestorBlockArea < 0) {
return 0;
}
@@ -168,8 +166,7 @@
return Math.round(percentage * ipdAncestorBlockArea);
}
if (this.isKeywordInherit(this.value())) {
- return getValueInherited(context, subProperty, fobj,
- ipdAncestorBlockArea);
+ return getValueInherited(context, subProperty, fobj);
}
throw this.unexpectedRetrieval();
}
@@ -186,13 +183,10 @@
* @param subProperty The length-range for the property needed (MINIMUM,
* OPTIMUM, OR MAXIMUM).
* @param fobj The FO for which this value is needed.
- * @param ipdAncestorBlockArea The inline-progression-dimension of the
- * ancestor block area.
* @return The inherited value of this property.
*/
private int getValueInherited(final FoContext context,
- final LengthRange subProperty,
- final FObj fobj, final int ipdAncestorBlockArea) {
+ final LengthRange subProperty, final FObj fobj) {
final RelativeCompass relativeDirection = this.getRelativeCompass();
if (relativeDirection == RelativeCompass.BEFORE) {
final FObj effectiveParent = fobj.effectiveParent(context);
@@ -232,15 +226,15 @@
switch (subProperty) {
case MINIMUM: {
return fobj.effectiveParent(context).traitSpaceStartMinimum(
- context, ipdAncestorBlockArea);
+ context);
}
case OPTIMUM: {
return fobj.effectiveParent(context).traitSpaceStartOptimum(
- context, ipdAncestorBlockArea);
+ context);
}
case MAXIMUM: {
return fobj.effectiveParent(context).traitSpaceStartMaximum(
- context, ipdAncestorBlockArea);
+ context);
}
default: {
return getValueNoInstance();
@@ -251,15 +245,15 @@
switch (subProperty) {
case MINIMUM: {
return fobj.effectiveParent(context).traitSpaceEndMinimum(
- context, ipdAncestorBlockArea);
+ context);
}
case OPTIMUM: {
return fobj.effectiveParent(context).traitSpaceEndOptimum(
- context, ipdAncestorBlockArea);
+ context);
}
case MAXIMUM: {
return fobj.effectiveParent(context).traitSpaceEndMaximum(
- context, ipdAncestorBlockArea);
+ context);
}
default: {
return getValueNoInstance();
Modified: trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java
===================================================================
--- trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java 2007-07-03 22:36:45 UTC (rev 9921)
+++ trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java 2007-07-03 23:25:19 UTC (rev 9922)
@@ -55,6 +55,10 @@
public int tableWidth() {
return 9 * 72000;
}
+ public int ipdAncestorBlockArea() {
+ return 9 * 72000;
+ }
+
};
/**
Modified: trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/AbstractTestRelativeSpace.java
===================================================================
--- trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/AbstractTestRelativeSpace.java 2007-07-03 22:36:45 UTC (rev 9921)
+++ trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/AbstractTestRelativeSpace.java 2007-07-03 23:25:19 UTC (rev 9922)
@@ -54,7 +54,7 @@
private int getPropertyValue(final AbstractRelativeSpace property,
final FObj testFobj) {
final int testLength = property.getValue(STD_FO_CONTEXT,
- LengthRange.OPTIMUM, testFobj, 72000);
+ LengthRange.OPTIMUM, testFobj);
return testLength;
}
Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java
===================================================================
--- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java 2007-07-03 22:36:45 UTC (rev 9921)
+++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java 2007-07-03 23:25:19 UTC (rev 9922)
@@ -90,4 +90,11 @@
return this.wrappedContext.tableWidth();
}
+ /**
+ * {@inheritDoc}
+ */
+ public int ipdAncestorBlockArea() {
+ return this.wrappedContext.ipdAncestorBlockArea();
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-04 00:11:42
|
Revision: 9923
http://svn.sourceforge.net/foray/?rev=9923&view=rev
Author: victormote
Date: 2007-07-03 17:11:43 -0700 (Tue, 03 Jul 2007)
Log Message:
-----------
Conform to axsl changes moving Fo parameters to new FoContext method.
Modified Paths:
--------------
trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractAbsoluteOffset.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Bottom.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Left.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Right.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextIndent.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Top.java
trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java
trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/AbstractTestAbsoluteOffset.java
trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestTextIndent.java
trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/Area.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/Area.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -1594,41 +1594,37 @@
/**
* Returns the top trait for this area.
* @return The top trait for this area.
- * @see Fo#traitTop(FoContext, int)
+ * @see Fo#traitTop(FoContext)
*/
public int traitTop() {
- final Area ancestor = this.ancestorBlockAreaNotALineArea();
- return traitGeneratedBy().traitTop(this, ancestor.crBpd());
+ return traitGeneratedBy().traitTop(this);
}
/**
* Returns the bottom trait for this area.
* @return The bottom trait for this area.
- * @see Fo#traitBottom(FoContext, int)
+ * @see Fo#traitBottom(FoContext)
*/
public int traitBottom() {
- final Area ancestor = this.ancestorBlockAreaNotALineArea();
- return traitGeneratedBy().traitBottom(this, ancestor.crBpd());
+ return traitGeneratedBy().traitBottom(this);
}
/**
* Returns the left trait for this area.
* @return The left trait for this area.
- * @see Fo#traitLeft(FoContext, int)
+ * @see Fo#traitLeft(FoContext)
*/
public int traitLeft() {
- final Area ancestor = this.ancestorBlockAreaNotALineArea();
- return traitGeneratedBy().traitLeft(this, ancestor.crIpd());
+ return traitGeneratedBy().traitLeft(this);
}
/**
* Returns the right trait for this area.
* @return The right trait for this area.
- * @see Fo#traitRight(FoContext, int)
+ * @see Fo#traitRight(FoContext)
*/
public int traitRight() {
- final Area ancestor = this.ancestorBlockAreaNotALineArea();
- return traitGeneratedBy().traitRight(this, ancestor.crIpd());
+ return traitGeneratedBy().traitRight(this);
}
/**
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/AreaNode.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -754,4 +754,20 @@
return ancestor.crIpd();
}
+ /**
+ * {@inheritDoc}
+ */
+ public int widthContainingBlock() {
+ final Area ancestor = this.ancestorBlockAreaNotALineArea();
+ return ancestor.crIpd();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public int heightContainingBlock() {
+ final Area ancestor = this.ancestorBlockAreaNotALineArea();
+ return ancestor.crBpd();
+ }
+
}
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -870,10 +870,7 @@
if (! this.isFirstLineAreaInBlock()) {
return 0;
}
- final Area ancestorBlockAreaNotALineArea
- = this.ancestorBlockAreaNotALineArea();
- final int percentBase = ancestorBlockAreaNotALineArea.crIpd();
- return traitGeneratedBy().traitTextIndent(this, percentBase);
+ return traitGeneratedBy().traitTextIndent(this);
}
/**
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -1411,41 +1411,36 @@
/**
* {@inheritDoc}
*/
- public int traitTextIndent(final FoContext context,
- final int widthContainingBlock) {
- return propertyList.getTextIndent(this, context, widthContainingBlock);
+ public int traitTextIndent(final FoContext context) {
+ return propertyList.getTextIndent(this, context);
}
/**
* {@inheritDoc}
*/
- public int traitTop(final FoContext context,
- final int heightContainingBlock) {
- return propertyList.getTop(this, context, heightContainingBlock);
+ public int traitTop(final FoContext context) {
+ return propertyList.getTop(this, context);
}
/**
* {@inheritDoc}
*/
- public int traitBottom(final FoContext context,
- final int heightContainingBlock) {
- return propertyList.getBottom(this, context, heightContainingBlock);
+ public int traitBottom(final FoContext context) {
+ return propertyList.getBottom(this, context);
}
/**
* {@inheritDoc}
*/
- public int traitLeft(final FoContext context,
- final int widthContainingBlock) {
- return propertyList.getLeft(this, context, widthContainingBlock);
+ public int traitLeft(final FoContext context) {
+ return propertyList.getLeft(this, context);
}
/**
* {@inheritDoc}
*/
- public int traitRight(final FoContext context,
- final int widthContainingBlock) {
- return propertyList.getRight(this, context, widthContainingBlock);
+ public int traitRight(final FoContext context) {
+ return propertyList.getRight(this, context);
}
/**
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -1972,18 +1972,15 @@
* @param fobj The FObj to which the property belongs.
* @param context An object that knows how to resolve FO Tree context
* issues.
- * @param widthContainingBlock The width of the containing block.
* @return The text-indent property.
*/
- public int getTextIndent(final FObj fobj, final FoContext context,
- final int widthContainingBlock) {
+ public int getTextIndent(final FObj fobj, final FoContext context) {
final TextIndent property = (TextIndent) getProperty(
FoProperty.TEXT_INDENT);
if (property != null) {
- return property.getValue(context, fobj, widthContainingBlock);
+ return property.getValue(context, fobj);
}
- return TextIndent.getValueNoInstance(context, fobj,
- widthContainingBlock);
+ return TextIndent.getValueNoInstance(context, fobj);
}
/**
@@ -2009,19 +2006,16 @@
* issues.
* @param absoluteDirection The direction for which the absolute offset
* is needed.
- * @param dimensionContainingBlock The size of the containing block, in
- * millipoints.
* @return The specified absolute offset.
*/
public int getAbsoluteOffset(final FObj fobj, final FoContext context,
- final AbsoluteCompass absoluteDirection,
- final int dimensionContainingBlock) {
+ final AbsoluteCompass absoluteDirection) {
final FoProperty propertyType = AbstractAbsoluteOffset.rawPropertyName(
absoluteDirection);
final AbstractAbsoluteOffset property = (AbstractAbsoluteOffset)
getProperty(propertyType);
if (property != null) {
- return property.getValue(context, fobj, dimensionContainingBlock);
+ return property.getValue(context, fobj);
}
return AbstractAbsoluteOffset.getValueNoInstance();
}
@@ -2031,14 +2025,10 @@
* @param fobj The FObj to which the property belongs.
* @param context An object that knows how to resolve FO Tree context
* issues.
- * @param heightContainingBlock The height of the containing block, in
- * millipoints.
* @return The top property.
*/
- public int getTop(final FObj fobj, final FoContext context,
- final int heightContainingBlock) {
- return getAbsoluteOffset(fobj, context, AbsoluteCompass.TOP,
- heightContainingBlock);
+ public int getTop(final FObj fobj, final FoContext context) {
+ return getAbsoluteOffset(fobj, context, AbsoluteCompass.TOP);
}
/**
@@ -2046,14 +2036,10 @@
* @param fobj The FObj to which the property belongs.
* @param context An object that knows how to resolve FO Tree context
* issues.
- * @param heightContainingBlock The height of the containing block, in
- * millipoints.
* @return The bottom property.
*/
- public int getBottom(final FObj fobj, final FoContext context,
- final int heightContainingBlock) {
- return getAbsoluteOffset(fobj, context, AbsoluteCompass.BOTTOM,
- heightContainingBlock);
+ public int getBottom(final FObj fobj, final FoContext context) {
+ return getAbsoluteOffset(fobj, context, AbsoluteCompass.BOTTOM);
}
/**
@@ -2061,14 +2047,10 @@
* @param fobj The FObj to which the property belongs.
* @param context An object that knows how to resolve FO Tree context
* issues.
- * @param widthContainingBlock The width of the containing block, in
- * millipoints.
* @return The left property.
*/
- public int getLeft(final FObj fobj, final FoContext context,
- final int widthContainingBlock) {
- return getAbsoluteOffset(fobj, context, AbsoluteCompass.LEFT,
- widthContainingBlock);
+ public int getLeft(final FObj fobj, final FoContext context) {
+ return getAbsoluteOffset(fobj, context, AbsoluteCompass.LEFT);
}
/**
@@ -2076,14 +2058,10 @@
* @param fobj The FObj to which the property belongs.
* @param context An object that knows how to resolve FO Tree context
* issues.
- * @param widthContainingBlock The width of the containing block, in
- * millipoints.
* @return The right property.
*/
- public int getRight(final FObj fobj, final FoContext context,
- final int widthContainingBlock) {
- return getAbsoluteOffset(fobj, context, AbsoluteCompass.RIGHT,
- widthContainingBlock);
+ public int getRight(final FObj fobj, final FoContext context) {
+ return getAbsoluteOffset(fobj, context, AbsoluteCompass.RIGHT);
}
/**
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractAbsoluteOffset.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractAbsoluteOffset.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/AbstractAbsoluteOffset.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -93,12 +93,9 @@
* Returns the value of this property.
* @param context An object that knows how to resolve FO context issues.
* @param fobj The FO for which this value is needed.
- * @param dimensionContainingBlock The size, in millipoints, of the
- * containing block.
* @return The value of this property.
*/
- public int getValue(final FoContext context, final FObj fobj,
- final int dimensionContainingBlock) {
+ public int getValue(final FoContext context, final FObj fobj) {
if (value().canEvalKeyword()) {
final FoValue keyword = this.convertValueToFoValue(value());
switch (keyword) {
@@ -115,6 +112,8 @@
}
}
if (value().canEvalPercentage()) {
+ final int dimensionContainingBlock = this.dimensionContainingBlock(
+ context);
final float percent = value().evalPercentage();
return Math.round(dimensionContainingBlock * percent
/ WKConstants.PERCENT_CONVERSION);
@@ -171,4 +170,12 @@
return value;
}
+ /**
+ * Returns either the width or the height of the containing block, depending
+ * on the subclass.
+ * @param context An object that knows how to resolve FO context issues.
+ * @return The width or height of the containing block.
+ */
+ protected abstract int dimensionContainingBlock(FoContext context);
+
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Bottom.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Bottom.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Bottom.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -32,6 +32,8 @@
import org.foray.fotree.PropertyException;
import org.foray.fotree.fo.FoProperty;
+import org.axsl.fo.FoContext;
+
/**
* The "bottom" property in XSL-FO.
* @see "XSL-FO Recommendation 1.1, Section 7.6.4"
@@ -58,4 +60,11 @@
return FoProperty.BOTTOM;
}
+ /**
+ * {@inheritDoc}
+ */
+ protected int dimensionContainingBlock(final FoContext context) {
+ return context.heightContainingBlock();
+ }
+
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Left.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Left.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Left.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -32,6 +32,8 @@
import org.foray.fotree.PropertyException;
import org.foray.fotree.fo.FoProperty;
+import org.axsl.fo.FoContext;
+
/**
* The "left" property in XSL-FO.
* @see "XSL-FO Recommendation 1.1, Section 7.6.5"
@@ -58,4 +60,11 @@
return FoProperty.LEFT;
}
+ /**
+ * {@inheritDoc}
+ */
+ protected int dimensionContainingBlock(final FoContext context) {
+ return context.widthContainingBlock();
+ }
+
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Right.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Right.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Right.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -32,6 +32,8 @@
import org.foray.fotree.PropertyException;
import org.foray.fotree.fo.FoProperty;
+import org.axsl.fo.FoContext;
+
/**
* The "right" property in XSL-FO.
* @see "XSL-FO Recommendation 1.1, Section 7.6.3"
@@ -58,4 +60,11 @@
return FoProperty.RIGHT;
}
+ /**
+ * {@inheritDoc}
+ */
+ protected int dimensionContainingBlock(final FoContext context) {
+ return context.widthContainingBlock();
+ }
+
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextIndent.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextIndent.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/TextIndent.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -91,21 +91,19 @@
* Returns the value of this property.
* @param context An object that knows how to resolve FO context issues.
* @param fobj The FO for which this value is needed.
- * @param widthContainingBlock The width, in millipoints, of the containing
- * block area.
* @return The value of this property.
*/
- public int getValue(final FoContext context, final FObj fobj,
- final int widthContainingBlock) {
+ public int getValue(final FoContext context, final FObj fobj) {
if (value().canEvalKeyword()) {
final FoValue keyword = this.convertValueToFoValue(value());
switch (keyword) {
case INHERIT: {
- return getValueNoInstance(context, fobj, widthContainingBlock);
+ return getValueNoInstance(context, fobj);
}
}
}
if (value().canEvalPercentage()) {
+ final int widthContainingBlock = context.widthContainingBlock();
final float percentage = value().evalPercentage();
return Math.round(percentage * widthContainingBlock
/ WKConstants.PERCENT_CONVERSION);
@@ -120,18 +118,15 @@
* Returns the default (initial) value for this property.
* @param context An object that knows how to resolve FO context issues.
* @param fobj The FO for which this value is needed.
- * @param widthContainingBlock The width, in millipoints, of the containing
- * block area.
* @return The initial value for this property.
*/
public static int getValueNoInstance(final FoContext context,
- final FObj fobj,
- final int widthContainingBlock) {
+ final FObj fobj) {
final FObj parent = fobj.effectiveParent(context);
if (parent == null) {
return 0;
}
- return parent.traitTextIndent(context, widthContainingBlock);
+ return parent.traitTextIndent(context);
}
/**
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Top.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Top.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/Top.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -32,6 +32,8 @@
import org.foray.fotree.PropertyException;
import org.foray.fotree.fo.FoProperty;
+import org.axsl.fo.FoContext;
+
/**
* The "top" property in XSL-FO.
* @see "XSL-FO Recommendation 1.1, Section 7.6.2"
@@ -58,4 +60,11 @@
return FoProperty.TOP;
}
+ /**
+ * {@inheritDoc}
+ */
+ protected int dimensionContainingBlock(final FoContext context) {
+ return context.heightContainingBlock();
+ }
+
}
Modified: trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java
===================================================================
--- trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-fotree/src/javatest/org/foray/fotree/AbstractPropertyTest.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -53,12 +53,17 @@
return 9 * 72000;
}
public int tableWidth() {
- return 9 * 72000;
+ return 6 * 72000;
}
public int ipdAncestorBlockArea() {
+ return 6 * 72000;
+ }
+ public int widthContainingBlock() {
+ return 6 * 72000;
+ }
+ public int heightContainingBlock() {
return 9 * 72000;
}
-
};
/**
Modified: trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/AbstractTestAbsoluteOffset.java
===================================================================
--- trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/AbstractTestAbsoluteOffset.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/AbstractTestAbsoluteOffset.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -52,8 +52,7 @@
*/
private int getPropertyValue(final AbstractAbsoluteOffset property,
final FObj testFobj) {
- final int testLength = property.getValue(STD_FO_CONTEXT, testFobj,
- 72000);
+ final int testLength = property.getValue(STD_FO_CONTEXT, testFobj);
return testLength;
}
Modified: trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestTextIndent.java
===================================================================
--- trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestTextIndent.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestTextIndent.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -56,8 +56,7 @@
*/
private int getPropertyValue(final TextIndent property,
final FObj testFobj) {
- final int testLength = property.getValue(STD_FO_CONTEXT, testFobj,
- 72000);
+ final int testLength = property.getValue(STD_FO_CONTEXT, testFobj);
return testLength;
}
Modified: trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java
===================================================================
--- trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java 2007-07-03 23:25:19 UTC (rev 9922)
+++ trunk/foray/foray-pioneer/src/java/org/foray/pioneer/OverrideGraftingContext.java 2007-07-04 00:11:43 UTC (rev 9923)
@@ -97,4 +97,18 @@
return this.wrappedContext.ipdAncestorBlockArea();
}
+ /**
+ * {@inheritDoc}
+ */
+ public int widthContainingBlock() {
+ return this.wrappedContext.widthContainingBlock();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ public int heightContainingBlock() {
+ return this.wrappedContext.heightContainingBlock();
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <vic...@us...> - 2007-07-05 20:36:41
|
Revision: 9926
http://svn.sourceforge.net/foray/?rev=9926&view=rev
Author: victormote
Date: 2007-07-05 13:36:42 -0700 (Thu, 05 Jul 2007)
Log Message:
-----------
Conform to axsl changes rolling up method parameter into already-existing FoContext method.
Modified Paths:
--------------
trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LastLineEndIndent.java
trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestLastLineEndIndent.java
Modified: trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java
===================================================================
--- trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2007-07-05 20:23:49 UTC (rev 9925)
+++ trunk/foray/foray-areatree/src/java/org/foray/area/LineArea.java 2007-07-05 20:36:42 UTC (rev 9926)
@@ -881,10 +881,7 @@
if (! this.isLastLineAreaInBlock()) {
return 0;
}
- final Area ancestorBlockAreaNotALineArea
- = this.ancestorBlockAreaNotALineArea();
- final int percentBase = ancestorBlockAreaNotALineArea.crIpd();
- return traitGeneratedBy().traitLastLineEndIndent(this, percentBase);
+ return traitGeneratedBy().traitLastLineEndIndent(this);
}
/**
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2007-07-05 20:23:49 UTC (rev 9925)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/FObj.java 2007-07-05 20:36:42 UTC (rev 9926)
@@ -2216,10 +2216,8 @@
/**
* {@inheritDoc}
*/
- public int traitLastLineEndIndent(final FoContext context,
- final int ipdAncestorBANotLA) {
- return propertyList.traitLastLineEndIndent(this, context,
- ipdAncestorBANotLA);
+ public int traitLastLineEndIndent(final FoContext context) {
+ return propertyList.traitLastLineEndIndent(this, context);
}
/**
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java 2007-07-05 20:23:49 UTC (rev 9925)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/PropertyList.java 2007-07-05 20:36:42 UTC (rev 9926)
@@ -3495,19 +3495,16 @@
* @param fobj The FObj to which the property belongs.
* @param context An object that knows how to resolve FO Tree context
* issues.
- * @param ipdAncestorBANotLA The IPD of the nearest ancestor normal block
- * area.
* @return The last-line-end-indent property.
*/
- public int traitLastLineEndIndent(final FObj fobj, final FoContext context,
- final int ipdAncestorBANotLA) {
+ public int traitLastLineEndIndent(final FObj fobj,
+ final FoContext context) {
final LastLineEndIndent property = (LastLineEndIndent)
getProperty(FoProperty.LAST_LINE_END_INDENT);
if (property == null) {
- return LastLineEndIndent.getValueNoInstance(context, fobj,
- ipdAncestorBANotLA);
+ return LastLineEndIndent.getValueNoInstance(context, fobj);
}
- return property.getValue(context, fobj, ipdAncestorBANotLA);
+ return property.getValue(context, fobj);
}
/**
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LastLineEndIndent.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LastLineEndIndent.java 2007-07-05 20:23:49 UTC (rev 9925)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/prop/LastLineEndIndent.java 2007-07-05 20:36:42 UTC (rev 9926)
@@ -93,16 +93,14 @@
* Returns the value of this property.
* @param context An object that knows how to resolve FO context issues.
* @param fobj The FO for which this value is needed.
- * @param ipdAncestorBANotLA The inline-progression-dimension of the nearest
- * ancestor area that is a block-area but not a line-area.
* @return The value of this property.
*/
- public int getValue(final FoContext context, final FObj fobj,
- final int ipdAncestorBANotLA) {
+ public int getValue(final FoContext context, final FObj fobj) {
if (value().canEvalPercentage()) {
+ final int base = context.ipdAncestorBlockArea();
final DtPercentage percentageDT = (DtPercentage) value();
final float percentage = percentageDT.getValue();
- return Math.round(percentage * ipdAncestorBANotLA /
+ return Math.round(percentage * base /
WKConstants.PERCENT_CONVERSION);
}
if (value().canEvalLength()) {
@@ -110,8 +108,7 @@
}
if (value().canEvalKeyword()) {
/* "inherit" is the only keyword. */
- return LastLineEndIndent.getValueNoInstance(context, fobj,
- ipdAncestorBANotLA);
+ return LastLineEndIndent.getValueNoInstance(context, fobj);
}
throw this.unexpectedRetrieval();
}
@@ -120,17 +117,15 @@
* Returns the default (initial) value for this property.
* @param context An object that knows how to resolve FO context issues.
* @param fobj The FO for which this value is needed.
- * @param ipdAncestorBANotLA The inline-progression-dimension of the nearest
- * ancestor area that is a block-area but not a line-area.
* @return The initial value for this property.
*/
public static int getValueNoInstance(final FoContext context,
- final FObj fobj, final int ipdAncestorBANotLA) {
+ final FObj fobj) {
final FObj parent = fobj.effectiveParent(context);
if (parent == null) {
return 0;
}
- return parent.traitLastLineEndIndent(context, ipdAncestorBANotLA);
+ return parent.traitLastLineEndIndent(context);
}
/**
Modified: trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestLastLineEndIndent.java
===================================================================
--- trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestLastLineEndIndent.java 2007-07-05 20:23:49 UTC (rev 9925)
+++ trunk/foray/foray-fotree/src/javatest/org/foray/fotree/fo/prop/TestLastLineEndIndent.java 2007-07-05 20:36:42 UTC (rev 9926)
@@ -56,8 +56,7 @@
*/
private int getPropertyValue(final LastLineEndIndent property,
final FObj testFobj) {
- final int testLength = property.getValue(STD_FO_CONTEXT, testFobj,
- 72000);
+ final int testLength = property.getValue(STD_FO_CONTEXT, testFobj);
return testLength;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|