public class PCLRenderingUtil
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static int |
determinePrintDirection(java.awt.geom.AffineTransform transform) |
Determines the print direction based on the given transformation matrix.
|
float |
getDitheringQuality() |
Returns the dithering quality to be used when encoding gray or color images.
|
PCLRenderingMode |
getRenderingMode() |
Returns the selected rendering mode.
|
FOUserAgent |
getUserAgent() |
Returns the user agent.
|
boolean |
isAllTextAsBitmaps() |
Indicates whether all text shall be painted as bitmaps.
|
boolean |
isColorCanvasEnabled() |
Indicates whether a color canvas is used when creating bitmap images.
|
boolean |
isPJLDisabled() |
Indicates whether PJL generation is disabled.
|
void |
setAllTextAsBitmaps(boolean allTextAsBitmaps) |
Controls whether all text should be generated as bitmaps or only text for which there's no native font.
|
void |
setPJLDisabled(boolean disable) |
Controls whether PJL commands shall be generated by the PCL renderer.
|
void |
setRenderingMode(PCLRenderingMode mode) |
Configures the renderer to trade speed for quality if desired.
|
static java.awt.geom.Point2D |
transformedPoint(int x,
int y,
java.awt.geom.AffineTransform transform,
PCLPageDefinition pageDefinition,
int printDirection) |
Returns a coordinate in PCL's coordinate system when given a coordinate in the user
coordinate system.
|
public FOUserAgent getUserAgent()
public void setRenderingMode(PCLRenderingMode mode)
mode - one of the PCLRenderingMode.* constantspublic PCLRenderingMode getRenderingMode()
public float getDitheringQuality()
public void setPJLDisabled(boolean disable)
disable - true to disable PJL commandspublic boolean isPJLDisabled()
public void setAllTextAsBitmaps(boolean allTextAsBitmaps)
allTextAsBitmaps - true if all text should be painted as bitmapspublic boolean isAllTextAsBitmaps()
public boolean isColorCanvasEnabled()
public static int determinePrintDirection(java.awt.geom.AffineTransform transform)
transform - the transformation matrixpublic static java.awt.geom.Point2D transformedPoint(int x,
int y,
java.awt.geom.AffineTransform transform,
PCLPageDefinition pageDefinition,
int printDirection)
x - the X coordinatey - the Y coordinatetransform - the currently valid transformation matrixpageDefinition - the currently valid page definitionprintDirection - the currently valid print directionCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.