Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.graphics.state

public final Class PDSoftMask

extends Object
implements COSObjectable
Class Inheritance
All Implemented Interfaces
org.apache.pdfbox.pdmodel.common.COSObjectable
Imports
java.io.IOException, org.apache.commons.logging.Log, .LogFactory, org.apache.pdfbox.cos.COSArray, .COSBase, .COSDictionary, .COSName, org.apache.pdfbox.pdmodel.common.COSObjectable, org.apache.pdfbox.pdmodel.common.function.PDFunction, org.apache.pdfbox.pdmodel.graphics.PDXObject, org.apache.pdfbox.pdmodel.graphics.form.PDTransparencyGroup, org.apache.pdfbox.util.Matrix

Soft mask.
Author
Kühn & Weyh Software GmbH

Field Summary

Modifier and TypeField and Description
private COSArray
private Matrix
ctm

To allow a soft mask to know the CTM at the time of activation of the ExtGState.

private final COSDictionary
private PDTransparencyGroup
private static final Log
private COSName
private PDFunction

Constructor Summary

AccessConstructor and Description
public
PDSoftMask(COSDictionary
The soft mask dictionary.
dictionary
)

Creates a new soft mask.

Method Summary

Modifier and TypeMethod and Description
public static PDSoftMask

Returns:

the newly created instance of PDSoftMask
create
(COSBase
SMask
dictionary
)

Creates a new soft mask.

public COSArray

Returns:

the backdrop color
getBackdropColor
()

Returns the backdrop color.

public COSDictionary
getCOSObject()

Implements org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

Convert this standard java object to a COS object.

public PDTransparencyGroup

Returns:

form containing the transparency group
getGroup
()

Returns the G entry of the soft mask object

public Matrix

Returns:

the transformation matrix
getInitialTransformationMatrix
()

Returns the CTM at the time the ExtGState was activated.

public COSName

Returns:

the subtype of the soft mask
getSubType
()

Returns the subtype of the soft mask (Alpha, Luminosity) - S entry

public PDFunction

Returns:

the transfer function
getTransferFunction
()

Returns the transfer function.

pack-priv void
setInitialTransformationMatrix(Matrix
the transformation matrix
ctm
)

Set the CTM that is valid at the time the ExtGState was activated.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

backdropColorback to summary
private COSArray backdropColor
ctmback to summary
private Matrix ctm

To allow a soft mask to know the CTM at the time of activation of the ExtGState.

dictionaryback to summary
private final COSDictionary dictionary
groupback to summary
private PDTransparencyGroup group
LOGback to summary
private static final Log LOG
subTypeback to summary
private COSName subType
transferFunctionback to summary
private PDFunction transferFunction

Constructor Detail

PDSoftMaskback to summary
public PDSoftMask(COSDictionary dictionary)

Creates a new soft mask.

Parameters
dictionary:COSDictionary

The soft mask dictionary.

Method Detail

createback to summary
public static PDSoftMask create(COSBase dictionary)

Creates a new soft mask.

Parameters
dictionary:COSBase

SMask

Returns:PDSoftMask

the newly created instance of PDSoftMask

getBackdropColorback to summary
public COSArray getBackdropColor()

Returns the backdrop color.

Returns:COSArray

the backdrop color

getCOSObjectback to summary
public COSDictionary getCOSObject()

Implements org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

Doc from org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject.

Convert this standard java object to a COS object.

Returns:COSDictionary

The cos object that matches this Java object.

Annotations
@Override
getGroupback to summary
public PDTransparencyGroup getGroup() throws IOException

Returns the G entry of the soft mask object

Returns:PDTransparencyGroup

form containing the transparency group

Exceptions
IOException:
if the group could not be read
getInitialTransformationMatrixback to summary
public Matrix getInitialTransformationMatrix()

Returns the CTM at the time the ExtGState was activated.

Returns:Matrix

the transformation matrix

getSubTypeback to summary
public COSName getSubType()

Returns the subtype of the soft mask (Alpha, Luminosity) - S entry

Returns:COSName

the subtype of the soft mask

getTransferFunctionback to summary
public PDFunction getTransferFunction() throws IOException

Returns the transfer function.

Returns:PDFunction

the transfer function

Exceptions
IOException:
If we are unable to create the PDFunction object.
setInitialTransformationMatrixback to summary
pack-priv void setInitialTransformationMatrix(Matrix ctm)

Set the CTM that is valid at the time the ExtGState was activated.

Parameters
ctm:Matrix

the transformation matrix