Package com.openhtmltopdf.render
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 void
drawGlyph
(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle) private static void
drawImage
(RenderingContext c, BlockBox box, MarkerData markerData) private static void
drawText
(RenderingContext c, BlockBox box, IdentValue listStyle) private static int
private static int
getReferenceX
(RenderingContext c, BlockBox box) private static boolean
isInVisiblePageArea
(RenderingContext c, PageBox page, StrutMetrics metrics, BlockBox box) The list item box may go over two pages.static void
paint
(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
-