Class ListItemPainter
java.lang.Object
com.openhtmltopdf.render.ListItemPainter
A utility class to paint list markers (all types).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voiddrawGlyph(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) private static voiddrawImage(RenderingContext c, BlockBox box, MarkerData markerData) private static voiddrawText(RenderingContext c, BlockBox box, IdentValue listStyle) private static intprivate static intgetReferenceX(RenderingContext c, BlockBox box) private static booleanisInVisiblePageArea(RenderingContext c, PageBox page, StrutMetrics metrics, BlockBox box) The list item box may go over two pages.static voidpaint(RenderingContext c, BlockBox box)
-
Constructor Details
-
ListItemPainter
public ListItemPainter()
-
-
Method Details
-
paint
-
drawImage
-
getReferenceX
-
getReferenceBaseline
-
drawGlyph
private static void drawGlyph(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) -
isInVisiblePageArea
private static boolean isInVisiblePageArea(RenderingContext c, PageBox page, StrutMetrics metrics, BlockBox box) The list item box may go over two pages. Therefore this method checks if the marker is in the visible zone of the current page. -
drawText
-