Constructor and Description |
---|
PDGraphicsState(PDRectangle page)
Constructor with a given page size to initialize the clipping path.
|
Modifier and Type | Method and Description |
---|---|
PDGraphicsState |
clone() |
double |
getAlphaConstant()
Get the value of the stroke alpha constants property.
|
BlendMode |
getBlendMode()
Returns the current blend mode
|
Area |
getCurrentClippingPath()
This will get the current clipping path.
|
Matrix |
getCurrentTransformationMatrix()
Get the value of the CTM.
|
double |
getFlatness()
get the value of the flatness property.
|
int |
getLineCap()
Get the value of the line cap.
|
PDLineDashPattern |
getLineDashPattern()
This will get the current line dash pattern.
|
int |
getLineJoin()
Get the value of the line join.
|
float |
getLineWidth()
Get the value of the line width.
|
float |
getMiterLimit()
Get the value of the miter limit.
|
double |
getNonStrokeAlphaConstants()
Get the value of the non-stroke alpha constants property.
|
PDColor |
getNonStrokingColor()
Returns the non-stroking color.
|
PDColorSpace |
getNonStrokingColorSpace()
Returns the non-stroking color space.
|
Composite |
getNonStrokingJavaComposite() |
double |
getOverprintMode()
get the value of the overprint mode property.
|
RenderingIntent |
getRenderingIntent()
This will get the rendering intent.
|
double |
getSmoothness()
get the value of the smoothness property.
|
PDSoftMask |
getSoftMask()
returns the current softmask
|
PDColor |
getStrokingColor()
Returns the stroking color.
|
PDColorSpace |
getStrokingColorSpace()
Returns the stroking color space.
|
Composite |
getStrokingJavaComposite() |
PDTextState |
getTextState()
This will get the graphics text state.
|
COSBase |
getTransfer()
This will get the transfer function.
|
void |
intersectClippingPath(Area area)
Modify the current clipping path by intersecting it with the given path.
|
void |
intersectClippingPath(GeneralPath path)
Modify the current clipping path by intersecting it with the given path.
|
boolean |
isAlphaSource()
get the value of the stroke alpha source property.
|
boolean |
isOverprint()
/**
get the value of the overprint property.
|
boolean |
isStrokeAdjustment()
Get the value of the stroke adjustment parameter.
|
void |
setAlphaConstant(double value)
set the value of the stroke alpha constants property.
|
void |
setAlphaSource(boolean value)
set the value of the alpha source property.
|
void |
setBlendMode(BlendMode blendMode)
Sets the blend mode in the current graphics state
|
void |
setCurrentTransformationMatrix(Matrix value)
Set the value of the CTM.
|
void |
setFlatness(double value)
set the value of the flatness property.
|
void |
setLineCap(int value)
set the value of the line cap.
|
void |
setLineDashPattern(PDLineDashPattern value)
This will set the current line dash pattern.
|
void |
setLineJoin(int value)
Get the value of the line join.
|
void |
setLineWidth(float value)
set the value of the line width.
|
void |
setMiterLimit(float value)
set the value of the miter limit.
|
void |
setNonStrokeAlphaConstants(double value)
set the value of the non-stroke alpha constants property.
|
void |
setNonStrokingColor(PDColor color)
Sets the non-stroking color.
|
void |
setNonStrokingColorSpace(PDColorSpace colorSpace)
Sets the the non-stroking color space.
|
void |
setOverprint(boolean value)
set the value of the overprint property.
|
void |
setOverprintMode(double value)
set the value of the overprint mode property.
|
void |
setRenderingIntent(RenderingIntent value)
This will set the rendering intent.
|
void |
setSmoothness(double value)
set the value of the smoothness property.
|
void |
setSoftMask(PDSoftMask softMask)
Sets the current soft mask
|
void |
setStrokeAdjustment(boolean value)
set the value of the stroke adjustment.
|
void |
setStrokingColor(PDColor color)
Sets the stroking color.
|
void |
setStrokingColorSpace(PDColorSpace colorSpace)
Sets the the stroking color space.
|
void |
setTextState(PDTextState value)
This will set the graphics text state.
|
void |
setTransfer(COSBase transfer)
This will set the transfer function.
|
public PDGraphicsState(PDRectangle page)
page
- the size of the pagepublic Matrix getCurrentTransformationMatrix()
public void setCurrentTransformationMatrix(Matrix value)
value
- The current transformation matrix.public float getLineWidth()
public void setLineWidth(float value)
value
- The current line width.public int getLineCap()
public void setLineCap(int value)
value
- The current line cap.public int getLineJoin()
public void setLineJoin(int value)
value
- The current line joinpublic float getMiterLimit()
public void setMiterLimit(float value)
value
- The current miter limit.public boolean isStrokeAdjustment()
public void setStrokeAdjustment(boolean value)
value
- The value of the stroke adjustment parameter.public double getAlphaConstant()
public void setAlphaConstant(double value)
value
- The value of the stroke alpha constants parameter.public double getNonStrokeAlphaConstants()
public void setNonStrokeAlphaConstants(double value)
value
- The value of the non-stroke alpha constants parameter.public boolean isAlphaSource()
public void setAlphaSource(boolean value)
value
- The value of the alpha source parameter.public PDSoftMask getSoftMask()
public void setSoftMask(PDSoftMask softMask)
softMask
- public BlendMode getBlendMode()
public void setBlendMode(BlendMode blendMode)
blendMode
- public boolean isOverprint()
public void setOverprint(boolean value)
value
- The value of the overprint parameter.public double getOverprintMode()
public void setOverprintMode(double value)
value
- The value of the overprint mode parameter.public double getFlatness()
public void setFlatness(double value)
value
- The value of the flatness parameter.public double getSmoothness()
public void setSmoothness(double value)
value
- The value of the smoothness parameter.public PDTextState getTextState()
public void setTextState(PDTextState value)
value
- The graphics text state.public PDLineDashPattern getLineDashPattern()
public void setLineDashPattern(PDLineDashPattern value)
value
- The new line dash pattern.public RenderingIntent getRenderingIntent()
PDExtendedGraphicsState
public void setRenderingIntent(RenderingIntent value)
value
- The new rendering intent.public PDGraphicsState clone()
public PDColor getStrokingColor()
public void setStrokingColor(PDColor color)
color
- The new stroking colorpublic PDColor getNonStrokingColor()
public void setNonStrokingColor(PDColor color)
color
- The new non-stroking colorpublic PDColorSpace getStrokingColorSpace()
public void setStrokingColorSpace(PDColorSpace colorSpace)
colorSpace
- The new stroking color space.public PDColorSpace getNonStrokingColorSpace()
public void setNonStrokingColorSpace(PDColorSpace colorSpace)
colorSpace
- The new non-stroking color space.public void intersectClippingPath(GeneralPath path)
path
- path to intersect with the clipping pathpublic void intersectClippingPath(Area area)
area
- area to intersect with the clipping pathpublic Area getCurrentClippingPath()
public Composite getStrokingJavaComposite()
public Composite getNonStrokingJavaComposite()
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, 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.