Package org.apache.fop.render.afp
Class AFPInfo
java.lang.Object
org.apache.fop.render.afp.AFPInfo
AFP information structure for drawing the XML document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateGraphics2D(boolean textAsShapes) Creates an AFPGraphics2D implementationprotected intReturns the number of bits per pixel to useReturn the font infoReturns the handler configurationintReturns the height.Returns the current AFP stateprotected intReturns the resolutionReturns the resource informationReturns the AFPResourceManagerintgetWidth()Returns the width.protected intgetX()Returns the current x position coordinateprotected intgetY()Returns the current y position coordinatebooleanReturns true if supports colorbooleanReturns true if SVG should be rendered as a bitmap instead of nativelyprotected voidsetFontInfo(FontInfo fontInfo) Sets the current font infovoidSets the handler configurationvoidsetHeight(int height) Sets the height.voidsetPaintAsBitmap(boolean b) Sets true if SVG should be rendered as a bitmap instead of nativelyvoidsetPaintingState(AFPPaintingState paintingState) Sets the AFP statevoidsetResourceInfo(AFPResourceInfo resourceInfo) Sets the resource informationvoidsetResourceManager(AFPResourceManager resourceManager) Sets the AFPResourceManagervoidsetWidth(int width) Sets the width.protected voidsetX(int x) Sets the current x position coordinateprotected voidsetY(int y) Sets the current y position coordinatebooleanReturns true if text should be stroked when paintedtoString()
-
Constructor Details
-
AFPInfo
public AFPInfo()
-
-
Method Details
-
getWidth
public int getWidth()Returns the width.- Returns:
- the width
-
setWidth
public void setWidth(int width) Sets the width.- Parameters:
width- The pageWidth to set
-
getHeight
public int getHeight()Returns the height.- Returns:
- the height
-
setHeight
public void setHeight(int height) Sets the height.- Parameters:
height- The height to set
-
getHandlerConfiguration
Returns the handler configuration- Returns:
- the handler configuration
-
setHandlerConfiguration
Sets the handler configuration- Parameters:
cfg- the handler configuration
-
getFontInfo
Return the font info- Returns:
- the font info
-
getPaintingState
Returns the current AFP state- Returns:
- the current AFP state
-
getResourceManager
Returns the AFPResourceManager- Returns:
- the AFPResourceManager
-
isColorSupported
public boolean isColorSupported()Returns true if supports color- Returns:
- true if supports color
-
getX
protected int getX()Returns the current x position coordinate- Returns:
- the current x position coordinate
-
getY
protected int getY()Returns the current y position coordinate- Returns:
- the current y position coordinate
-
getResolution
protected int getResolution()Returns the resolution- Returns:
- the resolution
-
getBitsPerPixel
protected int getBitsPerPixel()Returns the number of bits per pixel to use- Returns:
- the number of bits per pixel to use
-
setX
protected void setX(int x) Sets the current x position coordinate- Parameters:
x- the current x position coordinate
-
setY
protected void setY(int y) Sets the current y position coordinate- Parameters:
y- the current y position coordinate
-
setFontInfo
Sets the current font info- Parameters:
fontInfo- the current font info
-
setPaintingState
Sets the AFP state- Parameters:
paintingState- the AFP state
-
setResourceManager
Sets the AFPResourceManager- Parameters:
resourceManager- the AFPResourceManager
-
setPaintAsBitmap
public void setPaintAsBitmap(boolean b) Sets true if SVG should be rendered as a bitmap instead of natively- Parameters:
b- boolean value
-
paintAsBitmap
public boolean paintAsBitmap()Returns true if SVG should be rendered as a bitmap instead of natively- Returns:
- true if SVG should be rendered as a bitmap instead of natively
-
strokeText
public boolean strokeText()Returns true if text should be stroked when painted- Returns:
- true if text should be stroked when painted
-
setResourceInfo
Sets the resource information- Parameters:
resourceInfo- the resource information
-
getResourceInfo
Returns the resource information- Returns:
- the resource information
-
createGraphics2D
Creates an AFPGraphics2D implementation- Parameters:
textAsShapes- true when text is painted as shapes- Returns:
- a newly created AFPGraphics2D
-
toString
-