Package com.lowagie.text.pdf
Class PdfGState
java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfGState
The graphic state dictionary.
- Author:
- Paulo Soares (psoares@consiste.pt)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend modestatic final PdfNameA possible blend mode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAlphaIsShape(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 fill alpha constant, specifying the constant shape or constant opacity value to be used for filling 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.lowagie.text.pdf.PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toStringMethods inherited from class com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Field Details
-
BM_NORMAL
A possible blend mode -
BM_COMPATIBLE
A possible blend mode -
BM_MULTIPLY
A possible blend mode -
BM_SCREEN
A possible blend mode -
BM_OVERLAY
A possible blend mode -
BM_DARKEN
A possible blend mode -
BM_LIGHTEN
A possible blend mode -
BM_COLORDODGE
A possible blend mode -
BM_COLORBURN
A possible blend mode -
BM_HARDLIGHT
A possible blend mode -
BM_SOFTLIGHT
A possible blend mode -
BM_DIFFERENCE
A possible blend mode -
BM_EXCLUSION
A possible blend mode
-
-
Constructor Details
-
PdfGState
public PdfGState()
-
-
Method Details
-
setOverPrintStroking
public void setOverPrintStroking(boolean ov) Sets the flag whether to apply overprint for stroking.- Parameters:
ov- true to apply overprint for stroking false otherwise
-
setOverPrintNonStroking
public void setOverPrintNonStroking(boolean ov) Sets the flag whether to apply overprint for non stroking painting operations.- Parameters:
ov- true to apply overprint for non stroking painting operations false otherwise
-
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- the stroking alpha constant
-
setFillOpacity
public void setFillOpacity(float n) Sets the current fill alpha constant, specifying the constant shape or constant opacity value to be used for filling operations in the transparent imaging model.- Parameters:
n- the fll alpha constant
-
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- true if the alpha source flag and alpha constant should be interpreted as shape value false if they should be interpreted as opacity values
-
setTextKnockout
public void setTextKnockout(boolean v) Determines the behavior of overlapping glyphs within a text object in the transparent imaging model.- Parameters:
v- boolean for overlapping glyphs behavior
-
setBlendMode
The current blend mode to be used in the transparent imaging model.- Parameters:
bm- the blend mode
-