TextShadow
Inheritance: java.lang.Object, com.groupdocs.signature.domain.extensions.signoptions.SignatureExtension
public class TextShadow extends SignatureExtension
Represents text shadow properties for text signatures. The result may vary depending on the signature type and document format. TextShadow is recommended for using with TextAsImage signature for all supported document types, also with simple TextSignature and TextSignature as watermark for Cells (.xslx) and Slides (.pptx). Simple TextSignature for Words (.docx) is recommended too, but has limited functionality.
Constructors
Constructor | Description |
---|---|
TextShadow() | Creates TextShadow with default options. |
Methods
Method | Description |
---|---|
getDistance() | Gets or sets distance from text to shadow. |
setDistance(double value) | Gets or sets distance from text to shadow. |
getAngle() | Gets or sets angle for placing shadow relative to the text. |
setAngle(double value) | Gets or sets angle for placing shadow relative to the text. |
getColor() | Gets or sets color of the shadow. |
setColor(Color value) | Gets or sets color of the shadow. |
setColor(String value) | Gets or sets color of the shadow. |
getTransparency() | Gets or sets transparency of the shadow. |
setTransparency(double value) | Gets or sets transparency of the shadow. |
getBlur() | Gets or sets blur of the shadow. |
setBlur(double value) | Gets or sets blur of the shadow. |
TextShadow()
public TextShadow()
Creates TextShadow with default options.
getDistance()
public final double getDistance()
Gets or sets distance from text to shadow. Default value is 1.
Returns: double
setDistance(double value)
public final void setDistance(double value)
Gets or sets distance from text to shadow. Default value is 1.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
getAngle()
public final double getAngle()
Gets or sets angle for placing shadow relative to the text. Default value is 0.
Returns: double
setAngle(double value)
public final void setAngle(double value)
Gets or sets angle for placing shadow relative to the text. Default value is 0.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
getColor()
public final Color getColor()
Gets or sets color of the shadow. Default value is Black.
Returns: java.awt.Color
setColor(Color value)
public final void setColor(Color value)
Gets or sets color of the shadow. Default value is Black.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Color |
setColor(String value)
public final void setColor(String value)
Gets or sets color of the shadow. Default value is Black.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getTransparency()
public final double getTransparency()
Gets or sets transparency of the shadow. Default value is 0.
Returns: double
setTransparency(double value)
public final void setTransparency(double value)
Gets or sets transparency of the shadow. Default value is 0.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
getBlur()
public final double getBlur()
Gets or sets blur of the shadow. Default value is 4.
Returns: double
setBlur(double value)
public final void setBlur(double value)
Gets or sets blur of the shadow. Default value is 4.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |