You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ar...@locus.apache.org on 2000/03/11 04:35:54 UTC
cvs commit: xml-fop/src/org/apache/fop/pdf PDFLink.java
arved 00/03/10 19:35:54
Modified: src/org/apache/fop/pdf PDFLink.java
Log:
Modified constructor
Revision Changes Path
1.2 +3 -5 xml-fop/src/org/apache/fop/pdf/PDFLink.java
Index: PDFLink.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/pdf/PDFLink.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- PDFLink.java 1999/11/22 17:37:17 1.1
+++ PDFLink.java 2000/03/11 03:35:54 1.2
@@ -1,4 +1,4 @@
-/*-- $Id: PDFLink.java,v 1.1 1999/11/22 17:37:17 jtauber Exp $ --
+/*-- $Id: PDFLink.java,v 1.2 2000/03/11 03:35:54 arved Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -63,7 +63,6 @@
float uly;
float brx;
float bry;
- String destination;
String color;
PDFAction action;
@@ -73,7 +72,7 @@
* @param number the object's number
* @param producer the application producing the PDF
*/
- public PDFLink(int number, String destName, Rectangle r) {
+ public PDFLink(int number, Rectangle r) {
/* generic creation of PDF object */
super(number);
@@ -81,7 +80,6 @@
this.uly = r.y;
this.brx = r.x + r.width;
this.bry = r.y - r.height;
- this.destination = destName; // what is this for?
this.color = "0 0 0.7"; // just for now
}
@@ -103,7 +101,7 @@
(brx/1000f) + " " + (bry/1000f) + " ]\n"
+ "/C [ " + color + " ]\n" +
"/Border [ 0 0 1 ]\n" +
- "/A " + action.referencePDF() + "\n" +
+ "/A " + this.action.referencePDF() + "\n" +
"/H /I\n>>\nendobj\n";
return p;
}