Class GraphicsStateDictionary
java.lang.Object
com.orsonpdf.PDFObject
com.orsonpdf.DictionaryObject
com.orsonpdf.GraphicsStateDictionary
A graphics state dictionary.
-
Field Summary
FieldsFields inherited from class DictionaryObject
dictionary -
Constructor Summary
ConstructorsConstructorDescriptionGraphicsStateDictionary(int number) Creates a new instance with the type/ExtGState. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the non-stroke alpha (a value in the range0.0to1.0).floatReturns the stroke alpha (in the range0.0to1.0).voidsetNonStrokeAlpha(float alpha) Sets the non-stroke alpha.voidsetStrokeAlpha(float alpha) Sets the stroke alpha.Methods inherited from class DictionaryObject
getObjectBytes, put, removeMethods inherited from class PDFObject
getGeneration, getNumber, getReference, toPDFBytes
-
Field Details
-
strokeAlpha
private float strokeAlpha -
nonStrokeAlpha
private float nonStrokeAlpha
-
-
Constructor Details
-
GraphicsStateDictionary
public GraphicsStateDictionary(int number) Creates a new instance with the type/ExtGState.- Parameters:
number- the PDF object number.
-
-
Method Details
-
getStrokeAlpha
public float getStrokeAlpha()Returns the stroke alpha (in the range0.0to1.0).- Returns:
- The stroke alpha.
-
setStrokeAlpha
public void setStrokeAlpha(float alpha) Sets the stroke alpha.- Parameters:
alpha- the stroke alpha (in the range0.0to1.0).
-
getNonStrokeAlpha
public float getNonStrokeAlpha()Returns the non-stroke alpha (a value in the range0.0to1.0).- Returns:
- The non-stroke alpha.
-
setNonStrokeAlpha
public void setNonStrokeAlpha(float alpha) Sets the non-stroke alpha.- Parameters:
alpha- the new alpha value (in the range0.0to1.0).
-