public class PDGraphicsState extends Object implements Cloneable
Constructor and Description |
---|
PDGraphicsState()
Default constructor.
|
PDGraphicsState(PDRectangle page)
Constructor with a given pagesize to initialize the clipping path.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
double |
getAlphaConstants()
Get the value of the stroke alpha constants property.
|
Shape |
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.
|
double |
getLineWidth()
Get the value of the line width.
|
double |
getMiterLimit()
Get the value of the miter limit.
|
double |
getNonStrokeAlphaConstants()
Get the value of the non-stroke alpha constants property.
|
Composite |
getNonStrokeJavaComposite() |
PDColorState |
getNonStrokingColor()
Returns the non-stroking color state.
|
double |
getOverprintMode()
get the value of the overprint mode property.
|
String |
getRenderingIntent()
This will get the rendering intent.
|
double |
getSmoothness()
get the value of the smoothness property.
|
Composite |
getStrokeJavaComposite() |
PDColorState |
getStrokingColor()
Returns the stroking color state.
|
PDTextState |
getTextState()
This will get the graphics text state.
|
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 |
setAlphaConstants(double value)
set the value of the stroke alpha constants property.
|
void |
setAlphaSource(boolean value)
set the value of the alpha source property.
|
void |
setCurrentClippingPath(Shape pCurrentClippingPath)
This will set the current clipping path.
|
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(double value)
set the value of the line width.
|
void |
setMiterLimit(double value)
set the value of the miter limit.
|
void |
setNonStrokeAlphaConstants(double value)
set the value of the non-stroke alpha constants property.
|
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(String value)
This will set the rendering intent.
|
void |
setSmoothness(double value)
set the value of the smoothness property.
|
void |
setStrokeAdjustment(boolean value)
set the value of the stroke adjustment.
|
void |
setTextState(PDTextState value)
This will set the graphics text state.
|
public PDGraphicsState()
public PDGraphicsState(PDRectangle page)
page
- the size of the pagepublic Matrix getCurrentTransformationMatrix()
public void setCurrentTransformationMatrix(Matrix value)
value
- The current transformation matrix.public double getLineWidth()
public void setLineWidth(double 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 double getMiterLimit()
public void setMiterLimit(double value)
value
- The current miter limit.public boolean isStrokeAdjustment()
public void setStrokeAdjustment(boolean value)
value
- The value of the stroke adjustment parameter.public double getAlphaConstants()
public void setAlphaConstants(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 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 String getRenderingIntent()
PDExtendedGraphicsState
public void setRenderingIntent(String value)
value
- The new rendering intent.public PDColorState getStrokingColor()
public PDColorState getNonStrokingColor()
public void setCurrentClippingPath(Shape pCurrentClippingPath)
pCurrentClippingPath
- The current clipping path.public Shape getCurrentClippingPath()
public Composite getStrokeJavaComposite()
public Composite getNonStrokeJavaComposite()
Copyright © 2002-2016 The Apache Software Foundation. All Rights Reserved.