Class PDFGStateStack
java.lang.Object
com.inductiveautomation.rm.pdf.writer.PDFGStateStack
Represents a PDF graphics state stack with graphic state objects.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
PDFGStateStack
public PDFGStateStack()Creates a new PDF graphics state stack.
-
-
Method Details
-
getGState
Returns the current gstate. -
gsave
public void gsave()Saves the current graphics state of the writer. -
grestore
public void grestore()Restores the last graphics state of the writer. -
getFillColor
Returns the fill color. -
setFillColor
Sets the fill color. -
getStrokeColor
Returns the stroke color. -
setStrokeColor
Sets the stroke color. -
getStrokeWidth
public float getStrokeWidth()Returns the stroke width. -
setStrokeWidth
public void setStrokeWidth(float aWidth) Sets the stroke width. -
getLineCap
public int getLineCap()Returns the line cap. -
setLineCap
public void setLineCap(int aLineCap) Sets the line cap. -
getLineJoin
public int getLineJoin()Returns the line join. -
setLineJoin
public void setLineJoin(int aLineJoin) Sets the line join. -
getFillOpacity
public float getFillOpacity()Returns the fill opacity. -
setFillOpacity
public void setFillOpacity(float anOpacity) Sets the fill opacity. -
getStrokeOpacity
public float getStrokeOpacity()Returns the stroke opacity. -
setStrokeOpacity
public void setStrokeOpacity(float anOpacity) Sets the stroke opacity. -
getShapeOpacity
public float getShapeOpacity()Returns the shape opacity. -
setShapeOpacity
public void setShapeOpacity(float anOpacity) Sets the shape opacity. -
getStackSize
public int getStackSize()Returns the stack size.
-