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 or sets a value indicating whether [align with layer].
|
double |
getAngle()
Gets or sets the angle.
|
Color |
getColor()
Gets or sets the color.
|
IGradientColorPoint[] |
getColorPoints()
Gets or sets the color points.
|
boolean |
getDither()
Gets or sets a value indicating whether this
GradientFillSettings is dither. |
int |
getFillType()
The fill type
|
String |
getGradientName()
Gets or sets the name of the gradient.
|
int |
getGradientType()
Gets or sets the type of the gradient.
|
double |
getHorizontalOffset()
Gets or sets the horizontal offset.
|
boolean |
getReverse()
Gets or sets a value indicating whether this
GradientFillSettings is reverse. |
int |
getScale()
Gets or sets the scale.
|
IGradientTransparencyPoint[] |
getTransparencyPoints()
Gets or sets the transparency points.
|
double |
getVerticalOffset()
Gets or sets the vertical offset.
|
void |
removeColorPoint(IGradientColorPoint point)
Removes the color point.
|
void |
removeTransparencyPoint(IGradientTransparencyPoint point)
Removes the transparency point.
|
void |
setAlignWithLayer(boolean value)
Gets or sets a value indicating whether [align with layer].
|
void |
setAngle(double value)
Gets or sets the angle.
|
void |
setColor(Color value)
Gets or sets the color.
|
void |
setColorPoints(IGradientColorPoint[] value)
Gets or sets the color points.
|
void |
setDither(boolean value)
Gets or sets a value indicating whether this
GradientFillSettings is dither. |
void |
setGradientName(String value)
Gets or sets the name of the gradient.
|
void |
setGradientType(int value)
Gets or sets the type of the gradient.
|
void |
setHorizontalOffset(double value)
Gets or sets the horizontal offset.
|
void |
setReverse(boolean value)
Gets or sets a value indicating whether this
GradientFillSettings is reverse. |
void |
setScale(int value)
Gets or sets the scale.
|
void |
setTransparencyPoints(IGradientTransparencyPoint[] value)
Gets or sets the transparency points.
|
void |
setVerticalOffset(double value)
Gets or sets the vertical offset.
|
public GradientFillSettings()
Initializes a new instance of the GradientFillSettings
class.
public final Color getColor()
Gets or sets the color.
Value: The color.getColor
in interface IGradientFillSettings
public final void setColor(Color value)
Gets or sets the color.
Value: The color.setColor
in interface IGradientFillSettings
public final boolean getAlignWithLayer()
Gets or sets 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)
Gets or sets a value indicating whether [align with layer].
Value:true
if [align with layer]; otherwise, false
.setAlignWithLayer
in interface IGradientFillSettings
public final boolean getDither()
Gets or sets a value indicating whether this GradientFillSettings
is dither.
true
if dither; otherwise, false
.getDither
in interface IGradientFillSettings
public final void setDither(boolean value)
Gets or sets a value indicating whether this GradientFillSettings
is dither.
true
if dither; otherwise, false
.setDither
in interface IGradientFillSettings
public final boolean getReverse()
Gets or sets a value indicating whether this GradientFillSettings
is reverse.
true
if reverse; otherwise, false
.getReverse
in interface IGradientFillSettings
public final void setReverse(boolean value)
Gets or sets a value indicating whether this GradientFillSettings
is reverse.
true
if reverse; otherwise, false
.setReverse
in interface IGradientFillSettings
public final double getAngle()
Gets or sets the angle.
getAngle
in interface IGradientFillSettings
PsdImageArgumentException
- Angle must be in range from -180.0 to 180.0
Value:
The angle.public final void setAngle(double value)
Gets or sets the angle.
setAngle
in interface IGradientFillSettings
PsdImageArgumentException
- Angle must be in range from -180.0 to 180.0
Value:
The angle.public final int getScale()
Gets or sets the scale.
getScale
in interface IGradientFillSettings
PsdImageArgumentException
- Scale must be in range from 1 to 1000.
Value:
The scale.public final void setScale(int value)
Gets or sets the scale.
setScale
in interface IGradientFillSettings
PsdImageArgumentException
- Scale must be in range from 1 to 1000.
Value:
The scale.public final int getGradientType()
Gets or sets the type of the gradient.
Value: The type of the gradient.getGradientType
in interface IGradientFillSettings
public final void setGradientType(int value)
Gets or sets the type of the gradient.
Value: The type of the gradient.setGradientType
in interface IGradientFillSettings
public final String getGradientName()
Gets or sets the name of the gradient.
Value: The name of the gradient.getGradientName
in interface IGradientFillSettings
public final void setGradientName(String value)
Gets or sets the name of the gradient.
Value: The name of the gradient.setGradientName
in interface IGradientFillSettings
public final double getHorizontalOffset()
Gets or sets the horizontal offset.
Value: The horizontal offset.getHorizontalOffset
in interface IGradientFillSettings
public final void setHorizontalOffset(double value)
Gets or sets the horizontal offset.
Value: The horizontal offset.setHorizontalOffset
in interface IGradientFillSettings
public final double getVerticalOffset()
Gets or sets the vertical offset.
Value: The vertical offset.getVerticalOffset
in interface IGradientFillSettings
public final void setVerticalOffset(double value)
Gets or sets the vertical offset.
Value: The vertical offset.setVerticalOffset
in interface IGradientFillSettings
public int getFillType()
The fill type
getFillType
in interface IFillSettings
getFillType
in class BaseFillSettings
public final IGradientColorPoint[] getColorPoints()
Gets or sets the color points.
Value: The color points.getColorPoints
in interface IGradientFillSettings
public final void setColorPoints(IGradientColorPoint[] value)
Gets or sets the color points.
Value: The color points.setColorPoints
in interface IGradientFillSettings
public final IGradientTransparencyPoint[] getTransparencyPoints()
Gets or sets the transparency points.
Value: The transparency points.getTransparencyPoints
in interface IGradientFillSettings
public final void setTransparencyPoints(IGradientTransparencyPoint[] value)
Gets or sets the transparency points.
Value: The transparency points.setTransparencyPoints
in interface IGradientFillSettings
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.