public class GradientFillSettings extends BaseFillSettings implements IGradientFillSettings
Gradient fill effect settings
BaseFillSettings
Constructor and Description |
---|
GradientFillSettings()
Initializes a new instance of the
GradientFillSettings class. |
Modifier and Type | Method and Description |
---|---|
GradientColorPoint |
addColorPoint()
Adds the color point.
|
GradientTransparencyPoint |
addTransparencyPoint()
Adds the color point.
|
static List<OSTypeStructure> |
generateLfx2ResourceNodes()
Generates the LFX2 resource nodes.
|
boolean |
getAlignWithLayer()
Gets a value indicating whether [align with layer].
|
double |
getAngle()
Gets the angle.
|
Color |
getColor()
Gets the color.
|
IGradientColorPoint[] |
getColorPoints()
Gets the color points.
|
boolean |
getDither()
Gets a value indicating whether this
GradientFillSettings is dither. |
int |
getFillType()
The fill type
|
String |
getGradientName()
Gets the name of the gradient.
|
int |
getGradientType()
Gets the type of the gradient.
|
double |
getHorizontalOffset()
Gets the horizontal offset.
|
boolean |
getReverse()
Gets a value indicating whether this
GradientFillSettings is reverse. |
IGradientTransparencyPoint[] |
getTransparencyPoints()
Gets the transparency points.
|
double |
getVerticalOffset()
Gets the vertical offset.
|
void |
removeColorPoint(IGradientColorPoint point)
Removes the color point.
|
void |
removeTransparencyPoint(IGradientTransparencyPoint point)
Removes the transparency point.
|
void |
setAlignWithLayer(boolean value)
Sets a value indicating whether [align with layer].
|
void |
setAngle(double value)
Sets the angle.
|
void |
setColor(Color value)
Sets the color.
|
void |
setColorPoints(IGradientColorPoint[] value)
The color points.
|
void |
setDither(boolean value)
Sets a value indicating whether this
GradientFillSettings is dither. |
void |
setGradientName(String value)
Sets the name of the gradient.
|
void |
setGradientType(int value)
Sets the type of the gradient.
|
void |
setHorizontalOffset(double value)
Sets the horizontal offset.
|
void |
setReverse(boolean value)
Sets a value indicating whether this
GradientFillSettings is reverse. |
void |
setTransparencyPoints(IGradientTransparencyPoint[] value)
The transparency points.
|
void |
setVerticalOffset(double value)
Sets the vertical offset.
|
public GradientFillSettings()
Initializes a new instance of the GradientFillSettings
class.
public final Color getColor()
Gets the color.
Value: The color.getColor
in interface IGradientFillSettings
public final void setColor(Color value)
Sets the color.
Value: The color.setColor
in interface IGradientFillSettings
value
- the color.public final boolean getAlignWithLayer()
Gets a value indicating whether [align with layer].
Value:true
if [align with layer]; otherwise, false
.getAlignWithLayer
in interface IGradientFillSettings
public final void setAlignWithLayer(boolean value)
Sets a value indicating whether [align with layer].
Value:true
if [align with layer]; otherwise, false
.setAlignWithLayer
in interface IGradientFillSettings
value
- a value indicating whether [align with layer].public final boolean getDither()
Gets a value indicating whether this GradientFillSettings
is dither.
true
if dither; otherwise, false
.getDither
in interface IGradientFillSettings
GradientFillSettings
is dither.public final void setDither(boolean value)
Sets a value indicating whether this GradientFillSettings
is dither.
true
if dither; otherwise, false
.setDither
in interface IGradientFillSettings
value
- a value indicating whether this GradientFillSettings
is dither.public final boolean getReverse()
Gets a value indicating whether this GradientFillSettings
is reverse.
true
if reverse; otherwise, false
.getReverse
in interface IGradientFillSettings
GradientFillSettings
is reverse.public final void setReverse(boolean value)
Sets a value indicating whether this GradientFillSettings
is reverse.
true
if reverse; otherwise, false
.setReverse
in interface IGradientFillSettings
value
- a value indicating whether this GradientFillSettings
is reverse.public final double getAngle()
Gets the angle.
Value: The angle.getAngle
in interface IGradientFillSettings
public final void setAngle(double value)
Sets the angle.
setAngle
in interface IGradientFillSettings
value
- the angle.PsdImageArgumentException
- Angle must be in range from -180.0 to 180.0
Value:
The angle.public final int getGradientType()
Gets the type of the gradient.
Value: The type of the gradient.getGradientType
in interface IGradientFillSettings
public final void setGradientType(int value)
Sets the type of the gradient.
Value: The type of the gradient.setGradientType
in interface IGradientFillSettings
value
- the type of the gradient.public final String getGradientName()
Gets the name of the gradient.
Value: The name of the gradient.getGradientName
in interface IGradientFillSettings
public final void setGradientName(String value)
Sets the name of the gradient.
Value: The name of the gradient.setGradientName
in interface IGradientFillSettings
value
- the name of the gradient.public final double getHorizontalOffset()
Gets the horizontal offset.
Value: The horizontal offset.getHorizontalOffset
in interface IGradientFillSettings
public final void setHorizontalOffset(double value)
Sets the horizontal offset.
Value: The horizontal offset.setHorizontalOffset
in interface IGradientFillSettings
value
- the horizontal offset.public final double getVerticalOffset()
Gets the vertical offset.
Value: The vertical offset.getVerticalOffset
in interface IGradientFillSettings
public final void setVerticalOffset(double value)
Sets the vertical offset.
Value: The vertical offset.setVerticalOffset
in interface IGradientFillSettings
value
- the vertical offset.public int getFillType()
The fill type
getFillType
in interface IFillSettings
getFillType
in class BaseFillSettings
public final IGradientColorPoint[] getColorPoints()
Gets the color points.
Value: The color points.getColorPoints
in interface IGradientFillSettings
public final void setColorPoints(IGradientColorPoint[] value)
The color points.
Value: The color points.setColorPoints
in interface IGradientFillSettings
value
- the color points.public final IGradientTransparencyPoint[] getTransparencyPoints()
Gets the transparency points.
Value: The transparency points.getTransparencyPoints
in interface IGradientFillSettings
public final void setTransparencyPoints(IGradientTransparencyPoint[] value)
The transparency points.
Value: The transparency points.setTransparencyPoints
in interface IGradientFillSettings
value
- the transparency points.public static List<OSTypeStructure> generateLfx2ResourceNodes()
Generates the LFX2 resource nodes.
OSTypeStructure
public final GradientColorPoint addColorPoint()
Adds the color point.
public final GradientTransparencyPoint addTransparencyPoint()
Adds the color point.
public final void removeTransparencyPoint(IGradientTransparencyPoint point)
Removes the transparency point.
point
- The point.public final void removeColorPoint(IGradientColorPoint point)
Removes the color point.
point
- The point.