Package com.openhtmltopdf.render
Class ListItemPainter
- java.lang.Object
-
- com.openhtmltopdf.render.ListItemPainter
-
public class ListItemPainter extends java.lang.ObjectA utility class to paint list markers (all types).- See Also:
MarkerData
-
-
Constructor Summary
Constructors Constructor Description ListItemPainter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private 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 intgetReferenceBaseline(RenderingContext c, BlockBox box)private 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)
-
-
-
Method Detail
-
paint
public static void paint(RenderingContext c, BlockBox box)
-
drawImage
private static void drawImage(RenderingContext c, BlockBox box, MarkerData markerData)
-
getReferenceX
private static int getReferenceX(RenderingContext c, BlockBox box)
-
getReferenceBaseline
private static int getReferenceBaseline(RenderingContext c, BlockBox box)
-
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
private static void drawText(RenderingContext c, BlockBox box, IdentValue listStyle)
-
-