|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.util.AbstractPaintingState
org.apache.fop.afp.AFPPaintingState
public class AFPPaintingState
This keeps information about the current painting state when writing to an AFP datastream.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.util.AbstractPaintingState |
---|
AbstractPaintingState.AbstractData, AbstractPaintingState.StateStack<E> |
Constructor Summary | |
---|---|
AFPPaintingState()
|
Method Summary | |
---|---|
boolean |
canEmbedJpeg()
Returns true if JPEGs can be embedded in an AFP document. |
java.lang.Object |
clone()
|
float |
getBitmapEncodingQuality()
Gets the image encoding quality setting to use when encoding bitmap images. |
int |
getBitsPerPixel()
Returns the number of bits per pixel |
org.apache.xmlgraphics.java2d.color.ColorConverter |
getColorConverter()
Used to convert color in respect of the colorImages flag |
float |
getDitheringQuality()
Gets the dithering quality setting to use when converting images to monochrome images. |
boolean |
getFS45()
gets whether images should be FS45 |
java.lang.String |
getImageUri()
Gets the uri of the current image |
protected int |
getLandscapeRotation()
Returns the landscape rotation |
float |
getLineWidthCorrection()
Returns the line width correction. |
AFPPageFonts |
getPageFonts()
Gets the current page fonts |
int |
getPageHeight()
Returns the page height |
protected org.apache.fop.afp.AFPPaintingState.AFPPagePaintingState |
getPagePaintingState()
Returns the painting state of the current page |
int |
getPageRotation()
Returns the page rotation |
int |
getPageWidth()
Returns the page width |
java.awt.Point |
getPoint(int x,
int y)
Returns a point on the current page, taking the current painting state into account. |
protected int |
getPortraitRotation()
Returns the rotation to be used for portrait pages |
int |
getResolution()
Returns the output/device resolution. |
int |
getRotation()
Returns the currently derived rotation |
AFPUnitConverter |
getUnitConverter()
Returns the unit converter |
boolean |
getWrapPSeg()
Whether FS11 and SF45 non-inline images should be wrapped in a page segment |
protected AbstractPaintingState |
instantiate()
Instantiates a new state object |
protected AbstractPaintingState.AbstractData |
instantiateData()
Instantiates a new state data object |
boolean |
isCMYKImagesSupported()
Indicates whether CMYK images (IOCA FS45) are enabled. |
boolean |
isColorImages()
Returns true if color images are to be used |
boolean |
isGOCAEnabled()
Indicates whether GOCA is enabled or disabled. |
boolean |
isNativeImagesSupported()
Returns true if images are supported natively in this AFP environment |
boolean |
isStrokeGOCAText()
Indicates whether to stroke text in GOCA mode or to use text operators where possible. |
void |
setBitmapEncodingQuality(float quality)
Sets the image encoding quality setting to use when encoding bitmap images. |
void |
setBitsPerPixel(int bitsPerPixel)
Sets the number of bits used per pixel |
void |
setCanEmbedJpeg(boolean canEmbed)
Set whether or not JPEG images can be embedded within an AFP document. |
void |
setCMYKImagesSupported(boolean value)
Controls whether CMYK images (IOCA FS45) are enabled. |
void |
setColorImages(boolean colorImages)
Sets whether images are color or not and instantiates a ColorHandler |
void |
setDitheringQuality(float quality)
Sets the dithering quality setting to use when converting images to monochrome images. |
void |
setFS45(boolean fs45)
sets whether images should be FS45 |
void |
setGOCAEnabled(boolean enabled)
Controls whether GOCA is enabled or disabled. |
void |
setImageUri(java.lang.String uri)
Sets the uri of the current image |
void |
setLandscapeRotation(int rotation)
Sets the rotation to be used for landscape pages, valid values are 0, 90, 180, 270 (default). |
void |
setLineWidthCorrection(float correction)
Sets the line width correction |
void |
setNativeImagesSupported(boolean nativeImagesSupported)
Sets whether images are natively supported or not in the AFP environment |
void |
setPageHeight(int pageHeight)
Sets the page height |
void |
setPageWidth(int pageWidth)
Sets the page width |
void |
setPortraitRotation(int rotation)
Sets the rotation to be used for portrait pages, valid values are 0 (default), 90, 180, 270. |
void |
setResolution(int resolution)
Sets the output/device resolution |
void |
setStrokeGOCAText(boolean stroke)
Controls whether to stroke text in GOCA mode or to use text operators where possible. |
void |
setWrapPSeg(boolean pSeg)
Sets whether FS11 and FS45 non-inline images should be wrapped in a page segment |
java.lang.String |
toString()
|
Methods inherited from class org.apache.fop.util.AbstractPaintingState |
---|
checkTransform, clear, clearTransform, concatenate, getBackColor, getBaseTransform, getColor, getData, getFontName, getFontSize, getLineWidth, getStateStack, getTransform, resetTransform, restore, restoreAll, save, saveAll, setBackColor, setColor, setDashArray, setData, setFontName, setFontSize, setLineWidth |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AFPPaintingState()
Method Detail |
---|
public void setPortraitRotation(int rotation)
rotation
- The rotation in degrees.protected int getPortraitRotation()
public void setLandscapeRotation(int rotation)
rotation
- The rotation in degrees.protected int getLandscapeRotation()
public void setBitsPerPixel(int bitsPerPixel)
bitsPerPixel
- number of bits per pixelpublic int getBitsPerPixel()
public void setColorImages(boolean colorImages)
colorImages
- color image outputpublic boolean isColorImages()
public org.apache.xmlgraphics.java2d.color.ColorConverter getColorConverter()
public void setNativeImagesSupported(boolean nativeImagesSupported)
nativeImagesSupported
- true if images are natively supported in this AFP environmentpublic boolean isNativeImagesSupported()
public void setCanEmbedJpeg(boolean canEmbed)
canEmbed
- true if the JPEG image can be embeddedpublic boolean canEmbedJpeg()
public void setCMYKImagesSupported(boolean value)
value
- true to enabled CMYK imagespublic boolean isCMYKImagesSupported()
public float getDitheringQuality()
public void setDitheringQuality(float quality)
quality
- Defines the desired quality level for the conversion.
Valid values: a value between 0.0f (fastest) and 1.0f (best)public float getBitmapEncodingQuality()
public void setBitmapEncodingQuality(float quality)
quality
- Defines the desired quality level for the conversion.
Valid values: a value between 0.0f (lowest) and 1.0f (best, loss-less)public void setResolution(int resolution)
resolution
- the output resolution (dpi)public void setLineWidthCorrection(float correction)
correction
- the line width multiplying factor correctionpublic int getResolution()
public float getLineWidthCorrection()
public void setGOCAEnabled(boolean enabled)
enabled
- true if GOCA is enabled, false if it is disabledpublic boolean isGOCAEnabled()
public void setStrokeGOCAText(boolean stroke)
stroke
- true to stroke, false to paint with text operators where possiblepublic boolean isStrokeGOCAText()
public boolean getWrapPSeg()
public void setWrapPSeg(boolean pSeg)
pSeg
- true iff images should be wrappedpublic boolean getFS45()
public void setFS45(boolean fs45)
fs45
- true iff images should be FS45protected AbstractPaintingState.AbstractData instantiateData()
instantiateData
in class AbstractPaintingState
protected AbstractPaintingState instantiate()
instantiate
in class AbstractPaintingState
protected org.apache.fop.afp.AFPPaintingState.AFPPagePaintingState getPagePaintingState()
public AFPPageFonts getPageFonts()
public void setPageWidth(int pageWidth)
pageWidth
- the page widthpublic int getPageWidth()
public void setPageHeight(int pageHeight)
pageHeight
- the page heightpublic int getPageHeight()
public int getPageRotation()
public void setImageUri(java.lang.String uri)
uri
- the uri of the current imagepublic java.lang.String getImageUri()
public int getRotation()
public AFPUnitConverter getUnitConverter()
public java.awt.Point getPoint(int x, int y)
x
- the X-coordinatey
- the Y-coordinate
public java.lang.Object clone()
clone
in class AbstractPaintingState
public java.lang.String toString()
toString
in class AbstractPaintingState
|
fop 2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |