super(w, pos, bAux);
}
+ /** @see org.apache.fop.layoutmgr.KnuthElement#isBox() */
public boolean isBox() {
return true;
}
+ /** @see java.lang.Object#toString() */
+ public String toString() {
+ StringBuffer sb = new StringBuffer(64);
+ if (isAuxiliary()) {
+ sb.append("aux. ");
+ }
+ sb.append("box");
+ sb.append(" w=");
+ sb.append(getW());
+ return sb.toString();
+ }
+
}
adjustmentClass = iAdjClass;
}
+ /** @see org.apache.fop.layoutmgr.KnuthElement#isGlue() */
public boolean isGlue() {
return true;
}
- /**
- * Return the stretchability of this glue.
- */
+ /** @return the stretchability of this glue. */
public int getY() {
return stretchability;
}
- /**
- * Return the shrinkability of this glue.
- */
+ /** @return the shrinkability of this glue. */
public int getZ() {
return shrinkability;
}
+ /** @return the adjustment class (or role) of this glue. */
public int getAdjustmentClass() {
return adjustmentClass;
}
+ /** @see java.lang.Object#toString() */
+ public String toString() {
+ StringBuffer sb = new StringBuffer(64);
+ if (isAuxiliary()) {
+ sb.append("aux. ");
+ }
+ sb.append("glue");
+ sb.append(" w=").append(getW());
+ sb.append(" stretch=").append(getY());
+ sb.append(" shrink=").append(getZ());
+ if (getAdjustmentClass() >= 0) {
+ sb.append(" adj-class=").append(getAdjustmentClass());
+ }
+ return sb.toString();
+ }
+
}
return breakClass;
}
+ /** @see java.lang.Object#toString() */
+ public String toString() {
+ StringBuffer sb = new StringBuffer(64);
+ if (isAuxiliary()) {
+ sb.append("aux. ");
+ }
+ sb.append("penalty");
+ sb.append(" p=");
+ if (getP() < 0) {
+ sb.append("-");
+ }
+ if (Math.abs(getP()) == INFINITE) {
+ sb.append("INFINITE");
+ } else {
+ sb.append(getP());
+ }
+ if (isFlagged()) {
+ sb.append(" [flagged]");
+ }
+ sb.append(" w=");
+ sb.append(getW());
+ if (isForcedBreak()) {
+ sb.append(" (forced break)");
+ }
+ return sb.toString();
+ }
+
}