public class PDExtendedGraphicsState extends Object implements COSObjectable
Constructor and Description |
---|
PDExtendedGraphicsState()
Default constructor, creates blank graphics state.
|
PDExtendedGraphicsState(COSDictionary dictionary)
Create a graphics state from an existing dictionary.
|
Modifier and Type | Method and 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.
|
BlendMode |
getBlendMode()
Returns the blending mode stored in the COS dictionary
|
COSDictionary |
getCOSObject()
This will get the underlying dictionary that this class acts on.
|
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.
|
Float |
getLineWidth()
This will get the line width.
|
Float |
getMiterLimit()
This will get the miter limit.
|
Float |
getNonStrokingAlphaConstant()
This will get the non stroking alpha constant.
|
boolean |
getNonStrokingOverprintControl()
This will get the overprint control for non stroking operations.
|
Float |
getOverprintMode()
This will get the overprint control mode.
|
RenderingIntent |
getRenderingIntent()
This will get the rendering intent.
|
Float |
getSmoothnessTolerance()
This will get the smothness tolerance.
|
PDSoftMask |
getSoftMask()
Returns the soft mask stored in the COS dictionary
|
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.
|
COSBase |
getTransfer()
This will get the transfer function of the /TR dictionary.
|
COSBase |
getTransfer2()
This will get the transfer function of the /TR2 dictionary.
|
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(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(Float width)
This will set the line width.
|
void |
setMiterLimit(Float miterLimit)
This will set the miter limit for the graphics state.
|
void |
setNonStrokingAlphaConstant(Float alpha)
This will get the non stroking alpha constant.
|
void |
setNonStrokingOverprintControl(boolean op)
This will get the overprint control(OP).
|
void |
setOverprintMode(Float overprintMode)
This will get the overprint mode(OPM).
|
void |
setRenderingIntent(String ri)
This will set the rendering intent for the graphics state.
|
void |
setSmoothnessTolerance(Float smoothness)
This will get the smoothness tolerance.
|
void |
setStrokingAlphaConstant(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.
|
void |
setTransfer(COSBase transfer)
This will set the transfer function of the /TR dictionary.
|
void |
setTransfer2(COSBase transfer2)
This will set the transfer function of the /TR2 dictionary.
|
public PDExtendedGraphicsState()
public PDExtendedGraphicsState(COSDictionary dictionary)
dictionary
- The existing graphics state.public void copyIntoGraphicsState(PDGraphicsState gs) throws IOException
gs
- The state to copy this dictionaries values into.IOException
- If there is an error copying font information.public COSDictionary getCOSObject()
getCOSObject
in interface COSObjectable
public Float getLineWidth()
public void setLineWidth(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 Float getMiterLimit()
public void setMiterLimit(Float miterLimit)
miterLimit
- The new miter limit valuepublic PDLineDashPattern getLineDashPattern()
public void setLineDashPattern(PDLineDashPattern dashPattern)
dashPattern
- The dash patternpublic RenderingIntent getRenderingIntent()
public void setRenderingIntent(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 Float getOverprintMode()
public void setOverprintMode(Float overprintMode)
overprintMode
- The overprint modepublic PDFontSetting getFontSetting()
public void setFontSetting(PDFontSetting fs)
fs
- The new font setting.public Float getFlatnessTolerance()
public void setFlatnessTolerance(Float flatness)
flatness
- The new flatness tolerancepublic Float getSmoothnessTolerance()
public void setSmoothnessTolerance(Float smoothness)
smoothness
- The new smoothness tolerancepublic boolean getAutomaticStrokeAdjustment()
public void setAutomaticStrokeAdjustment(boolean sa)
sa
- The new automatic stroke adjustment flag.public Float getStrokingAlphaConstant()
public void setStrokingAlphaConstant(Float alpha)
alpha
- The new stroking alpha constant.public Float getNonStrokingAlphaConstant()
public void setNonStrokingAlphaConstant(Float alpha)
alpha
- The new non stroking alpha constant.public boolean getAlphaSourceFlag()
public void setAlphaSourceFlag(boolean alpha)
alpha
- The alpha source flag.public BlendMode getBlendMode()
public PDSoftMask getSoftMask()
public boolean getTextKnockoutFlag()
public void setTextKnockoutFlag(boolean tk)
tk
- The text knockout flag.public COSBase getTransfer()
public void setTransfer(COSBase transfer)
transfer
- The transfer function. According to the PDF specification, this is either a
single function (which applies to all process colorants) or an array of four functions (which
apply to the process colorants individually). The name Identity may be used to represent the
identity function.public COSBase getTransfer2()
public void setTransfer2(COSBase transfer2)
transfer2
- The transfer function. According to the PDF specification, this is either a
single function (which applies to all process colorants) or an array of four functions (which
apply to the process colorants individually). The name Identity may be used to represent the
identity function, and the name Default denotes the transfer function that was in effect at
the start of the page.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.