public class GraphicsState extends Object
Constructor and Description |
---|
GraphicsState()
Constructs a new Graphics State object with the default values.
|
GraphicsState(GraphicsState source)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
getCharacterSpacing()
Getter for the character spacing.
|
PdfName |
getColorSpaceFill()
Gets the current color space for fill operations
|
PdfName |
getColorSpaceStroke()
Gets the current color space for stroke operations
|
Matrix |
getCtm()
Getter for the current transformation matrix
|
BaseColor |
getFillColor()
Gets the current fill color
|
CMapAwareDocumentFont |
getFont()
Getter for the font
|
float |
getFontSize()
Getter for the font size
|
float |
getHorizontalScaling()
Getter for the horizontal scaling
|
float |
getLeading()
Getter for the leading
|
int |
getLineCapStyle()
Getter for the line cap style.
|
LineDashPattern |
getLineDashPattern()
Getter for the line dash pattern.
|
int |
getLineJoinStyle()
Getter for the line join style.
|
float |
getLineWidth()
Getter for the line width.
|
float |
getMiterLimit()
Getter for the miter limit value.
|
int |
getRenderMode()
Getter for the render mode
|
float |
getRise()
Getter for text rise
|
BaseColor |
getStrokeColor()
Gets the current stroke color
|
float |
getWordSpacing()
Getter for the word spacing
|
boolean |
isKnockout()
Getter for knockout
|
void |
setLineCapStyle(int lineCapStyle)
Setter for the line cap style.
|
void |
setLineDashPattern(LineDashPattern lineDashPattern)
Setter for the line dash pattern.
|
void |
setLineJoinStyle(int lineJoinStyle)
Setter for the line join style.
|
void |
setLineWidth(float lineWidth)
Setter for the line width.
|
void |
setMiterLimit(float miterLimit)
Setter for the miter limit value.
|
public GraphicsState()
public GraphicsState(GraphicsState source)
source
- another GraphicsState object
public Matrix getCtm()
public float getCharacterSpacing()
public float getWordSpacing()
public float getHorizontalScaling()
public float getLeading()
public CMapAwareDocumentFont getFont()
public float getFontSize()
public int getRenderMode()
public float getRise()
public boolean isKnockout()
public PdfName getColorSpaceFill()
public PdfName getColorSpaceStroke()
public BaseColor getFillColor()
public BaseColor getStrokeColor()
public float getLineWidth()
public void setLineWidth(float lineWidth)
lineWidth
- New line width.
public int getLineCapStyle()
PdfContentByte
public void setLineCapStyle(int lineCapStyle)
PdfContentByte
lineCapStyle
- New line cap style.
public int getLineJoinStyle()
PdfContentByte
public void setLineJoinStyle(int lineJoinStyle)
PdfContentByte
lineJoinStyle
- New line join style.
public float getMiterLimit()
public void setMiterLimit(float miterLimit)
miterLimit
- New miter limit.
public LineDashPattern getLineDashPattern()
public void setLineDashPattern(LineDashPattern lineDashPattern)
lineDashPattern
- New line dash pattern.
Copyright © 1998–2019. All rights reserved.