|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdmodel.graphics.PDExtendedGraphicsState
This class represents the graphics state dictionary that is stored in the PDF document. The PDGraphicsStateValue holds the current runtime values as a stream is being executed.
Field Summary | |
static String |
RENDERING_INTENT_ABSOLUTE_COLORIMETRIC
Rendering intent constants, see PDF Reference 1.5 Section 4.5.4 Rendering Intents. |
static String |
RENDERING_INTENT_PERCEPTUAL
Rendering intent constants, see PDF Reference 1.5 Section 4.5.4 Rendering Intents. |
static String |
RENDERING_INTENT_RELATIVE_COLORIMETRIC
Rendering intent constants, see PDF Reference 1.5 Section 4.5.4 Rendering Intents. |
static String |
RENDERING_INTENT_SATURATION
Rendering intent constants, see PDF Reference 1.5 Section 4.5.4 Rendering Intents. |
Constructor Summary | |
PDExtendedGraphicsState()
Default constructor, creates blank graphics state. |
|
PDExtendedGraphicsState(COSDictionary dictionary)
Create a graphics state from an existing dictionary. |
Method Summary | |
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. |
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 |
getNonStrokingAlpaConstant()
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. |
String |
getRenderingIntent()
This will get the rendering intent. |
Float |
getSmoothnessTolerance()
This will get the smothness tolerance. |
Float |
getStrokingAlpaConstant()
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(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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String RENDERING_INTENT_ABSOLUTE_COLORIMETRIC
public static final String RENDERING_INTENT_RELATIVE_COLORIMETRIC
public static final String RENDERING_INTENT_SATURATION
public static final String RENDERING_INTENT_PERCEPTUAL
Constructor Detail |
public PDExtendedGraphicsState()
public PDExtendedGraphicsState(COSDictionary dictionary)
dictionary
- The existing graphics state.Method Detail |
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 getCOSDictionary()
public COSBase 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 String 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 getStrokingAlpaConstant()
public void setStrokingAlphaConstant(Float alpha)
alpha
- The new stroking alpha constant.public Float getNonStrokingAlpaConstant()
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 boolean getTextKnockoutFlag()
public void setTextKnockoutFlag(boolean tk)
tk
- The text knockout flag.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |