private boolean containsEnd(List result) { for (int i = 0; i < result.size(); i++) { Box b = (Box)result.get(i); if (b instanceof InlineLayoutBox) { InlineLayoutBox iB = (InlineLayoutBox)b; if (getElement() == iB.getElement() && iB.isEndsHere()) { return true; } } } return false; }
private boolean containsEnd(List result) { for (int i = 0; i < result.size(); i++) { Box b = (Box)result.get(i); if (b instanceof InlineLayoutBox) { InlineLayoutBox iB = (InlineLayoutBox)b; if (getElement() == iB.getElement() && iB.isEndsHere()) { return true; } } } return false; }
public String toString() { StringBuffer result = new StringBuffer(); result.append("InlineLayoutBox: "); if (getElement() != null) { result.append("<"); result.append(getElement().getNodeName()); result.append("> "); } else { result.append("(anonymous) "); } if (isStartsHere() || isEndsHere()) { result.append("("); if (isStartsHere()) { result.append("S"); } if (isEndsHere()) { result.append("E"); } result.append(") "); } result.append("(baseline="); result.append(_baseline); result.append(") "); result.append("(" + getAbsX() + "," + getAbsY() + ")->(" + getInlineWidth() + " x " + getHeight() + ")"); return result.toString(); }
public String toString() { StringBuffer result = new StringBuffer(); result.append("InlineLayoutBox: "); if (getElement() != null) { result.append("<"); result.append(getElement().getNodeName()); result.append("> "); } else { result.append("(anonymous) "); } if (isStartsHere() || isEndsHere()) { result.append("("); if (isStartsHere()) { result.append("S"); } if (isEndsHere()) { result.append("E"); } result.append(") "); } result.append("(baseline="); result.append(_baseline); result.append(") "); result.append("(" + getAbsX() + "," + getAbsY() + ")->(" + getInlineWidth() + " x " + getHeight() + ")"); return result.toString(); }