aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/afp/modca
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/afp/modca')
-rw-r--r--src/java/org/apache/fop/afp/modca/GraphicsObject.java2
-rw-r--r--src/java/org/apache/fop/afp/modca/IncludePageOverlay.java4
-rw-r--r--src/java/org/apache/fop/afp/modca/IncludePageSegment.java8
-rw-r--r--src/java/org/apache/fop/afp/modca/InterchangeSet.java28
-rw-r--r--src/java/org/apache/fop/afp/modca/InvokeMediumMap.java2
-rw-r--r--src/java/org/apache/fop/afp/modca/MapPageOverlay.java4
-rw-r--r--src/java/org/apache/fop/afp/modca/PageSegment.java16
-rw-r--r--src/java/org/apache/fop/afp/modca/TagLogicalElement.java6
-rw-r--r--src/java/org/apache/fop/afp/modca/TagLogicalElementBean.java6
9 files changed, 38 insertions, 38 deletions
diff --git a/src/java/org/apache/fop/afp/modca/GraphicsObject.java b/src/java/org/apache/fop/afp/modca/GraphicsObject.java
index 11af83cab..0c3781be1 100644
--- a/src/java/org/apache/fop/afp/modca/GraphicsObject.java
+++ b/src/java/org/apache/fop/afp/modca/GraphicsObject.java
@@ -386,7 +386,7 @@ public class GraphicsObject extends AbstractDataObject {
/** the internal graphics state */
private static final class GraphicsState {
-
+
private GraphicsState() {
}
diff --git a/src/java/org/apache/fop/afp/modca/IncludePageOverlay.java b/src/java/org/apache/fop/afp/modca/IncludePageOverlay.java
index 44f0edc5b..5a3d13f61 100644
--- a/src/java/org/apache/fop/afp/modca/IncludePageOverlay.java
+++ b/src/java/org/apache/fop/afp/modca/IncludePageOverlay.java
@@ -56,7 +56,7 @@ public class IncludePageOverlay extends AbstractNamedAFPObject {
/**
* Constructor for the Include Page Overlay
- *
+ *
* @param overlayName Name of the page segment
* @param x The x position
* @param y The y position
@@ -64,7 +64,7 @@ public class IncludePageOverlay extends AbstractNamedAFPObject {
*/
public IncludePageOverlay(String overlayName, int x, int y, int orientation) {
super(overlayName);
-
+
this.x = x;
this.y = y;
setOrientation(orientation);
diff --git a/src/java/org/apache/fop/afp/modca/IncludePageSegment.java b/src/java/org/apache/fop/afp/modca/IncludePageSegment.java
index 7355e3b1a..c6eceafea 100644
--- a/src/java/org/apache/fop/afp/modca/IncludePageSegment.java
+++ b/src/java/org/apache/fop/afp/modca/IncludePageSegment.java
@@ -46,22 +46,22 @@ public class IncludePageSegment extends AbstractNamedAFPObject {
* The x position where we need to put this object on the page
*/
private int x;
-
+
/**
* The y position where we need to put this object on the page
*/
private int y;
-
+
/**
* Constructor for the Include Page Segment
- *
+ *
* @param name Name of the page segment
* @param x The x position
* @param y The y position
*/
public IncludePageSegment(String name, int x, int y) {
super(name);
-
+
this.x = x;
this.y = y;
}
diff --git a/src/java/org/apache/fop/afp/modca/InterchangeSet.java b/src/java/org/apache/fop/afp/modca/InterchangeSet.java
index f4b020239..35919af15 100644
--- a/src/java/org/apache/fop/afp/modca/InterchangeSet.java
+++ b/src/java/org/apache/fop/afp/modca/InterchangeSet.java
@@ -5,9 +5,9 @@
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -25,10 +25,10 @@ package org.apache.fop.afp.modca;
public class InterchangeSet {
/** interchange set 1 string value */
public static final String MODCA_PRESENTATION_INTERCHANGE_SET_1 = "MO:DCA-P IS/1";
-
+
/** interchange set 2 string value */
public static final String MODCA_PRESENTATION_INTERCHANGE_SET_2 = "MO:DCA-P IS/2";
-
+
/** resource interchange set string value */
public static final String MODCA_RESOURCE_INTERCHANGE_SET = "MO:DCA-L";
@@ -47,7 +47,7 @@ public class InterchangeSet {
/**
* Returns the interchange set value of a given string
- *
+ *
* @param str an interchange set value
* @return an interchange set
*/
@@ -65,7 +65,7 @@ public class InterchangeSet {
/**
* Main constructor
- *
+ *
* @param value the interchange set value
*/
public InterchangeSet(int value) {
@@ -74,39 +74,39 @@ public class InterchangeSet {
/**
* Returns true if complies with MOD:CA interchange set 1
- *
+ *
* @return true if complies with MOD:CA interchange set 1
*/
protected boolean is1() {
return value == SET_1;
}
-
+
/**
* Returns true if complies with MOD:CA interchange set 2
- *
+ *
* @return true if complies with MOD:CA interchange set 2
*/
public boolean is2() {
return value == SET_2;
}
-
+
/**
* Returns true if complies with MOD:CA resource set
- *
+ *
* @return true if complies with MOD:CA resource set
*/
public boolean isResource() {
return value == RESOURCE_SET;
}
-
+
/** {@inheritDoc} */
public String toString() {
return NAMES[value];
}
-
+
/**
* Returns true if MOD:CA interchange set 2 (resource groups) is supported
- *
+ *
* @return true if MOD:CA interchange set 2 (resource groups) is supported
*/
public boolean supportsLevel2() {
diff --git a/src/java/org/apache/fop/afp/modca/InvokeMediumMap.java b/src/java/org/apache/fop/afp/modca/InvokeMediumMap.java
index f910a0b9c..02031003b 100644
--- a/src/java/org/apache/fop/afp/modca/InvokeMediumMap.java
+++ b/src/java/org/apache/fop/afp/modca/InvokeMediumMap.java
@@ -34,7 +34,7 @@ public class InvokeMediumMap extends AbstractNamedAFPObject {
/**
* Constructor for the Invoke Medium Map
- *
+ *
* @param name the name of the medium map
*/
public InvokeMediumMap(String name) {
diff --git a/src/java/org/apache/fop/afp/modca/MapPageOverlay.java b/src/java/org/apache/fop/afp/modca/MapPageOverlay.java
index 6f5855c93..cf22e3502 100644
--- a/src/java/org/apache/fop/afp/modca/MapPageOverlay.java
+++ b/src/java/org/apache/fop/afp/modca/MapPageOverlay.java
@@ -35,7 +35,7 @@ import org.apache.fop.afp.util.BinaryUtils;
public class MapPageOverlay extends AbstractAFPObject {
private static final int MAX_SIZE = 253;
-
+
/**
* The collection of overlays (maximum of 254 stored as byte[])
*/
@@ -53,7 +53,7 @@ public class MapPageOverlay extends AbstractAFPObject {
}
return this.overLays;
}
-
+
/**
* Add an overlay to to the map page overlay object.
*
diff --git a/src/java/org/apache/fop/afp/modca/PageSegment.java b/src/java/org/apache/fop/afp/modca/PageSegment.java
index b765d6c2f..333608d7f 100644
--- a/src/java/org/apache/fop/afp/modca/PageSegment.java
+++ b/src/java/org/apache/fop/afp/modca/PageSegment.java
@@ -5,9 +5,9 @@
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -32,10 +32,10 @@ import java.util.List;
public class PageSegment extends AbstractNamedAFPObject {
private List/*<AbstractAFPObject>*/ objects = null;
-
+
/**
* Main constructor
- *
+ *
* @param name the name of this object
*/
public PageSegment(String name) {
@@ -44,7 +44,7 @@ public class PageSegment extends AbstractNamedAFPObject {
/**
* Returns a list of objects contained withing this page segment
- *
+ *
* @return a list of objects contained within this page segment
*/
public List/*<AbstractAFPObject>*/ getObjects() {
@@ -56,13 +56,13 @@ public class PageSegment extends AbstractNamedAFPObject {
/**
* Adds a resource object (image/graphic) to this page segment
- *
+ *
* @param object the resource objec to add to this page segment
*/
public void addObject(AbstractAFPObject object) {
getObjects().add(object);
}
-
+
/** {@inheritDoc} */
protected void writeStart(OutputStream os) throws IOException {
byte[] data = new byte[17];
@@ -82,7 +82,7 @@ public class PageSegment extends AbstractNamedAFPObject {
copySF(data, Type.END, Category.PAGE_SEGMENT);
os.write(data);
}
-
+
/** {@inheritDoc} */
public String toString() {
return this.name;
diff --git a/src/java/org/apache/fop/afp/modca/TagLogicalElement.java b/src/java/org/apache/fop/afp/modca/TagLogicalElement.java
index 12cb427ef..ab2c52143 100644
--- a/src/java/org/apache/fop/afp/modca/TagLogicalElement.java
+++ b/src/java/org/apache/fop/afp/modca/TagLogicalElement.java
@@ -102,11 +102,11 @@ public class TagLogicalElement extends AbstractTripletStructuredObject {
FullyQualifiedNameTriplet.FORMAT_CHARSTR,
name);
setAttributeValue(value);
- setAttributeQualifier(tleID, 1);
-
+ setAttributeQualifier(tleID, 1);
+
byte[] data = new byte[SF_HEADER.length];
copySF(data, Type.ATTRIBUTE, Category.PROCESS_ELEMENT);
-
+
int tripletDataLength = getTripletDataLength();
byte[] l = BinaryUtils.convert(data.length + tripletDataLength - 1, 2);
data[1] = l[0];
diff --git a/src/java/org/apache/fop/afp/modca/TagLogicalElementBean.java b/src/java/org/apache/fop/afp/modca/TagLogicalElementBean.java
index 5d4523777..923a5d590 100644
--- a/src/java/org/apache/fop/afp/modca/TagLogicalElementBean.java
+++ b/src/java/org/apache/fop/afp/modca/TagLogicalElementBean.java
@@ -34,7 +34,7 @@ public class TagLogicalElementBean {
/**
* Constructor for the TagLogicalElementBean.
- *
+ *
* @param key the key attribute
* @param value the value attribute
*/
@@ -45,7 +45,7 @@ public class TagLogicalElementBean {
/**
* Getter for the key attribute.
- *
+ *
* @return the key
*/
public String getKey() {
@@ -54,7 +54,7 @@ public class TagLogicalElementBean {
/**
* Getter for the value attribute.
- *
+ *
* @return the value
*/
public String getValue() {