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