Package com.orsonpdf
Class GraphicsStateDictionary
java.lang.Object
com.orsonpdf.PDFObject
com.orsonpdf.DictionaryObject
com.orsonpdf.GraphicsStateDictionary
A graphics state dictionary.
-
Field Summary
FieldsFields inherited from class com.orsonpdf.DictionaryObject
dictionary
-
Constructor Summary
ConstructorsConstructorDescriptionGraphicsStateDictionary
(int number) Creates a new instance with the type/ExtGState
. -
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns the non-stroke alpha (a value in the range0.0
to1.0
).float
Returns the stroke alpha (in the range0.0
to1.0
).void
setNonStrokeAlpha
(float alpha) Sets the non-stroke alpha.void
setStrokeAlpha
(float alpha) Sets the stroke alpha.Methods inherited from class com.orsonpdf.DictionaryObject
getObjectBytes, put, remove
Methods inherited from class com.orsonpdf.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.0
to1.0
).- Returns:
- The stroke alpha.
-
setStrokeAlpha
public void setStrokeAlpha(float alpha) Sets the stroke alpha.- Parameters:
alpha
- the stroke alpha (in the range0.0
to1.0
).
-
getNonStrokeAlpha
public float getNonStrokeAlpha()Returns the non-stroke alpha (a value in the range0.0
to1.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.0
to1.0
).
-