aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/afp/modca/PresentationTextObject.java
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2008-07-22 17:25:27 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2008-07-22 17:25:27 +0000
commit94e331eebc93ac99f100576f82af034c394741c2 (patch)
tree106514941e1745670a14a9a44e57fd3ecfd16abf /src/java/org/apache/fop/render/afp/modca/PresentationTextObject.java
parent6b7d549d6915c9a1028928afa55c45e73123472f (diff)
downloadxmlgraphics-fop-94e331eebc93ac99f100576f82af034c394741c2.tar.gz
xmlgraphics-fop-94e331eebc93ac99f100576f82af034c394741c2.zip
* Removed unused goca accessor methods from AFPState.
* Created LineDataInfo class, this simplifies all the parameter passing on line creation. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@678812 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/afp/modca/PresentationTextObject.java')
-rw-r--r--src/java/org/apache/fop/render/afp/modca/PresentationTextObject.java49
1 files changed, 7 insertions, 42 deletions
diff --git a/src/java/org/apache/fop/render/afp/modca/PresentationTextObject.java b/src/java/org/apache/fop/render/afp/modca/PresentationTextObject.java
index 88e29851f..5828b7171 100644
--- a/src/java/org/apache/fop/render/afp/modca/PresentationTextObject.java
+++ b/src/java/org/apache/fop/render/afp/modca/PresentationTextObject.java
@@ -24,7 +24,8 @@ import java.io.IOException;
import java.io.OutputStream;
import java.util.List;
-import org.apache.fop.render.afp.AFPTextDataInfo;
+import org.apache.fop.render.afp.LineDataInfo;
+import org.apache.fop.render.afp.TextDataInfo;
/**
* The Presentation Text object is the data object used in document processing
@@ -81,7 +82,7 @@ public class PresentationTextObject extends AbstractNamedAFPObject {
* @param textDataInfo
* The afp text data
*/
- public void createTextData(AFPTextDataInfo textDataInfo) {
+ public void createTextData(TextDataInfo textDataInfo) {
if (currentPresentationTextData == null) {
startPresentationTextData();
}
@@ -94,56 +95,20 @@ public class PresentationTextObject extends AbstractNamedAFPObject {
}
/**
- * Drawing of lines using the starting and ending coordinates, thickness.
- *
- * @param x1
- * The first x coordinate of the line.
- * @param y1
- * The first y coordinate of the line.
- * @param x2
- * The second x coordinate of the line.
- * @param y2
- * The second y coordinate of the line.
- * @param thickness
- * The thickness of the line.
- * @param col
- * The text color.
- */
- public void createLineData(int x1, int y1, int x2, int y2, int thickness, Color col) {
- // Default orientation
- createLineData(x1, y1, x2, y2, thickness, 0, col);
- }
-
- /**
* Drawing of lines using the starting and ending coordinates, thickness and
* orientation arguments.
*
- * @param x1
- * The first x coordinate of the line.
- * @param y1
- * The first y coordinate of the line.
- * @param x2
- * The second x coordinate of the line.
- * @param y2
- * The second y coordinate of the line.
- * @param thickness
- * The thickness of the line.
- * @param orientation
- * The orientation of the line.
- * @param col
- * The text color.
+ * @param lineDataInfo the line data information.
*/
- public void createLineData(int x1, int y1, int x2, int y2, int thickness,
- int orientation, Color col) {
+ public void createLineData(LineDataInfo lineDataInfo) {
if (currentPresentationTextData == null) {
startPresentationTextData();
}
try {
- currentPresentationTextData.createLineData(x1, y1, x2, y2,
- thickness, orientation, col);
+ currentPresentationTextData.createLineData(lineDataInfo);
} catch (MaximumSizeExceededException msee) {
endPresentationTextData();
- createLineData(x1, y1, x2, y2, thickness, orientation, col);
+ createLineData(lineDataInfo);
}
}