Class PDFGStateStack
- java.lang.Object
- 
- com.inductiveautomation.rm.pdf.writer.PDFGStateStack
 
- 
 public class PDFGStateStack extends java.lang.ObjectRepresents a PDF graphics state stack with graphic state objects.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPDFGStateStack.GStateAn inner class for GStates.
 - 
Constructor SummaryConstructors Constructor Description PDFGStateStack()Creates a new PDF graphics state stack.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMColorgetFillColor()Returns the fill color.floatgetFillOpacity()Returns the fill opacity.PDFGStateStack.GStategetGState()Returns the current gstate.intgetLineCap()Returns the line cap.intgetLineJoin()Returns the line join.floatgetShapeOpacity()Returns the shape opacity.intgetStackSize()Returns the stack size.RMColorgetStrokeColor()Returns the stroke color.floatgetStrokeOpacity()Returns the stroke opacity.floatgetStrokeWidth()Returns 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.
 
- 
- 
- 
Method Detail- 
getGStatepublic PDFGStateStack.GState getGState() Returns 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.
 - 
getFillColorpublic RMColor getFillColor() Returns the fill color.
 - 
setFillColorpublic void setFillColor(RMColor aColor) Sets the fill color.
 - 
getStrokeColorpublic RMColor getStrokeColor() Returns the stroke color.
 - 
setStrokeColorpublic void setStrokeColor(RMColor aColor) Sets 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.
 
- 
 
-