Package org.xhtmlrenderer.render
Class MarkerData
java.lang.Object
org.xhtmlrenderer.render.MarkerData
A bean containing information necessary to draw a list marker. This includes
font information from the block (for selecting the correct font when drawing
a text marker) or the data necessary to draw other types of markers. It
also includes a reference to the first line box in the block box (which in
turn may be nested inside of other block boxes). All markers are drawn
relative to the baseline of this line box.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable MarkerData.GlyphMarker
private final @Nullable MarkerData.ImageMarker
private @Nullable LineBox
private @Nullable LineBox
private final StrutMetrics
private final @Nullable MarkerData.TextMarker
-
Constructor Summary
ConstructorsConstructorDescriptionMarkerData
(StrutMetrics structMetrics, @Nullable MarkerData.ImageMarker imageMarker, @Nullable MarkerData.GlyphMarker glyphMarker, @Nullable MarkerData.TextMarker textMarker) -
Method Summary
Modifier and TypeMethodDescription@Nullable MarkerData.GlyphMarker
@Nullable MarkerData.ImageMarker
int
@Nullable LineBox
@Nullable MarkerData.TextMarker
void
restorePreviousReferenceLine
(LineBox current) void
setReferenceLine
(LineBox referenceLine)
-
Field Details
-
_structMetrics
-
_textMarker
-
_glyphMarker
-
_imageMarker
-
_referenceLine
-
_previousReferenceLine
-
-
Constructor Details
-
MarkerData
public MarkerData(StrutMetrics structMetrics, @Nullable MarkerData.ImageMarker imageMarker, @Nullable MarkerData.GlyphMarker glyphMarker, @Nullable MarkerData.TextMarker textMarker)
-
-
Method Details
-
getGlyphMarker
-
getTextMarker
-
getImageMarker
-
getStructMetrics
-
getLayoutWidth
public int getLayoutWidth() -
getReferenceLine
-
setReferenceLine
-
restorePreviousReferenceLine
-