-/*-- $Id$ --
-
- ============================================================================
- The Apache Software License, Version 1.1
- ============================================================================
-
- Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modifica-
- tion, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- 3. The end-user documentation included with the redistribution, if any, must
- include the following acknowledgment: "This product includes software
- developed by the Apache Software Foundation (http://www.apache.org/)."
- Alternately, this acknowledgment may appear in the software itself, if
- and wherever such third-party acknowledgments normally appear.
-
- 4. The names "Fop" and "Apache Software Foundation" must not be used to
- endorse or promote products derived from this software without prior
- written permission. For written permission, please contact
- apache@apache.org.
-
- 5. Products derived from this software may not be called "Apache", nor may
- "Apache" appear in their name, without prior written permission of the
- Apache Software Foundation.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- This software consists of voluntary contributions made by many individuals
- on behalf of the Apache Software Foundation and was originally created by
- James Tauber <jtauber@jtauber.com>. For more information on the Apache
- Software Foundation, please see <http://www.apache.org/>.
-
+/* $Id$
+ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
+ * For details on use and redistribution please refer to the
+ * LICENSE file included with these sources.
*/
package org.apache.fop.pdf;
protected double yellow = -1.0;
protected double black = -1.0;
- private PDFNumber pdfNumber = new PDFNumber();
-
public PDFColor(org.apache.fop.datatypes.ColorType theColor)
{
this.colorSpace = new ColorSpace(ColorSpace.DEVICE_RGB);
if(fillNotStroke)
{ //fill
if(same) {
- p.append(pdfNumber.doubleOut(this.red) + " g\n");
+ p.append(PDFNumber.doubleOut(this.red) + " g\n");
} else {
- p.append(pdfNumber.doubleOut(this.red)+" "
- +pdfNumber.doubleOut(this.green)+" "
- +pdfNumber.doubleOut(this.blue)+" "
+ p.append(PDFNumber.doubleOut(this.red)+" "
+ +PDFNumber.doubleOut(this.green)+" "
+ +PDFNumber.doubleOut(this.blue)+" "
+" rg \n");
}
}
else
{//stroke/border
if(same) {
- p.append(pdfNumber.doubleOut(this.red) + " G\n");
+ p.append(PDFNumber.doubleOut(this.red) + " G\n");
} else {
- p.append(pdfNumber.doubleOut(this.red)+" "
- +pdfNumber.doubleOut(this.green)+" "
- +pdfNumber.doubleOut(this.blue)+" "
+ p.append(PDFNumber.doubleOut(this.red)+" "
+ +PDFNumber.doubleOut(this.green)+" "
+ +PDFNumber.doubleOut(this.blue)+" "
+" RG \n");
}
}
if(fillNotStroke)
{ //fill
- p.append(pdfNumber.doubleOut(this.cyan) + " "
- + pdfNumber.doubleOut(this.magenta) + " "
- + pdfNumber.doubleOut(this.yellow) + " "
- + pdfNumber.doubleOut(this.black) + " k \n");
+ p.append(PDFNumber.doubleOut(this.cyan) + " "
+ + PDFNumber.doubleOut(this.magenta) + " "
+ + PDFNumber.doubleOut(this.yellow) + " "
+ + PDFNumber.doubleOut(this.black) + " k \n");
}
else
{ //fill
- p.append(pdfNumber.doubleOut(this.cyan) + " "
- + pdfNumber.doubleOut(this.magenta) + " "
- + pdfNumber.doubleOut(this.yellow) + " "
- + pdfNumber.doubleOut(this.black) + " K \n");
+ p.append(PDFNumber.doubleOut(this.cyan) + " "
+ + PDFNumber.doubleOut(this.magenta) + " "
+ + PDFNumber.doubleOut(this.yellow) + " "
+ + PDFNumber.doubleOut(this.black) + " K \n");
}
}//end of if CMYK
if(fillNotStroke)
{
- p.append(pdfNumber.doubleOut(this.black) + " g \n");
+ p.append(PDFNumber.doubleOut(this.black) + " g \n");
}
else
{
- p.append(pdfNumber.doubleOut(this.black) + " G \n");
+ p.append(PDFNumber.doubleOut(this.black) + " G \n");
}
}
-/*-- $Id$ --
-
- ============================================================================
- The Apache Software License, Version 1.1
- ============================================================================
-
- Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modifica-
- tion, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- 3. The end-user documentation included with the redistribution, if any, must
- include the following acknowledgment: "This product includes software
- developed by the Apache Software Foundation (http://www.apache.org/)."
- Alternately, this acknowledgment may appear in the software itself, if
- and wherever such third-party acknowledgments normally appear.
-
- 4. The names "Fop" and "Apache Software Foundation" must not be used to
- endorse or promote products derived from this software without prior
- written permission. For written permission, please contact
- apache@apache.org.
-
- 5. Products derived from this software may not be called "Apache", nor may
- "Apache" appear in their name, without prior written permission of the
- Apache Software Foundation.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- This software consists of voluntary contributions made by many individuals
- on behalf of the Apache Software Foundation and was originally created by
- James Tauber <jtauber@jtauber.com>. For more information on the Apache
- Software Foundation, please see <http://www.apache.org/>.
-
+/* $Id$
+ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
+ * For details on use and redistribution please refer to the
+ * LICENSE file included with these sources.
*/
package org.apache.fop.pdf;
/* *************************TYPE 4************************** */
//See 'data' above.
- private PDFNumber pdfNumber = new PDFNumber();
/**
* create an complete Function object of Type 0, A Sampled function.
vectorSize = this.domain.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.domain.elementAt(tempInt))
+" ");
}
vectorSize = this.size.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.size.elementAt(tempInt)) +" ");
}
p.append("] \n");
vectorSize = this.encode.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.encode.elementAt(tempInt)) +" ");
}
p.append("] \n");
vectorSize = this.range.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.range.elementAt(tempInt)) +" ");
}
vectorSize = this.decode.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.decode.elementAt(tempInt)) +" ");
}
vectorSize = this.domain.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.domain.elementAt(tempInt)) +" ");
}
vectorSize = this.range.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.range.elementAt(tempInt)) +" ");
}
vectorSize = this.cZero.size();
for(tempInt = 0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.cZero.elementAt(tempInt))+" ");
}
p.append("] \n");
vectorSize = this.cOne.size();
for(tempInt = 0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.cOne.elementAt(tempInt))+" ");
}
p.append("] \n");
//N: The interpolation Exponent
p.append("/N "
- +pdfNumber.doubleOut(
+ +PDFNumber.doubleOut(
new Double(this.interpolationExponentN))
+" \n");
vectorSize = this.domain.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.domain.elementAt(tempInt)) +" ");
}
p.append("] \n");
vectorSize = this.range.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.range.elementAt(tempInt)) +" ");
}
vectorSize = this.encode.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.encode.elementAt(tempInt)) +" ");
}
vectorSize= this.bounds.size();
for(tempInt = 0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.bounds.elementAt(tempInt))+" ");
}
// of the whole. e.g. if there are 4, then [ 0.25 0.25 0.25 ]
String functionsFraction =
- pdfNumber.doubleOut(new Double(
+ PDFNumber.doubleOut(new Double(
1.0 / ((double)numberOfFunctions)));
for(tempInt =0;tempInt+1 < numberOfFunctions; tempInt++)
vectorSize = this.domain.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.domain.elementAt(tempInt)) +" ");
}
vectorSize = this.range.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.range.elementAt(tempInt)) +" ");
}
-/*-- $Id$ --
-
- ============================================================================
- The Apache Software License, Version 1.1
- ============================================================================
-
- Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modifica-
- tion, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- 3. The end-user documentation included with the redistribution, if any, must
- include the following acknowledgment: "This product includes software
- developed by the Apache Software Foundation (http://www.apache.org/)."
- Alternately, this acknowledgment may appear in the software itself, if
- and wherever such third-party acknowledgments normally appear.
-
- 4. The names "FOP" and "Apache Software Foundation" must not be used to
- endorse or promote products derived from this software without prior
- written permission. For written permission, please contact
- apache@apache.org.
-
- 5. Products derived from this software may not be called "Apache", nor may
- "Apache" appear in their name, without prior written permission of the
- Apache Software Foundation.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- This software consists of voluntary contributions made by many individuals
- on behalf of the Apache Software Foundation and was originally created by
- James Tauber <jtauber@jtauber.com>. For more information on the Apache
- Software Foundation, please see <http://www.apache.org/>.
-
+/* $Id$
+ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
+ * For details on use and redistribution please refer to the
+ * LICENSE file included with these sources.
*/
package org.apache.fop.pdf;
public class PDFNumber {
-
- public PDFNumber()
+ private PDFNumber()
{
-
- //How can I allow people to use the method, without allowing construction?
-
}
- public String doubleOut(Double doubleDown)
+ public static String doubleOut(Double doubleDown)
{
StringBuffer p = new StringBuffer();
if(doubleDown.doubleValue() < 0) {
return(p.toString());
}
- public String doubleOut(double doubleDown)
+ public static String doubleOut(double doubleDown)
{
StringBuffer p = new StringBuffer();
return(p.toString());
}
- public String doubleOut(double doubleDown, int dec)
+ public static String doubleOut(double doubleDown, int dec)
{
StringBuffer p = new StringBuffer();
}
return(p.toString());
}
-}
+}
+
-/*-- $Id$ --
-
- ============================================================================
- The Apache Software License, Version 1.1
- ============================================================================
-
- Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modifica-
- tion, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- 3. The end-user documentation included with the redistribution, if any, must
- include the following acknowledgment: "This product includes software
- developed by the Apache Software Foundation (http://www.apache.org/)."
- Alternately, this acknowledgment may appear in the software itself, if
- and wherever such third-party acknowledgments normally appear.
-
- 4. The names "Fop" and "Apache Software Foundation" must not be used to
- endorse or promote products derived from this software without prior
- written permission. For written permission, please contact
- apache@apache.org.
-
- 5. Products derived from this software may not be called "Apache", nor may
- "Apache" appear in their name, without prior written permission of the
- Apache Software Foundation.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- This software consists of voluntary contributions made by many individuals
- on behalf of the Apache Software Foundation and was originally created by
- James Tauber <jtauber@jtauber.com>. For more information on the Apache
- Software Foundation, please see <http://www.apache.org/>.
-
+/* $Id$
+ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
+ * For details on use and redistribution please refer to the
+ * LICENSE file included with these sources.
*/
package org.apache.fop.pdf;
* All PDF Functions have a FunctionType (0,2,3, or 4), a Domain, and a Range.
*/
public class PDFPattern extends PDFPathPaint {
- private PDFNumber pdfNumber = new PDFNumber();
-
/**
* The resources associated with this pattern
*/
for (tempInt =0; tempInt < vectorSize; tempInt++)
{
p.append(
- pdfNumber.doubleOut((Double)this.bBox.elementAt(tempInt)));
+ PDFNumber.doubleOut((Double)this.bBox.elementAt(tempInt)));
p.append(" ");
}
p.append("] \n");
}
- p.append("/XStep "+pdfNumber.doubleOut(new Double(this.xStep))+" \n");
- p.append("/YStep "+pdfNumber.doubleOut(new Double(this.yStep))+" \n");
+ p.append("/XStep "+PDFNumber.doubleOut(new Double(this.xStep))+" \n");
+ p.append("/YStep "+PDFNumber.doubleOut(new Double(this.yStep))+" \n");
if(this.matrix != null)
{
p.append("/Matrix [ ");
for (tempInt =0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.matrix.elementAt(tempInt)));
p.append(" ");
}
p.append("/Matrix [ ");
for (tempInt =0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.matrix.elementAt(tempInt)));
p.append(" ");
}
-/*-- $Id$ --
-
- ============================================================================
- The Apache Software License, Version 1.1
- ============================================================================
-
- Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modifica-
- tion, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- 3. The end-user documentation included with the redistribution, if any, must
- include the following acknowledgment: "This product includes software
- developed by the Apache Software Foundation (http://www.apache.org/)."
- Alternately, this acknowledgment may appear in the software itself, if
- and wherever such third-party acknowledgments normally appear.
-
- 4. The names "Fop" and "Apache Software Foundation" must not be used to
- endorse or promote products derived from this software without prior
- written permission. For written permission, please contact
- apache@apache.org.
-
- 5. Products derived from this software may not be called "Apache", nor may
- "Apache" appear in their name, without prior written permission of the
- Apache Software Foundation.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- This software consists of voluntary contributions made by many individuals
- on behalf of the Apache Software Foundation and was originally created by
- James Tauber <jtauber@jtauber.com>. For more information on the Apache
- Software Foundation, please see <http://www.apache.org/>.
-
+/* $Id$
+ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
+ * For details on use and redistribution please refer to the
+ * LICENSE file included with these sources.
*/
package org.apache.fop.pdf;
//Java...
import java.util.Vector;
-
//FOP
import org.apache.fop.datatypes.ColorSpace;
*/
protected int verticesPerRow = 0;
- private PDFNumber pdfNumber = new PDFNumber();
-
/**
* Constructor for type function based shading
*
vectorSize = this.background.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.background.elementAt(tempInt)) +" ");
}
p.append("] \n");
vectorSize = this.bBox.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.bBox.elementAt(tempInt)) +" ");
}
p.append("] \n");
vectorSize = this.domain.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.domain.elementAt(tempInt)) +" ");
}
p.append("] \n");
vectorSize = this.matrix.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.matrix.elementAt(tempInt)) +" ");
}
p.append("] \n");
vectorSize = this.coords.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.coords.elementAt(tempInt)) +" ");
}
p.append("] \n");
vectorSize = this.domain.size();
for(tempInt=0; tempInt < vectorSize; tempInt++)
{
- p.append(pdfNumber.doubleOut(
+ p.append(PDFNumber.doubleOut(
(Double)this.domain.elementAt(tempInt)) +" ");
}
p.append("] \n");
-/*-- $Id$ --
-
- ============================================================================
- The Apache Software License, Version 1.1
- ============================================================================
-
- Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modifica-
- tion, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- 3. The end-user documentation included with the redistribution, if any, must
- include the following acknowledgment: "This product includes software
- developed by the Apache Software Foundation (http://www.apache.org/)."
- Alternately, this acknowledgment may appear in the software itself, if
- and wherever such third-party acknowledgments normally appear.
-
- 4. The names "Fop" and "Apache Software Foundation" must not be used to
- endorse or promote products derived from this software without prior
- written permission. For written permission, please contact
- apache@apache.org.
-
- 5. Products derived from this software may not be called "Apache", nor may
- "Apache" appear in their name, without prior written permission of the
- Apache Software Foundation.
-
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
- DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- This software consists of voluntary contributions made by many individuals
- on behalf of the Apache Software Foundation and was originally created by
- James Tauber <jtauber@jtauber.com>. For more information on the Apache
- Software Foundation, please see <http://www.apache.org/>.
-
+/* $Id$
+ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
+ * For details on use and redistribution please refer to the
+ * LICENSE file included with these sources.
*/
+
/* modified by JKT to integrate with 0.12.0 */
/* modified by Eric SCHAEFFER to integrate with 0.13.0 */
if (fopimage.isTransparent()) {
PDFColor transp = fopimage.getTransparentColor();
p = p + "/Mask [" + transp.red255() + " " + transp.red255() + " " + transp.green255() + " " + transp.green255() + " " + transp.blue255() + " " + transp.blue255() + "]\n";
- }
+ }
p = p + dictEntries;
p = p + ">>\n";