Top Description Constructors Methods
com.openhtmltopdf.render

public Class ListItemPainter

extends Object
Class Inheritance
Imports
java.awt.RenderingHints, com.openhtmltopdf.css.constants.CSSName, .IdentValue, com.openhtmltopdf.css.style.CalculatedStyle, .CssContext, com.openhtmltopdf.extend.FSImage

A utility class to paint list markers (all types).
See Also
MarkerData

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
private static void
private static void
private static int
private static int
private static boolean
isInVisiblePageArea(RenderingContext c, PageBox page, StrutMetrics metrics, BlockBox box)

The list item box may go over two pages.

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ListItemPainterback to summary
public ListItemPainter()

Method Detail

drawGlyphback to summary
private static void drawGlyph(RenderingContext c, BlockBox box, CalculatedStyle style, IdentValue listStyle)
drawImageback to summary
private static void drawImage(RenderingContext c, BlockBox box, MarkerData markerData)
drawTextback to summary
private static void drawText(RenderingContext c, BlockBox box, IdentValue listStyle)
getReferenceBaselineback to summary
private static int getReferenceBaseline(RenderingContext c, BlockBox box)
getReferenceXback to summary
private static int getReferenceX(RenderingContext c, BlockBox box)
isInVisiblePageAreaback to summary
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.

paintback to summary
public static void paint(RenderingContext c, BlockBox box)