Revision: 7815
Author: victormote
Date: 2006-07-23 10:19:43 -0700 (Sun, 23 Jul 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7815&view=rev
Log Message:
-----------
Implement standard use of final modifier on local variable and method parameters.
Modified Paths:
--------------
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractFlow.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractTableBody.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Float.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Flow.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Footnote.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/FootnoteBody.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InitialPropertySet.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Inline.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InlineContainer.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/InstreamForeignObject.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/LayoutMasterSet.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Leader.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListBlock.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItem.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemBody.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ListItemLabel.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Marker.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiCase.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiProperties.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiPropertySet.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiSwitch.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/MultiToggle.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageMasterReference.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumber.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberCitation.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageNumberGenerator.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequence.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/PageSequenceMaster.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Region.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionAfter.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBefore.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionBody.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionEnd.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RegionStart.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMAlternatives.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RepeatablePMReference.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/RetrieveMarker.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Root.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SimplePageMaster.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/SinglePageMasterReference.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/StaticContent.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Table.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableAndCaption.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableBody.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCaption.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableCell.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableColumn.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableFooter.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableHeader.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/TableRow.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Title.java
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Wrapper.java
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractFlow.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractFlow.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractFlow.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -32,8 +32,9 @@
public abstract class AbstractFlow extends FObj {
- protected AbstractFlow(FObj parent, PropertyList propertyList,
- String systemId, int line, int column) throws FOTreeException {
+ protected AbstractFlow(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
if (! (parent instanceof PageSequence)) {
throwException(getFullName() + " must be child of "
@@ -42,7 +43,7 @@
}
protected void start() throws FOTreeException {
- String name = traitFlowName();
+ final String name = traitFlowName();
if (name == null || name.equals("")) {
throwException(getFullName() + "requires a 'flow-name'.");
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractTableBody.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractTableBody.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/AbstractTableBody.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -33,8 +33,9 @@
public abstract class AbstractTableBody extends FObj
implements org.axsl.foR.fo.AbstractTableBody {
- public AbstractTableBody(FObj parent, PropertyList propertyList,
- String systemId, int line, int column) throws FOTreeException {
+ public AbstractTableBody(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
if (! (parent instanceof Table)) {
throwException(getFullName() + " must be child of fo:table.");
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -33,8 +33,9 @@
public class BasicLink extends Inline implements org.axsl.foR.fo.BasicLink {
- public BasicLink(FObj parent, PropertyList propertyList,
- String systemId, int line, int column) throws FOTreeException {
+ public BasicLink(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
}
@@ -66,7 +67,7 @@
/**
* Override the FONode method, because "this" is the object being sought.
*/
- public org.axsl.foR.fo.BasicLink getBasicLink(FOContext context) {
+ public org.axsl.foR.fo.BasicLink getBasicLink(final FOContext context) {
return this;
}
@@ -118,7 +119,7 @@
/**
* {@inheritDoc}
*/
- public String refIdNeeded(FOContext context) {
+ public String refIdNeeded(final FOContext context) {
return traitInternalDestination();
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BidiOverride.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -37,8 +37,9 @@
public class BidiOverride extends FObj
implements org.axsl.foR.fo.BidiOverride {
- public BidiOverride(FObj parent, PropertyList propertyList,
- String systemId, int line, int column) throws FOTreeException {
+ public BidiOverride(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
}
@@ -54,7 +55,7 @@
return true;
}
- public FONodeProxy makeProxy(ProxyFactory factory) {
+ public FONodeProxy makeProxy(final ProxyFactory factory) {
return factory.makeProxy(this);
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Block.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -42,8 +42,9 @@
public class Block extends FObjMixed implements org.axsl.foR.fo.Block {
- public Block(FObj parent, PropertyList propertyList, String systemId,
- int line, int column) throws FOTreeException {
+ public Block(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
}
@@ -58,7 +59,7 @@
/**
* Overrides the method in FObj, because this is the containing block.
*/
- public org.axsl.foR.fo.Block getContainingBlock(FOContext context) {
+ public org.axsl.foR.fo.Block getContainingBlock(final FOContext context) {
return this;
}
@@ -98,9 +99,9 @@
* @return The List of this block's logical blocks, as defined.
*/
public List getLogicalBlocks() {
- ArrayList outsideList = new ArrayList();
+ final ArrayList outsideList = new ArrayList();
ArrayList insideList = new ArrayList();
- Stack stack = new Stack();
+ final Stack stack = new Stack();
/*
* Place the children on the stack in reverse order (last item on the
* bottom, first on the top).
@@ -109,13 +110,13 @@
stack.push(getChildren().get(i));
}
while (! stack.isEmpty()) {
- FONode node = (FONode) stack.pop();
+ final FONode node = (FONode) stack.pop();
// FOText is always a leaf. Include in list.
if (node instanceof FOText) {
insideList.add(node);
continue;
}
- FObj fobj = (FObj) node;
+ final FObj fobj = (FObj) node;
/* Block-type content is a special case. Include it in list instead
* of its descendants. */
if (fobj.isContentBlock()) {
@@ -126,7 +127,7 @@
outsideList.add(node);
continue;
}
- List children = fobj.getChildren();
+ final List children = fobj.getChildren();
// If there are no children, it is a leaf. Include in list.
if (children == null || children.size() < 1) {
insideList.add(node);
@@ -151,7 +152,7 @@
return true;
}
- public FONodeProxy makeProxy(ProxyFactory factory) {
+ public FONodeProxy makeProxy(final ProxyFactory factory) {
return factory.makeProxy(this);
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BlockContainer.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -35,8 +35,9 @@
public class BlockContainer extends FObj
implements org.axsl.foR.fo.BlockContainer {
- public BlockContainer(FObj parent, PropertyList propertyList,
- String systemId, int line, int column) throws FOTreeException {
+ public BlockContainer(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
}
@@ -61,7 +62,7 @@
return true;
}
- public FONodeProxy makeProxy(ProxyFactory factory) {
+ public FONodeProxy makeProxy(final ProxyFactory factory) {
return factory.makeProxy(this);
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Bookmark.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -38,8 +38,9 @@
* An fo:bookmark object in XSL-FO.
*/
public class Bookmark extends FObj implements org.axsl.foR.fo.Bookmark {
- public Bookmark(FObj parent, PropertyList propertyList, String systemId,
- int line, int column) throws FOTreeException {
+ public Bookmark(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
/*
* Validate that this is a child of either fo:bookmark-tree or
@@ -53,12 +54,12 @@
}
public void start() throws FOTreeException {
- String _internalDestination = this.traitInternalDestination();
+ final String _internalDestination = this.traitInternalDestination();
if (_internalDestination == null || _internalDestination.equals("")) {
getLogger().warn(getFullName()
+ "requires an internal-destination.");
}
- String _externalDestination = this.traitExternalDestination();
+ final String _externalDestination = this.traitExternalDestination();
if (_externalDestination != null &&!_externalDestination.equals("")) {
getLogger().warn(getFullName()
+ "external-destination not supported currently.");
@@ -75,7 +76,7 @@
}
// Validate that all other children are Outline instances.
for (int i = 1; i < children.size(); i++) {
- FObj child = (FObj) children.get(i);
+ final FObj child = (FObj) children.get(i);
if (child instanceof BookmarkTitle) {
throwException("Child fo:bookmark-title not allowed in this "
+ "position.");
@@ -87,7 +88,7 @@
}
}
- public Bookmark getParentOutline(FOContext context) {
+ public Bookmark getParentOutline(final FOContext context) {
for (FONode node = (FONode) getParent();
node != null; node = node.effectiveParent(context)) {
if (node instanceof Bookmark) {
@@ -113,11 +114,11 @@
/**
* {@inheritDoc}
*/
- public String refIdNeeded(FOContext context) {
+ public String refIdNeeded(final FOContext context) {
return traitInternalDestination();
}
- public FONodeProxy makeProxy(ProxyFactory factory) {
+ public FONodeProxy makeProxy(final ProxyFactory factory) {
return factory.makeProxy(this);
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTitle.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -40,8 +40,9 @@
public class BookmarkTitle extends FObjMixed
implements org.axsl.foR.fo.BookmarkTitle {
- public BookmarkTitle(FObj parent, PropertyList propertyList,
- String systemId, int line, int column) throws FOTreeException {
+ public BookmarkTitle(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
}
@@ -82,7 +83,7 @@
return false;
}
- public FONodeProxy makeProxy(ProxyFactory factory) {
+ public FONodeProxy makeProxy(final ProxyFactory factory) {
return factory.makeProxy(this);
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BookmarkTree.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -38,8 +38,9 @@
public class BookmarkTree extends FObj
implements org.axsl.foR.fo.BookmarkTree {
- public BookmarkTree(FObj parent, PropertyList propertyList,
- String systemId, int line, int column) throws FOTreeException {
+ public BookmarkTree(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
// Validate that this is a child of fo:root.
if (! (parent instanceof Root)) {
@@ -50,7 +51,7 @@
public void end() throws FOTreeException {
// Validate that all children are Bookmark instances.
for (int i = 1; i < children.size(); i++) {
- FObj child = (FObj) children.get(i);
+ final FObj child = (FObj) children.get(i);
if (! (child instanceof Bookmark)) {
throwException(child.getFullName() + " cannot be child of "
+ this.getFullName());
@@ -66,7 +67,7 @@
return this.getFOTreeBuilder().getFONamespace();
}
- public FONodeProxy makeProxy(ProxyFactory factory) {
+ public FONodeProxy makeProxy(final ProxyFactory factory) {
return factory.makeProxy(this);
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Character.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -39,8 +39,9 @@
*/
public class Character extends FObj implements org.axsl.foR.fo.Character {
- public Character(FObj parent, PropertyList propertyList, String systemId,
- int line, int column) throws FOTreeException {
+ public Character(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
}
@@ -57,24 +58,24 @@
}
public void start() throws FOTreeException {
- char c = traitCharacter();
+ final char c = traitCharacter();
if (c == org.foray.fotree.fo.prop.Character.CHARACTER_NOT_SPECIFIED) {
throwException("Property \"character\" is required.");
}
/* This is a duplication of data, but is deemed acceptable at the
* moment, because it is expected that use of fo:character will normally
* be very limited. */
- char[] chars = new char[] {c};
- FOText text = new FOText(this, chars);
+ final char[] chars = new char[] {c};
+ final FOText text = new FOText(this, chars);
super.addChild(text);
}
- public char[] getAreaTreeText(FOContext context) {
- FOText text = (FOText) this.children.get(0);
+ public char[] getAreaTreeText(final FOContext context) {
+ final FOText text = (FOText) this.children.get(0);
return text.getAreaTreeText(context);
}
- public FONodeProxy makeProxy(ProxyFactory factory) {
+ public FONodeProxy makeProxy(final ProxyFactory factory) {
return factory.makeProxy(this);
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ColorProfile.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -36,8 +36,9 @@
public class ColorProfile extends FObj
implements org.axsl.foR.fo.ColorProfile {
- public ColorProfile(FObj parent, PropertyList propertyList, String systemId,
- int line, int column) throws FOTreeException {
+ public ColorProfile(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
logWarning(getFullName() + " not implemented.");
}
@@ -50,7 +51,7 @@
return this.getFOTreeBuilder().getFONamespace();
}
- public FONodeProxy makeProxy(ProxyFactory factory) {
+ public FONodeProxy makeProxy(final ProxyFactory factory) {
return factory.makeProxy(this);
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ConditionalPageMasterReference.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -41,9 +41,9 @@
*/
public class ConditionalPageMasterReference extends FObj {
- public ConditionalPageMasterReference(FObj parent,
- PropertyList propertyList, String systemId, int line, int column)
- throws FOTreeException {
+ public ConditionalPageMasterReference(final FObj parent,
+ final PropertyList propertyList, final String systemId,
+ final int line, final int column) throws FOTreeException {
super(parent, propertyList, systemId, line, column);
/* Validate ancestry. */
if (! (parent instanceof RepeatablePMAlternatives)) {
@@ -73,9 +73,9 @@
return (RepeatablePMAlternatives) this.parentFO();
}
- protected boolean isValid(boolean isOddPage, boolean isFirstPage,
- boolean isEmptyPage) {
- int pagePosition = traitPagePosition();
+ protected boolean isValid(final boolean isOddPage,
+ final boolean isFirstPage, final boolean isEmptyPage) {
+ final int pagePosition = traitPagePosition();
if (isFirstPage) {
if (pagePosition == Constants.FOVAL_REST) {
return false;
@@ -124,7 +124,7 @@
return this.getFOTreeBuilder().getFONamespace();
}
- public FONodeProxy makeProxy(ProxyFactory factory) {
+ public FONodeProxy makeProxy(final ProxyFactory factory) {
return factory.makeProxy(this);
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/Declarations.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -36,8 +36,9 @@
public class Declarations extends FObj
implements org.axsl.foR.fo.Declarations {
- public Declarations(FObj parent, PropertyList propertyList,
- String systemId, int line, int column) throws FOTreeException {
+ public Declarations(final FObj parent,final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
}
@@ -49,7 +50,7 @@
return this.getFOTreeBuilder().getFONamespace();
}
- public FONodeProxy makeProxy(ProxyFactory factory) {
+ public FONodeProxy makeProxy(final ProxyFactory factory) {
return factory.makeProxy(this);
}
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java 2006-07-23 14:56:47 UTC (rev 7814)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/ExternalGraphic.java 2006-07-23 17:19:43 UTC (rev 7815)
@@ -58,8 +58,9 @@
* computations. */
protected int pixelsPerInch = 96;
- public ExternalGraphic(FObj parent, PropertyList propertyList,
- String systemId, int line, int column) throws FOTreeException {
+ public ExternalGraphic(final FObj parent, final PropertyList propertyList,
+ final String systemId, final int line, final int column)
+ throws FOTreeException {
super(parent, propertyList, systemId, line, column);
}
@@ -78,14 +79,14 @@
/**
* @return The resolved Graphic instance encapsulated by this FO.
*/
- public Graphic getGraphic(FOContext context) {
+ public Graphic getGraphic(final FOContext context) {
if (this.graphic == null && ! makeGraphicAttempted) {
makeGraphicAttempted = true;
try {
this.graphic = getGraphicServer().makeGraphic(traitSrc(context),
getFOTreeBuilder().getGraphicSearchPath(),
getFOTreeBuilder().getCachingGraphics());
- } catch (GraphicException e) {
+ } catch (final GraphicException e) {
getLogger().error(e.getMessage() + "\n"
+ this.getContextMessage());
}
@@ -96,7 +97,7 @@
/**
* {@inheritDoc}
*/
- protected int intrinsicContentWidth(FOContext context) {
+ protected int intrinsicContentWidth(final FOContext context) {
if (getGraphic(context) == null) {
return Constants.DIMENSION_AUTO;
}
@@ -107,7 +108,7 @@
/* Use conversion formula 1 pixel = 1/96 inch. See XSL-FO Standard
* 1.0, Section 6.6.5, where this formula is suggested. */
return pixelsToMillipoints(getGraphic(context).pixelWidth(), 96);
- } catch (GraphicException e) {
+ } catch (final GraphicException e) {
return Constants.DIMENSION_AUTO;
}
}
@@ -115,7 +116,7 @@
/**
* {@inheritDoc}
*/
- protected int intrinsicContentHeight(FOContext context) {
+ protected int intrinsicContentHeight(final FOContext context) {
if (getGraphic(context) == null) {
return Constants.DIMENSION_AUTO;
}
@@ -126,20 +127,20 @@
/* Use conversion formula 1 pixel = 1/96 inch. See XSL-FO Standard
* 1.0, Section 6.6.5, where this formula is suggested. */
return pixelsToMillipoints(getGraphic(context).pixelHeight(), 96);
- } catch (GraphicException e) {
+ } catch (final GraphicException e) {
return Constants.DIMENSION_AUTO;
}
}
- public FONodeProxy makeProxy(ProxyFactory factory) {
+ public FONodeProxy makeProxy(final ProxyFactory factory) {
return factory.makeProxy(this);
}
/**
* {@inheritDoc}
*/
- public FOLineNonText getContextWrapper(FOContext context) {
- org.axsl.foR.fo.Marker marker = this.ancestorMarker();
+ public FOLineNonText getContextWrapper(final FOContext context) {
+ final org.axsl.foR.fo.Marker marker = this.ancestorMarker();
if (marker == null) {
return this;
}
@@ -161,42 +162,45 @@
return null;
}
- public int inlineSizeOptimum(int lineLength) {
+ public int inlineSizeOptimum(final int lineLength) {
return inlineSizeOptimum(null, lineLength);
}
/**
* {@inheritDoc}
*/
- public int inlineSizeOptimum(FOContext context, int lineLength) {
+ public int inlineSizeOptimum(final FOContext context,
+ final int lineLength) {
return this.viewportIPD(context, lineLength);
...
[truncated message content] |