aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/ps/PSPainter.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-12-19 09:31:15 +0000
committerJeremias Maerki <jeremias@apache.org>2008-12-19 09:31:15 +0000
commit34ecb4c0e098856c1249025865c05ea34b46b51e (patch)
tree43874c4a4dad645dc7508960f517c5a10c0b5366 /src/java/org/apache/fop/render/ps/PSPainter.java
parentb599eedcb4c3ea7e547c18b211a3cd1e1526b2b1 (diff)
downloadxmlgraphics-fop-34ecb4c0e098856c1249025865c05ea34b46b51e.tar.gz
xmlgraphics-fop-34ecb4c0e098856c1249025865c05ea34b46b51e.zip
Borders and leaders/rules for the PostScript painter.
BorderPainter methods throw IOException (needed for PostScript). Some Javadocs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@727986 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/ps/PSPainter.java')
-rw-r--r--src/java/org/apache/fop/render/ps/PSPainter.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSPainter.java b/src/java/org/apache/fop/render/ps/PSPainter.java
index 3c937addf..a55d20739 100644
--- a/src/java/org/apache/fop/render/ps/PSPainter.java
+++ b/src/java/org/apache/fop/render/ps/PSPainter.java
@@ -64,6 +64,7 @@ public class PSPainter extends AbstractIFPainter {
private static Log log = LogFactory.getLog(PSPainter.class);
private PSDocumentHandler documentHandler;
+ private PSBorderPainter borderPainter;
private boolean inTextMode = false;
@@ -74,6 +75,7 @@ public class PSPainter extends AbstractIFPainter {
public PSPainter(PSDocumentHandler documentHandler) {
super();
this.documentHandler = documentHandler;
+ this.borderPainter = new PSBorderPainter(documentHandler.gen);
this.state = IFState.create();
}
@@ -236,9 +238,8 @@ public class PSPainter extends AbstractIFPainter {
BorderProps start, BorderProps end) throws IFException {
if (before != null || after != null || start != null || end != null) {
try {
- //TODO Implement me
endTextObject();
- //this.borderPainter.drawBorders(rect, before, after, start, end);
+ this.borderPainter.drawBorders(rect, before, after, start, end);
} catch (IOException ioe) {
throw new IFException("I/O error in drawBorderRect()", ioe);
}
@@ -249,9 +250,8 @@ public class PSPainter extends AbstractIFPainter {
public void drawLine(Point start, Point end, int width, Color color, RuleStyle style)
throws IFException {
try {
- //TODO Implement me
endTextObject();
- //this.borderPainter.drawLine(start, end, width, color, style);
+ this.borderPainter.drawLine(start, end, width, color, style);
} catch (IOException ioe) {
throw new IFException("I/O error in drawLine()", ioe);
}