public List getElementWithContent() { // inefficient, but the lists in question shouldn't be very long List result = new ArrayList(); BlockBox container = (BlockBox)getLineBox().getParent(); while (true) { List elementBoxes = container.getElementBoxes(getElement()); for (int i = 0; i < elementBoxes.size(); i++) { InlineLayoutBox iB = (InlineLayoutBox)elementBoxes.get(i); iB.addToContentList(result); } if ( ! (container instanceof AnonymousBlockBox) || containsEnd(result)) { break; } container = addFollowingBlockBoxes(container, result); if (container == null) { break; } } return result; }
public List getElementWithContent() { // inefficient, but the lists in question shouldn't be very long List result = new ArrayList(); BlockBox container = (BlockBox)getLineBox().getParent(); while (true) { List elementBoxes = container.getElementBoxes(getElement()); for (int i = 0; i < elementBoxes.size(); i++) { InlineLayoutBox iB = (InlineLayoutBox)elementBoxes.get(i); iB.addToContentList(result); } if ( ! (container instanceof AnonymousBlockBox) || containsEnd(result)) { break; } container = addFollowingBlockBoxes(container, result); if (container == null) { break; } } return result; }
public void calcCanvasLocation() { LineBox lineBox = getLineBox(); setAbsX(lineBox.getAbsX() + getX()); setAbsY(lineBox.getAbsY() + getY()); }
public void calcCanvasLocation() { LineBox lineBox = getLineBox(); setAbsX(lineBox.getAbsX() + getX()); setAbsY(lineBox.getAbsY() + getY()); }
public String calculate(RenderingContext c, FSFunction function, InlineText text) { InlineLayoutBox iB = text.getParent(); LineBox lineBox = iB.getLineBox(); int leaderWidth = iB.getContainingBlockWidth() - iB.getLineBox().getWidth() + text.getWidth(); int count = (int) ((leaderWidth - (2 * spaceWidth)) / valueWidth);
public String calculate(RenderingContext c, FSFunction function, InlineText text) { InlineLayoutBox iB = text.getParent(); LineBox lineBox = iB.getLineBox(); int leaderWidth = iB.getContainingBlockWidth() - iB.getLineBox().getWidth() + text.getWidth(); int count = (int) ((leaderWidth - (2 * spaceWidth)) / valueWidth);
JustificationInfo info = inlineText.getParent().getLineBox().getJustificationInfo(); if(info!=null) { String string = inlineText.getSubstring();
JustificationInfo info = inlineText.getParent().getLineBox().getJustificationInfo(); if(info!=null) { String string = inlineText.getSubstring();
setFont(iB.getStyle().getFSFont(c)); if (inlineText.getParent().getStyle().isTextJustify()) { JustificationInfo info = inlineText.getParent().getLineBox().getJustificationInfo(); if (info != null) { c.getTextRenderer().drawString(
setFont(iB.getStyle().getFSFont(c)); if (inlineText.getParent().getStyle().isTextJustify()) { JustificationInfo info = inlineText.getParent().getLineBox().getJustificationInfo(); if (info != null) { c.getTextRenderer().drawString(