|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.vex.layout.AbstractBox | +--net.sf.vex.layout.CompositeInlineBox | +--net.sf.vex.layout.LineBox
Represents a line of text and inline images.
Nested Class Summary |
Nested classes inherited from class net.sf.vex.layout.InlineBox |
InlineBox.Pair |
Constructor Summary | |
LineBox(LayoutContext context,
Element element,
InlineBox[] children)
Class constructor. |
Method Summary | |
boolean |
canBreakAtEnd()
Returns true if a line break can occur after this box. |
int |
getBaseline()
Returns the distance from the top of the inline box to the baseline. |
Box[] |
getChildren()
Returns an array of this box's children. |
Element |
getElement()
Returns the Element with which this box is associated, or null if there is no such box. |
int |
getEndOffset()
Returns the offset of the end of the content that the box covers. |
int |
getStartOffset()
Returns the offset of the start of the content that the box covers. |
boolean |
hasContent()
Returns true if this box represents a portion of the XML document's content. |
InlineBox.Pair |
split(LayoutContext context,
InlineBox[] lefts,
InlineBox[] rights)
Creates a Pair of InlineBoxes, each with its own set of children. |
java.lang.String |
toString()
|
Methods inherited from class net.sf.vex.layout.CompositeInlineBox |
getCaretShapes, split, viewToModel |
Methods inherited from class net.sf.vex.layout.AbstractBox |
containsOffset, getHeight, getWidth, getX, getY, paint, setHeight, setWidth, setX, setY, skipPaint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.vex.layout.Box |
containsOffset, getHeight, getWidth, getX, getY, paint, setX, setY |
Constructor Detail |
public LineBox(LayoutContext context, Element element, InlineBox[] children)
context
- LayoutContext for this layout.children
- InlineBoxes that make up this line.Method Detail |
public boolean canBreakAtEnd()
InlineBox
InlineBox.canBreakAtEnd()
public int getBaseline()
InlineBox
InlineBox.getBaseline()
public Box[] getChildren()
Box
getChildren
in interface Box
getChildren
in class AbstractBox
Box.getChildren()
public Element getElement()
Box
getElement
in interface Box
getElement
in class AbstractBox
Box.getElement()
public int getEndOffset()
Box
getEndOffset
in interface Box
getEndOffset
in class AbstractBox
Box.getEndOffset()
public int getStartOffset()
Box
getStartOffset
in interface Box
getStartOffset
in class AbstractBox
Box.getStartOffset()
public boolean hasContent()
Box
hasContent
in interface Box
hasContent
in class AbstractBox
Box.hasContent()
public InlineBox.Pair split(LayoutContext context, InlineBox[] lefts, InlineBox[] rights)
CompositeInlineBox
split
in class CompositeInlineBox
context
- LayoutContext used for this layout.lefts
- Child boxes to be given to the left box.rights
- Child boxes to be given to the right box.
CompositeInlineBox.split(net.sf.vex.layout.LayoutContext, net.sf.vex.layout.InlineBox[], net.sf.vex.layout.InlineBox[])
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |