public final class AFPInfo
extends java.lang.Object
Constructor and Description |
---|
AFPInfo() |
Modifier and Type | Method and Description |
---|---|
AFPGraphics2D |
createGraphics2D(boolean textAsShapes)
Creates an AFPGraphics2D implementation
|
protected int |
getBitsPerPixel()
Returns the number of bits per pixel to use
|
FontInfo |
getFontInfo()
Return the font info
|
org.apache.avalon.framework.configuration.Configuration |
getHandlerConfiguration()
Returns the handler configuration
|
int |
getHeight()
Returns the height.
|
AFPPaintingState |
getPaintingState()
Returns the current AFP state
|
protected int |
getResolution()
Returns the resolution
|
AFPResourceInfo |
getResourceInfo()
Returns the resource information
|
AFPResourceManager |
getResourceManager()
Returns the AFPResourceManager
|
int |
getWidth()
Returns the width.
|
protected int |
getX()
Returns the current x position coordinate
|
protected int |
getY()
Returns the current y position coordinate
|
boolean |
isColorSupported()
Returns true if supports color
|
boolean |
paintAsBitmap()
Returns true if SVG should be rendered as a bitmap instead of natively
|
protected void |
setFontInfo(FontInfo fontInfo)
Sets the current font info
|
void |
setHandlerConfiguration(org.apache.avalon.framework.configuration.Configuration cfg)
Sets the handler configuration
|
void |
setHeight(int height)
Sets the height.
|
void |
setPaintAsBitmap(boolean b)
Sets true if SVG should be rendered as a bitmap instead of natively
|
void |
setPaintingState(AFPPaintingState paintingState)
Sets the AFP state
|
void |
setResourceInfo(AFPResourceInfo resourceInfo)
Sets the resource information
|
void |
setResourceManager(AFPResourceManager resourceManager)
Sets the AFPResourceManager
|
void |
setWidth(int width)
Sets the width.
|
protected void |
setX(int x)
Sets the current x position coordinate
|
protected void |
setY(int y)
Sets the current y position coordinate
|
boolean |
strokeText()
Returns true if text should be stroked when painted
|
java.lang.String |
toString() |
public int getWidth()
public void setWidth(int width)
width
- The pageWidth to setpublic int getHeight()
public void setHeight(int height)
height
- The height to setpublic org.apache.avalon.framework.configuration.Configuration getHandlerConfiguration()
public void setHandlerConfiguration(org.apache.avalon.framework.configuration.Configuration cfg)
cfg
- the handler configurationpublic FontInfo getFontInfo()
public AFPPaintingState getPaintingState()
public AFPResourceManager getResourceManager()
public boolean isColorSupported()
protected int getX()
protected int getY()
protected int getResolution()
protected int getBitsPerPixel()
protected void setX(int x)
x
- the current x position coordinateprotected void setY(int y)
y
- the current y position coordinateprotected void setFontInfo(FontInfo fontInfo)
fontInfo
- the current font infopublic void setPaintingState(AFPPaintingState paintingState)
paintingState
- the AFP statepublic void setResourceManager(AFPResourceManager resourceManager)
resourceManager
- the AFPResourceManagerpublic void setPaintAsBitmap(boolean b)
b
- boolean valuepublic boolean paintAsBitmap()
public boolean strokeText()
public void setResourceInfo(AFPResourceInfo resourceInfo)
resourceInfo
- the resource informationpublic AFPResourceInfo getResourceInfo()
public AFPGraphics2D createGraphics2D(boolean textAsShapes)
textAsShapes
- true when text is painted as shapespublic java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.