This class will hold the current state of the graphics parameters when executing a
content stream.
Method from org.apache.pdfbox.pdmodel.graphics.PDGraphicsState Detail: |
public Object clone() {
PDGraphicsState clone = null;
try
{
clone = (PDGraphicsState)super.clone();
clone.setTextState( (PDTextState)textState.clone() );
clone.setCurrentTransformationMatrix( currentTransformationMatrix.copy() );
clone.strokingColor = (PDColorState)strokingColor.clone();
clone.nonStrokingColor = ((PDColorState)nonStrokingColor.clone());
if( lineDashPattern != null )
{
clone.setLineDashPattern( (PDLineDashPattern)lineDashPattern.clone() );
}
if (currentClippingPath != null)
{
clone.setCurrentClippingPath((GeneralPath)currentClippingPath.clone());
}
}
catch( CloneNotSupportedException e )
{
e.printStackTrace();
}
return clone;
}
|
public double getAlphaConstants() {
return alphaConstants;
}
Get the value of the alpha constants property. |
public Shape getCurrentClippingPath() {
return currentClippingPath;
}
This will get the current clipping path. |
public Matrix getCurrentTransformationMatrix() {
return currentTransformationMatrix;
}
Get the value of the CTM. |
public double getFlatness() {
return flatness;
}
get the value of the flatness property. |
public int getLineCap() {
return lineCap;
}
Get the value of the line cap. |
public PDLineDashPattern getLineDashPattern() {
return lineDashPattern;
}
This will get the current line dash pattern. |
public int getLineJoin() {
return lineJoin;
}
Get the value of the line join. |
public double getLineWidth() {
return lineWidth;
}
Get the value of the line width. |
public double getMiterLimit() {
return miterLimit;
}
Get the value of the miter limit. |
public PDColorState getNonStrokingColor() {
return nonStrokingColor;
}
Returns the non-stroking color state. |
public double getOverprintMode() {
return overprintMode;
}
get the value of the overprint mode property. |
public String getRenderingIntent() {
return renderingIntent;
}
This will get the rendering intent. |
public double getSmoothness() {
return smoothness;
}
get the value of the smoothness property. |
public PDColorState getStrokingColor() {
return strokingColor;
}
Returns the stroking color state. |
public PDTextState getTextState() {
return textState;
}
This will get the graphics text state. |
public boolean isAlphaSource() {
return alphaSource;
}
get the value of the alpha source property. |
public boolean isOverprint() {
return overprint;
}
get the value of the overprint property. |
public boolean isStrokeAdjustment() {
return strokeAdjustment;
}
Get the value of the stroke adjustment parameter. |
public void setAlphaConstants(double value) {
alphaConstants = value;
}
set the value of the alpha constants property. |
public void setAlphaSource(boolean value) {
alphaSource = value;
}
set the value of the alpha source property. |
public void setCurrentClippingPath(Shape pCurrentClippingPath) {
if (pCurrentClippingPath != null)
{
if (pCurrentClippingPath instanceof GeneralPath)
{
currentClippingPath = (GeneralPath)pCurrentClippingPath;
}
else
{
currentClippingPath = new GeneralPath();
currentClippingPath.append(pCurrentClippingPath,false);
}
}
else
{
currentClippingPath = null;
}
}
This will set the current clipping path. |
public void setCurrentTransformationMatrix(Matrix value) {
currentTransformationMatrix = value;
}
Set the value of the CTM. |
public void setFlatness(double value) {
flatness = value;
}
set the value of the flatness property. |
public void setLineCap(int value) {
lineCap = value;
}
set the value of the line cap. |
public void setLineDashPattern(PDLineDashPattern value) {
lineDashPattern = value;
}
This will set the current line dash pattern. |
public void setLineJoin(int value) {
lineJoin = value;
}
Get the value of the line join. |
public void setLineWidth(double value) {
lineWidth = value;
}
set the value of the line width. |
public void setMiterLimit(double value) {
miterLimit = value;
}
set the value of the miter limit. |
public void setOverprint(boolean value) {
overprint = value;
}
set the value of the overprint property. |
public void setOverprintMode(double value) {
overprintMode = value;
}
set the value of the overprint mode property. |
public void setRenderingIntent(String value) {
renderingIntent = value;
}
This will set the rendering intent. |
public void setSmoothness(double value) {
smoothness = value;
}
set the value of the smoothness property. |
public void setStrokeAdjustment(boolean value) {
strokeAdjustment = value;
}
set the value of the stroke adjustment. |
public void setTextState(PDTextState value) {
textState = value;
}
This will set the graphics text state. |