Class PDFGStateStack
java.lang.Object
com.inductiveautomation.rm.pdf.writer.PDFGStateStack
Represents a PDF graphics state stack with graphic state objects.
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the fill color.floatReturns the fill opacity.Returns the current gstate.intReturns the line cap.intReturns the line join.floatReturns the shape opacity.intReturns the stack size.Returns the stroke color.floatReturns the stroke opacity.floatReturns the stroke width.voidgrestore()Restores the last graphics state of the writer.voidgsave()Saves the current graphics state of the writer.voidsetFillColor(RMColor aColor) Sets the fill color.voidsetFillOpacity(float anOpacity) Sets the fill opacity.voidsetLineCap(int aLineCap) Sets the line cap.voidsetLineJoin(int aLineJoin) Sets the line join.voidsetShapeOpacity(float anOpacity) Sets the shape opacity.voidsetStrokeColor(RMColor aColor) Sets the stroke color.voidsetStrokeOpacity(float anOpacity) Sets the stroke opacity.voidsetStrokeWidth(float aWidth) Sets the stroke width.
- 
Constructor Details- 
PDFGStateStackpublic PDFGStateStack()Creates a new PDF graphics state stack.
 
- 
- 
Method Details- 
getGStateReturns the current gstate.
- 
gsavepublic void gsave()Saves the current graphics state of the writer.
- 
grestorepublic void grestore()Restores the last graphics state of the writer.
- 
getFillColorReturns the fill color.
- 
setFillColorSets the fill color.
- 
getStrokeColorReturns the stroke color.
- 
setStrokeColorSets the stroke color.
- 
getStrokeWidthpublic float getStrokeWidth()Returns the stroke width.
- 
setStrokeWidthpublic void setStrokeWidth(float aWidth) Sets the stroke width.
- 
getLineCappublic int getLineCap()Returns the line cap.
- 
setLineCappublic void setLineCap(int aLineCap) Sets the line cap.
- 
getLineJoinpublic int getLineJoin()Returns the line join.
- 
setLineJoinpublic void setLineJoin(int aLineJoin) Sets the line join.
- 
getFillOpacitypublic float getFillOpacity()Returns the fill opacity.
- 
setFillOpacitypublic void setFillOpacity(float anOpacity) Sets the fill opacity.
- 
getStrokeOpacitypublic float getStrokeOpacity()Returns the stroke opacity.
- 
setStrokeOpacitypublic void setStrokeOpacity(float anOpacity) Sets the stroke opacity.
- 
getShapeOpacitypublic float getShapeOpacity()Returns the shape opacity.
- 
setShapeOpacitypublic void setShapeOpacity(float anOpacity) Sets the shape opacity.
- 
getStackSizepublic int getStackSize()Returns the stack size.
 
-