org.xhtmlrenderer.render
Class LineBox
java.lang.Object
org.xhtmlrenderer.render.Box
org.xhtmlrenderer.render.LineBox
- All Implemented Interfaces:
- InlinePaintable, Styleable
public class LineBox
- extends Box
- implements InlinePaintable
A line box contains a single line of text (or other inline content). It
is created during layout. It also tracks floated and absolute content
added while laying out the line.
|
Method Summary |
void |
addAllChildren(List list,
Layer layer)
|
void |
addNonFlowContent(BlockBox box)
|
void |
align(boolean dynamic)
|
void |
analyzePageBreaks(LayoutContext c,
ContentLimitContainer container)
|
void |
calcCanvasLocation()
|
void |
calcChildLocations()
|
void |
checkPagePosition(LayoutContext c,
boolean alwaysBreak)
|
void |
clearSelection(List modified)
|
void |
collectText(RenderingContext c,
StringBuffer buffer)
|
String |
dump(LayoutContext c,
String indent,
int which)
|
void |
exportText(RenderingContext c,
Writer writer)
|
Box |
find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous)
|
InlineText |
findTrailingText()
|
int |
getBaseline()
|
int |
getContentStart()
|
FloatDistances |
getFloatDistances()
|
JustificationInfo |
getJustificationInfo()
|
Rectangle |
getMarginEdge(CssContext cssCtx,
int tx,
int ty)
|
MarkerData |
getMarkerData()
|
List |
getNonFlowContent()
|
Rectangle |
getPaintingClipEdge(CssContext cssCtx)
|
int |
getPaintingHeight()
|
int |
getPaintingTop()
|
Box |
getRestyleTarget()
|
List |
getTextDecorations()
|
boolean |
intersects(CssContext cssCtx,
Shape clip)
NOTE: This method does not consider any children of this box |
boolean |
isContainsBlockLevelContent()
|
boolean |
isContainsContent()
|
boolean |
isContainsDynamicFunction()
|
boolean |
isContainsOnlyBlockLevelContent()
|
boolean |
isContainsVisibleContent()
|
boolean |
isFirstLine()
|
void |
justify()
|
void |
paintInline(RenderingContext c)
|
void |
prunePendingInlineBoxes()
|
void |
reset(LayoutContext c)
|
void |
restyle(LayoutContext c)
|
void |
selectAll()
|
void |
setBaseline(int baseline)
|
void |
setContainsBlockLevelContent(boolean containsBlockLevelContent)
|
void |
setContainsContent(boolean containsContent)
|
void |
setContainsDynamicFunction(boolean containsPageCounter)
|
void |
setContentStart(int contentOffset)
|
void |
setFloatDistances(FloatDistances floatDistances)
|
void |
setMarkerData(MarkerData markerData)
|
void |
setPaintingHeight(int paintingHeight)
|
void |
setPaintingTop(int paintingTop)
|
void |
setTextDecorations(List textDecorations)
|
String |
toString()
|
void |
trimTrailingSpace(LayoutContext c)
|
| Methods inherited from class org.xhtmlrenderer.render.Box |
addAllChildren, addChild, addChildForLayout, calcChildPaintingInfo, calcPaintingInfo, connectChildrenToCurrentLayer, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorder, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildren, getChildrenClipEdge, getContainingBlock, getContainingBlockWidth, getContainingLayer, getContentAreaEdge, getContentWidth, getDocumentParent, getEffBackgroundColor, getEffectiveWidth, getElement, getElementBoxes, getHeight, getIndex, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getNext, getNextSibling, getPadding, getPaddingEdge, getPaddingWidth, getPaintingBorderEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getPrevious, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRightMBP, getState, getStyle, getStyleMargin, getStyleMargin, getTx, getTy, getWidth, getX, getY, initContainingLayer, isAnonymous, isBody, isContainedInMarginBox, isInDocumentFlow, isInlineBlock, isMarginAreaRoot, isRoot, isStyled, moveIfGreater, paintBackground, paintBorder, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, resetChildren, resetTopMargin, restyleChildren, setAbsX, setAbsY, setAnonymous, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setElement, setHeight, setIndex, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRelativeOffset, setRightMBP, setState, setStyle, setTx, setTy, setX, setY, stateToString |
LineBox
public LineBox()
dump
public String dump(LayoutContext c,
String indent,
int which)
- Specified by:
dump in class Box
toString
public String toString()
- Overrides:
toString in class Box
getMarginEdge
public Rectangle getMarginEdge(CssContext cssCtx,
int tx,
int ty)
- Overrides:
getMarginEdge in class Box
paintInline
public void paintInline(RenderingContext c)
- Specified by:
paintInline in interface InlinePaintable
isFirstLine
public boolean isFirstLine()
prunePendingInlineBoxes
public void prunePendingInlineBoxes()
isContainsContent
public boolean isContainsContent()
setContainsContent
public void setContainsContent(boolean containsContent)
align
public void align(boolean dynamic)
justify
public void justify()
getFloatDistances
public FloatDistances getFloatDistances()
setFloatDistances
public void setFloatDistances(FloatDistances floatDistances)
isContainsBlockLevelContent
public boolean isContainsBlockLevelContent()
setContainsBlockLevelContent
public void setContainsBlockLevelContent(boolean containsBlockLevelContent)
intersects
public boolean intersects(CssContext cssCtx,
Shape clip)
- Description copied from class:
Box
- NOTE: This method does not consider any children of this box
- Overrides:
intersects in class Box
getPaintingClipEdge
public Rectangle getPaintingClipEdge(CssContext cssCtx)
- Overrides:
getPaintingClipEdge in class Box
getTextDecorations
public List getTextDecorations()
setTextDecorations
public void setTextDecorations(List textDecorations)
getPaintingHeight
public int getPaintingHeight()
setPaintingHeight
public void setPaintingHeight(int paintingHeight)
getPaintingTop
public int getPaintingTop()
setPaintingTop
public void setPaintingTop(int paintingTop)
addAllChildren
public void addAllChildren(List list,
Layer layer)
getNonFlowContent
public List getNonFlowContent()
addNonFlowContent
public void addNonFlowContent(BlockBox box)
reset
public void reset(LayoutContext c)
- Overrides:
reset in class Box
calcCanvasLocation
public void calcCanvasLocation()
- Specified by:
calcCanvasLocation in class Box
calcChildLocations
public void calcChildLocations()
- Overrides:
calcChildLocations in class Box
getMarkerData
public MarkerData getMarkerData()
setMarkerData
public void setMarkerData(MarkerData markerData)
isContainsDynamicFunction
public boolean isContainsDynamicFunction()
setContainsDynamicFunction
public void setContainsDynamicFunction(boolean containsPageCounter)
getContentStart
public int getContentStart()
setContentStart
public void setContentStart(int contentOffset)
findTrailingText
public InlineText findTrailingText()
trimTrailingSpace
public void trimTrailingSpace(LayoutContext c)
find
public Box find(CssContext cssCtx,
int absX,
int absY,
boolean findAnonymous)
- Overrides:
find in class Box
getBaseline
public int getBaseline()
setBaseline
public void setBaseline(int baseline)
isContainsOnlyBlockLevelContent
public boolean isContainsOnlyBlockLevelContent()
getRestyleTarget
public Box getRestyleTarget()
- Overrides:
getRestyleTarget in class Box
restyle
public void restyle(LayoutContext c)
- Overrides:
restyle in class Box
isContainsVisibleContent
public boolean isContainsVisibleContent()
clearSelection
public void clearSelection(List modified)
- Overrides:
clearSelection in class Box
selectAll
public void selectAll()
- Overrides:
selectAll in class Box
collectText
public void collectText(RenderingContext c,
StringBuffer buffer)
throws IOException
- Overrides:
collectText in class Box
- Throws:
IOException
exportText
public void exportText(RenderingContext c,
Writer writer)
throws IOException
- Overrides:
exportText in class Box
- Throws:
IOException
analyzePageBreaks
public void analyzePageBreaks(LayoutContext c,
ContentLimitContainer container)
- Overrides:
analyzePageBreaks in class Box
checkPagePosition
public void checkPagePosition(LayoutContext c,
boolean alwaysBreak)
getJustificationInfo
public JustificationInfo getJustificationInfo()
Copyright © 2013. All Rights Reserved.