diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2009-10-15 20:43:13 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2009-10-15 20:43:13 +0000 |
commit | 3938e8f60e96809fbdafacf5d96e3325d3452289 (patch) | |
tree | 0cabf583e4660f6ce0d42a549ec2a06690194bd8 /src/java/org/apache/fop/layoutmgr/KnuthGlue.java | |
parent | ea58935a59a651eba814fc0eb4d16d0e2a972d97 (diff) | |
download | xmlgraphics-fop-3938e8f60e96809fbdafacf5d96e3325d3452289.tar.gz xmlgraphics-fop-3938e8f60e96809fbdafacf5d96e3325d3452289.zip |
Application of the patch submitted by Alexander Kiel to improve variable names around Kerning and KnuthElement (see https://issues.apache.org/bugzilla/show_bug.cgi?id=48003).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@825646 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/KnuthGlue.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/KnuthGlue.java | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/KnuthGlue.java b/src/java/org/apache/fop/layoutmgr/KnuthGlue.java index fbb291f6b..7533a4117 100644 --- a/src/java/org/apache/fop/layoutmgr/KnuthGlue.java +++ b/src/java/org/apache/fop/layoutmgr/KnuthGlue.java @@ -54,24 +54,25 @@ public class KnuthGlue extends KnuthElement { /** * Create a new KnuthGlue. * - * @param w the width of this glue - * @param y the stretchability of this glue - * @param z the shrinkability of this glue + * @param width the width of this glue + * @param stretchability the stretchability of this glue + * @param shrinkability the shrinkability of this glue * @param pos the Position stored in this glue - * @param bAux is this glue auxiliary? + * @param auxiliary is this glue auxiliary? */ - public KnuthGlue(int w, int y, int z, Position pos, boolean bAux) { - super(w, pos, bAux); - stretchability = y; - shrinkability = z; + public KnuthGlue(int width, int stretchability, int shrinkability, Position pos, + boolean auxiliary) { + super(width, pos, auxiliary); + this.stretchability = stretchability; + this.shrinkability = shrinkability; } - public KnuthGlue(int w, int y, int z, - int iAdjClass, Position pos, boolean bAux) { - super(w, pos, bAux); - stretchability = y; - shrinkability = z; - adjustmentClass = iAdjClass; + public KnuthGlue(int width, int stretchability, int shrinkability, int adjustmentClass, + Position pos, boolean auxiliary) { + super(width, pos, auxiliary); + this.stretchability = stretchability; + this.shrinkability = shrinkability; + this.adjustmentClass = adjustmentClass; } /** {@inheritDoc} */ @@ -80,12 +81,12 @@ public class KnuthGlue extends KnuthElement { } /** @return the stretchability of this glue. */ - public int getY() { + public int getStretch() { return stretchability; } /** @return the shrinkability of this glue. */ - public int getZ() { + public int getShrink() { return shrinkability; } @@ -96,18 +97,18 @@ public class KnuthGlue extends KnuthElement { /** {@inheritDoc} */ public String toString() { - StringBuffer sb = new StringBuffer(64); + StringBuffer buffer = new StringBuffer(64); if (isAuxiliary()) { - sb.append("aux. "); + buffer.append("aux. "); } - sb.append("glue"); - sb.append(" w=").append(getW()); - sb.append(" stretch=").append(getY()); - sb.append(" shrink=").append(getZ()); + buffer.append("glue"); + buffer.append(" w=").append(getWidth()); + buffer.append(" stretch=").append(getStretch()); + buffer.append(" shrink=").append(getShrink()); if (getAdjustmentClass() >= 0) { - sb.append(" adj-class=").append(getAdjustmentClass()); + buffer.append(" adj-class=").append(getAdjustmentClass()); } - return sb.toString(); + return buffer.toString(); } } |