Package com.aowagie.text.pdf
Class PdfGState
- java.lang.Object
-
- com.aowagie.text.pdf.PdfObject
-
- com.aowagie.text.pdf.PdfDictionary
-
- com.aowagie.text.pdf.PdfGState
-
public class PdfGState extends PdfDictionary
The graphic state dictionary.
-
-
Field Summary
Fields Modifier and Type Field Description static PdfNameBM_COMPATIBLEA possible blend modestatic PdfNameBM_NORMALA possible blend mode-
Fields inherited from class com.aowagie.text.pdf.PdfDictionary
CATALOG, hashMap, OUTLINES, PAGE
-
Fields inherited from class com.aowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
-
-
Constructor Summary
Constructors Constructor Description PdfGState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAlphaIsShape(boolean v)The alpha source flag specifying whether the current soft mask and alpha constant are to be interpreted as shape values (true) or opacity values (false).voidsetBlendMode(PdfName bm)The current blend mode to be used in the transparent imaging model.voidsetFillOpacity(float n)Sets the current stroking alpha constant, specifying the constant shape or constant opacity value to be used for nonstroking operations in the transparent imaging model.voidsetOverPrintMode(int ov)Sets the flag whether to toggle knockout behavior for overprinted objects.voidsetOverPrintNonStroking(boolean ov)Sets the flag whether to apply overprint for non stroking painting operations.voidsetOverPrintStroking(boolean ov)Sets the flag whether to apply overprint for stroking.voidsetStrokeOpacity(float n)Sets the current stroking alpha constant, specifying the constant shape or constant opacity value to be used for stroking operations in the transparent imaging model.voidsetTextKnockout(boolean v)Determines the behavior of overlapping glyphs within a text object in the transparent imaging model.-
Methods inherited from class com.aowagie.text.pdf.PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, remove, size, toPdf, toString
-
Methods inherited from class com.aowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, type
-
-
-
-
Method Detail
-
setOverPrintStroking
public void setOverPrintStroking(boolean ov)
Sets the flag whether to apply overprint for stroking.- Parameters:
ov- boolean to set
-
setOverPrintNonStroking
public void setOverPrintNonStroking(boolean ov)
Sets the flag whether to apply overprint for non stroking painting operations.- Parameters:
ov- overPrint to set
-
setOverPrintMode
public void setOverPrintMode(int ov)
Sets the flag whether to toggle knockout behavior for overprinted objects.- Parameters:
ov- - accepts 0 or 1
-
setStrokeOpacity
public void setStrokeOpacity(float n)
Sets the current stroking alpha constant, specifying the constant shape or constant opacity value to be used for stroking operations in the transparent imaging model.- Parameters:
n- opacity to set
-
setFillOpacity
public void setFillOpacity(float n)
Sets the current stroking alpha constant, specifying the constant shape or constant opacity value to be used for nonstroking operations in the transparent imaging model.- Parameters:
n- opacity to set
-
setAlphaIsShape
public void setAlphaIsShape(boolean v)
The alpha source flag specifying whether the current soft mask and alpha constant are to be interpreted as shape values (true) or opacity values (false).- Parameters:
v- set the shape
-
setTextKnockout
public void setTextKnockout(boolean v)
Determines the behavior of overlapping glyphs within a text object in the transparent imaging model.- Parameters:
v- set if knockout
-
setBlendMode
public void setBlendMode(PdfName bm)
The current blend mode to be used in the transparent imaging model.- Parameters:
bm- set if blend mode
-
-