Class TransformCreator
- java.lang.Object
-
- com.openhtmltopdf.render.displaylist.TransformCreator
-
public class TransformCreator extends Object
Static helper methods to create transforms, either in document coordinates or page coordinates.
-
-
Constructor Summary
Constructors Constructor Description TransformCreator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AffineTransformcreateDocumentCoordinatesTransform(Box master, CssContext c, AffineTransform _parentCtm)Creates an absolute transform in document coordinates.static AffineTransformcreatePageCoordinatesTranform(RenderingContext c, Box box, PageBox page, int shadowPageNumber)Creates a transform that can be applied to a page, either PDF or Java2D.static AffineTransformcreatePageMarginCoordinatesTransform(RenderingContext c, Box box, PageBox page, int xTranslate, int yTranslate)
-
-
-
Method Detail
-
createPageCoordinatesTranform
public static AffineTransform createPageCoordinatesTranform(RenderingContext c, Box box, PageBox page, int shadowPageNumber)
Creates a transform that can be applied to a page, either PDF or Java2D. This transform can be applied on top of other tranforms already in effect on the page.
-
createPageMarginCoordinatesTransform
public static AffineTransform createPageMarginCoordinatesTransform(RenderingContext c, Box box, PageBox page, int xTranslate, int yTranslate)
-
createDocumentCoordinatesTransform
public static AffineTransform createDocumentCoordinatesTransform(Box master, CssContext c, AffineTransform _parentCtm)
Creates an absolute transform in document coordinates. This is typically used to figure out what pages the box will fall on. The_parentCtmmay be null in case the parent layer uses the identity tranform. If it is not null it will be cloned before use.
-
-