*/
MinOptMax stackLimit;
-
/** True if current top-level reference area is spanning. */
boolean bIsSpan;
public int getBaseline() {
return iBaseline;
}
+
+ public String toString() {
+ return "Layout Context:" +
+ "\nStack Limit: \t" + (getStackLimit() == null ? "null" : getStackLimit().toString()) +
+ "\nTrailing Space: \t" + (getTrailingSpace() == null ? "null" : getTrailingSpace().toString()) +
+ "\nLeading Space: \t" + (getLeadingSpace() == null ? "null" : getLeadingSpace().toString()) +
+ "\nReference IPD: \t" + getRefIPD() +
+ "\nSpace Adjust: \t" + getSpaceAdjust() +
+ "\nIPD Adjust: \t" + getIPDAdjust() +
+ "\nLine Height: \t" + getLineHeight() +
+ "\nBaseline: \t" + getBaseline() +
+ "\nResolve Leading Space: \t" + resolveLeadingSpace() +
+ "\nSuppress Leading Space: \t" + suppressLeadingSpace() +
+ "\nIs First Area: \t" + isFirstArea() +
+ "\nStarts New Area: \t" + startsNewArea() +
+ "\nIs Last Area: \t" + isLastArea() +
+ "\nTry Hyphenate: \t" + tryHyphenate();
+ }
}
public class SpaceSpecifier implements Cloneable {
- private boolean bStartsRefArea;
+ private boolean bStartsReferenceArea;
private boolean bHasForcing = false;
private List vecSpaceVals = new java.util.ArrayList();
/**
* Creates a new SpaceSpecifier.
- * @param bStarts true if it starts anew reference area
+ * @param bStarts true if it starts a new reference area
*/
public SpaceSpecifier(boolean bStarts) {
- bStartsRefArea = bStarts;
+ bStartsReferenceArea = bStarts;
}
/**
public Object clone() {
try {
SpaceSpecifier ss = (SpaceSpecifier) super.clone();
+ ss.bStartsReferenceArea = this.bStartsReferenceArea;
+ ss.bHasForcing = this.bHasForcing;
// Clone the vector, but share the objects in it!
ss.vecSpaceVals = new ArrayList();
ss.vecSpaceVals.addAll(this.vecSpaceVals);
* add it to the sequence.
*/
public void addSpace(SpaceVal moreSpace) {
- if (!bStartsRefArea
+ if (!bStartsReferenceArea
|| !moreSpace.isConditional()
|| !vecSpaceVals.isEmpty()) {
if (moreSpace.isForcing()) {
}
return resSpace;
}
+
+ public String toString() {
+ return "Space Specifier (resolved at begin/end of ref. area:):\n" +
+ resolve(false).toString() + "\n" +
+ resolve(true).toString();
+ }
}