aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/pdf/PDFShading.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/pdf/PDFShading.java')
-rw-r--r--src/org/apache/fop/pdf/PDFShading.java60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/org/apache/fop/pdf/PDFShading.java b/src/org/apache/fop/pdf/PDFShading.java
index 07a033702..436ff8447 100644
--- a/src/org/apache/fop/pdf/PDFShading.java
+++ b/src/org/apache/fop/pdf/PDFShading.java
@@ -8,7 +8,7 @@
package org.apache.fop.pdf;
// Java...
-import java.util.ArrayList;
+import java.util.List;
/**
* class representing a PDF Smooth Shading object.
@@ -43,12 +43,12 @@ public class PDFShading extends PDFObject {
* The background color. Since shading is opaque,
* this is very rarely used.
*/
- protected ArrayList background = null;
+ protected List background = null;
/**
- * Optional: A ArrayList specifying the clipping rectangle
+ * Optional: A List specifying the clipping rectangle
*/
- protected ArrayList bBox = null;
+ protected List bBox = null;
/**
* Optional: A flag whether or not to filter the shading function
@@ -62,12 +62,12 @@ public class PDFShading extends PDFObject {
* Optional for Type 3: An array of two numbers between which the blend varies between start and end points. Default is 0, 1.
*/
- protected ArrayList domain = null;
+ protected List domain = null;
/**
* Optional for Type 1: A transformation matrix
*/
- protected ArrayList matrix = null;
+ protected List matrix = null;
/**
* Required for Type 1, 2, and 3:
@@ -81,14 +81,14 @@ public class PDFShading extends PDFObject {
* Required for Type 3: An Array of six numbers [x0,y0,r0,x1,y1,r1] specifying the centers and radii of
* the starting and ending circles.
*/
- protected ArrayList coords = null;
+ protected List coords = null;
/**
* Required for Type 2+3: An Array of two boolean values specifying whether to extend the
* start and end colors past the start and end points,
* respectively. Default is false, false.
*/
- protected ArrayList extend = null;
+ protected List extend = null;
/**
* Required for Type 4,5,6, and 7: Specifies the number of bits used to represent each vertex coordinate.
@@ -107,7 +107,7 @@ public class PDFShading extends PDFObject {
* Each type has a differing number of decode array members, so check the spec.
* Page 303 in PDF Spec 1.3
*/
- protected ArrayList decode = null;
+ protected List decode = null;
/**
* Required for Type 4,5,6, and 7: Specifies the number of bits used to represent each color coordinate.
@@ -132,13 +132,13 @@ public class PDFShading extends PDFObject {
* @param theBackground An array of color components appropriate to the
* colorspace key specifying a single color value.
* This key is used by the f operator buy ignored by the sh operator.
- * @param theBBox ArrayList of double's representing a rectangle
+ * @param theBBox List of double's representing a rectangle
* in the coordinate space that is current at the
* time of shading is imaged. Temporary clipping
* boundary.
* @param theAntiAlias Whether or not to anti-alias.
* @param theDomain Optional vector of Doubles specifying the domain.
- * @param theMatrix ArrayList of Doubles specifying the matrix.
+ * @param theMatrix List of Doubles specifying the matrix.
* If it's a pattern, then the matrix maps it to pattern space.
* If it's a shading, then it maps it to current user space.
* It's optional, the default is the identity matrix
@@ -146,9 +146,9 @@ public class PDFShading extends PDFObject {
*/
public PDFShading(int theNumber, String theShadingName,
int theShadingType, PDFColorSpace theColorSpace,
- ArrayList theBackground, ArrayList theBBox,
- boolean theAntiAlias, ArrayList theDomain,
- ArrayList theMatrix, PDFFunction theFunction) {
+ List theBackground, List theBBox,
+ boolean theAntiAlias, List theDomain,
+ List theMatrix, PDFFunction theFunction) {
super(theNumber);
this.shadingName = theShadingName;
this.shadingType = theShadingType; // 1
@@ -174,23 +174,23 @@ public class PDFShading extends PDFObject {
* @param theBackground theBackground An array of color components appropriate to the
* colorspace key specifying a single color value.
* This key is used by the f operator buy ignored by the sh operator.
- * @param theBBox ArrayList of double's representing a rectangle
+ * @param theBBox List of double's representing a rectangle
* in the coordinate space that is current at the
* time of shading is imaged. Temporary clipping
* boundary.
* @param theAntiAlias Default is false
- * @param theCoords ArrayList of four (type 2) or 6 (type 3) Double
- * @param theDomain ArrayList of Doubles specifying the domain
+ * @param theCoords List of four (type 2) or 6 (type 3) Double
+ * @param theDomain List of Doubles specifying the domain
* @param theFunction the Stitching (PDFfunction type 3) function, even if it's stitching a single function
- * @param theExtend ArrayList of Booleans of whether to extend teh start and end colors past the start and end points
+ * @param theExtend List of Booleans of whether to extend teh start and end colors past the start and end points
* The default is [false, false]
*/
public PDFShading(int theNumber, String theShadingName,
int theShadingType, PDFColorSpace theColorSpace,
- ArrayList theBackground, ArrayList theBBox,
- boolean theAntiAlias, ArrayList theCoords,
- ArrayList theDomain, PDFFunction theFunction,
- ArrayList theExtend) {
+ List theBackground, List theBBox,
+ boolean theAntiAlias, List theCoords,
+ List theDomain, PDFFunction theFunction,
+ List theExtend) {
super(theNumber);
this.shadingName = theShadingName;
this.shadingType = theShadingType; // 2 or 3
@@ -219,7 +219,7 @@ public class PDFShading extends PDFObject {
* @param theBackground theBackground An array of color components appropriate to the
* colorspace key specifying a single color value.
* This key is used by the f operator buy ignored by the sh operator.
- * @param theBBox ArrayList of double's representing a rectangle
+ * @param theBBox List of double's representing a rectangle
* in the coordinate space that is current at the
* time of shading is imaged. Temporary clipping
* boundary.
@@ -227,15 +227,15 @@ public class PDFShading extends PDFObject {
* @param theBitsPerCoordinate 1,2,4,8,12,16,24 or 32.
* @param theBitsPerComponent 1,2,4,8,12, and 16
* @param theBitsPerFlag 2,4,8.
- * @param theDecode ArrayList of Doubles see PDF 1.3 spec pages 303 to 312.
+ * @param theDecode List of Doubles see PDF 1.3 spec pages 303 to 312.
* @param theFunction the PDFFunction
*/
public PDFShading(int theNumber, String theShadingName,
int theShadingType, PDFColorSpace theColorSpace,
- ArrayList theBackground, ArrayList theBBox,
+ List theBackground, List theBBox,
boolean theAntiAlias, int theBitsPerCoordinate,
int theBitsPerComponent, int theBitsPerFlag,
- ArrayList theDecode, PDFFunction theFunction) {
+ List theDecode, PDFFunction theFunction) {
super(theNumber);
this.shadingType = theShadingType; // 4,6 or 7
@@ -261,23 +261,23 @@ public class PDFShading extends PDFObject {
* @param theBackground theBackground An array of color components appropriate to the
* colorspace key specifying a single color value.
* This key is used by the f operator buy ignored by the sh operator.
- * @param theBBox ArrayList of double's representing a rectangle
+ * @param theBBox List of double's representing a rectangle
* in the coordinate space that is current at the
* time of shading is imaged. Temporary clipping
* boundary.
* @param theAntiAlias Default is false
* @param theBitsPerCoordinate 1,2,4,8,12,16, 24, or 32
* @param theBitsPerComponent 1,2,4,8,12,24,32
- * @param theDecode ArrayList of Doubles. See page 305 in PDF 1.3 spec.
+ * @param theDecode List of Doubles. See page 305 in PDF 1.3 spec.
* @param theVerticesPerRow number of vertices in each "row" of the lattice.
* @param theFunction The PDFFunction that's mapped on to this shape
* @param theNumber the object number of this PDF object.
*/
public PDFShading(int theNumber, String theShadingName,
int theShadingType, PDFColorSpace theColorSpace,
- ArrayList theBackground, ArrayList theBBox,
+ List theBackground, List theBBox,
boolean theAntiAlias, int theBitsPerCoordinate,
- int theBitsPerComponent, ArrayList theDecode,
+ int theBitsPerComponent, List theDecode,
int theVerticesPerRow, PDFFunction theFunction) {
super(theNumber);
this.shadingName = theShadingName;