COSObjectable
public class PDExtendedGraphicsState extends java.lang.Object implements COSObjectable
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
RENDERING_INTENT_ABSOLUTE_COLORIMETRIC |
Rendering intent constants, see PDF Reference 1.5 Section 4.5.4 Rendering Intents.
|
static java.lang.String |
RENDERING_INTENT_PERCEPTUAL |
Rendering intent constants, see PDF Reference 1.5 Section 4.5.4 Rendering Intents.
|
static java.lang.String |
RENDERING_INTENT_RELATIVE_COLORIMETRIC |
Rendering intent constants, see PDF Reference 1.5 Section 4.5.4 Rendering Intents.
|
static java.lang.String |
RENDERING_INTENT_SATURATION |
Rendering intent constants, see PDF Reference 1.5 Section 4.5.4 Rendering Intents.
|
Constructor | Description |
---|---|
PDExtendedGraphicsState() |
Default constructor, creates blank graphics state.
|
PDExtendedGraphicsState(COSDictionary dictionary) |
Create a graphics state from an existing dictionary.
|
Modifier and Type | Method | Description |
---|---|---|
void |
copyIntoGraphicsState(PDGraphicsState gs) |
This will implement the gs operator.
|
boolean |
getAlphaSourceFlag() |
This will get the alpha source flag.
|
boolean |
getAutomaticStrokeAdjustment() |
This will get the automatic stroke adjustment flag.
|
COSDictionary |
getCOSDictionary() |
This will get the underlying dictionary that this class acts on.
|
COSBase |
getCOSObject() |
Convert this standard java object to a COS object.
|
java.lang.Float |
getFlatnessTolerance() |
This will get the flatness tolerance.
|
PDFontSetting |
getFontSetting() |
This will get the font setting of the graphics state.
|
int |
getLineCapStyle() |
This will get the line cap style.
|
PDLineDashPattern |
getLineDashPattern() |
This will get the dash pattern.
|
int |
getLineJoinStyle() |
This will get the line join style.
|
java.lang.Float |
getLineWidth() |
This will get the line width.
|
java.lang.Float |
getMiterLimit() |
This will get the miter limit.
|
java.lang.Float |
getNonStrokingAlphaConstant() |
This will get the non stroking alpha constant.
|
boolean |
getNonStrokingOverprintControl() |
This will get the overprint control for non stroking operations.
|
java.lang.Float |
getOverprintMode() |
This will get the overprint control mode.
|
java.lang.String |
getRenderingIntent() |
This will get the rendering intent.
|
java.lang.Float |
getSmoothnessTolerance() |
This will get the smothness tolerance.
|
java.lang.Float |
getStrokingAlphaConstant() |
This will get the stroking alpha constant.
|
boolean |
getStrokingOverprintControl() |
This will get the overprint control.
|
boolean |
getTextKnockoutFlag() |
This will get the text knockout flag.
|
void |
setAlphaSourceFlag(boolean alpha) |
This will get the alpha source flag.
|
void |
setAutomaticStrokeAdjustment(boolean sa) |
This will get the automatic stroke adjustment flag.
|
void |
setFlatnessTolerance(java.lang.Float flatness) |
This will get the flatness tolerance.
|
void |
setFontSetting(PDFontSetting fs) |
This will set the font setting for this graphics state.
|
void |
setLineCapStyle(int style) |
This will set the line cap style for the graphics state.
|
void |
setLineDashPattern(PDLineDashPattern dashPattern) |
This will set the dash pattern for the graphics state.
|
void |
setLineJoinStyle(int style) |
This will set the line join style.
|
void |
setLineWidth(java.lang.Float width) |
This will set the line width.
|
void |
setMiterLimit(java.lang.Float miterLimit) |
This will set the miter limit for the graphics state.
|
void |
setNonStrokingAlphaConstant(java.lang.Float alpha) |
This will get the non stroking alpha constant.
|
void |
setNonStrokingOverprintControl(boolean op) |
This will get the overprint control(OP).
|
void |
setOverprintMode(java.lang.Float overprintMode) |
This will get the overprint mode(OPM).
|
void |
setRenderingIntent(java.lang.String ri) |
This will set the rendering intent for the graphics state.
|
void |
setSmoothnessTolerance(java.lang.Float smoothness) |
This will get the smoothness tolerance.
|
void |
setStrokingAlphaConstant(java.lang.Float alpha) |
This will get the stroking alpha constant.
|
void |
setStrokingOverprintControl(boolean op) |
This will get the overprint control(OP).
|
void |
setTextKnockoutFlag(boolean tk) |
This will get the text knockout flag.
|
public static final java.lang.String RENDERING_INTENT_ABSOLUTE_COLORIMETRIC
public static final java.lang.String RENDERING_INTENT_RELATIVE_COLORIMETRIC
public static final java.lang.String RENDERING_INTENT_SATURATION
public static final java.lang.String RENDERING_INTENT_PERCEPTUAL
public PDExtendedGraphicsState()
public PDExtendedGraphicsState(COSDictionary dictionary)
dictionary
- The existing graphics state.public void copyIntoGraphicsState(PDGraphicsState gs) throws java.io.IOException
gs
- The state to copy this dictionaries values into.java.io.IOException
- If there is an error copying font information.public COSDictionary getCOSDictionary()
public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public java.lang.Float getLineWidth()
public void setLineWidth(java.lang.Float width)
width
- The line width for the object.public int getLineCapStyle()
public void setLineCapStyle(int style)
style
- The new line cap style to set.public int getLineJoinStyle()
public void setLineJoinStyle(int style)
style
- The new line join style.public java.lang.Float getMiterLimit()
public void setMiterLimit(java.lang.Float miterLimit)
miterLimit
- The new miter limit valuepublic PDLineDashPattern getLineDashPattern()
public void setLineDashPattern(PDLineDashPattern dashPattern)
dashPattern
- The dash patternpublic java.lang.String getRenderingIntent()
public void setRenderingIntent(java.lang.String ri)
ri
- The new rendering intentpublic boolean getStrokingOverprintControl()
public void setStrokingOverprintControl(boolean op)
op
- The overprint control.public boolean getNonStrokingOverprintControl()
public void setNonStrokingOverprintControl(boolean op)
op
- The overprint control.public java.lang.Float getOverprintMode()
public void setOverprintMode(java.lang.Float overprintMode)
overprintMode
- The overprint modepublic PDFontSetting getFontSetting()
public void setFontSetting(PDFontSetting fs)
fs
- The new font setting.public java.lang.Float getFlatnessTolerance()
public void setFlatnessTolerance(java.lang.Float flatness)
flatness
- The new flatness tolerancepublic java.lang.Float getSmoothnessTolerance()
public void setSmoothnessTolerance(java.lang.Float smoothness)
smoothness
- The new smoothness tolerancepublic boolean getAutomaticStrokeAdjustment()
public void setAutomaticStrokeAdjustment(boolean sa)
sa
- The new automatic stroke adjustment flag.public java.lang.Float getStrokingAlphaConstant()
public void setStrokingAlphaConstant(java.lang.Float alpha)
alpha
- The new stroking alpha constant.public java.lang.Float getNonStrokingAlphaConstant()
public void setNonStrokingAlphaConstant(java.lang.Float alpha)
alpha
- The new non stroking alpha constant.public boolean getAlphaSourceFlag()
public void setAlphaSourceFlag(boolean alpha)
alpha
- The alpha source flag.public boolean getTextKnockoutFlag()
public void setTextKnockoutFlag(boolean tk)
tk
- The text knockout flag.