Class Gradient
java.lang.Object
com.independentsoft.office.odf.styles.Gradient
Represents a gradient for filling a drawing object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.intgetAngle()Gets the angle that rotates the axis at which the gradient values are interpolated.intGets the percentage value that is used to scale a border area which is filled by a solid color.intGets the center of the geometry that is used for the gradient.intGets the center of the geometry that is used for the gradient.Gets the name of a gradient.Gets the end value for the gradient element.intGets the intensity of the gradient's end color as a percentage value.getName()Gets the name by which a gradient can be referenced.Gets the start value for the gradient element.intGets the intensity of the gradient's start color as a percentage value.getStyle()Gets the rendering of graphic objects.voidsetAngle(int angle)Sets the angle that rotates the axis at which the gradient values are interpolated.voidsetBorder(int border)Sets the percentage value that is used to scale a border area which is filled by a solid color.voidsetCenterX(int centerX)Sets the center of the geometry that is used for the gradient.voidsetCenterY(int centerY)Sets the center of the geometry that is used for the gradient.voidsetDisplayName(String displayName)Sets the name of a gradient.voidsetEndColor(String endColor)Sets the end value for the gradient element.voidsetEndIntensity(int endIntensity)Sets the intensity of the gradient's end color as a percentage value.voidSets the name by which a gradient can be referenced.voidsetStartColor(String startColor)Sets the start value for the gradient element.voidsetStartIntensity(int startIntensity)Sets the intensity of the gradient's start color as a percentage value.voidsetStyle(GradientStyle style)Sets the rendering of graphic objects.toString()Converts the value of the current Gradient object to its equivalent string representation.
-
Constructor Details
-
Gradient
public Gradient()Initializes a new instance of the Gradient class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current Gradient object to its equivalent string representation. -
getName
Gets the name by which a gradient can be referenced.- Returns:
- the name
-
setName
Sets the name by which a gradient can be referenced.- Parameters:
name- the new name
-
getDisplayName
Gets the name of a gradient.- Returns:
- the display name
-
setDisplayName
Sets the name of a gradient.- Parameters:
displayName- the new display name
-
getStyle
Gets the rendering of graphic objects.- Returns:
- the style
-
setStyle
Sets the rendering of graphic objects.- Parameters:
style- the new style
-
getCenterX
public int getCenterX()Gets the center of the geometry that is used for the gradient.- Returns:
- the center x
-
setCenterX
public void setCenterX(int centerX)Sets the center of the geometry that is used for the gradient.- Parameters:
centerX- the new center x
-
getCenterY
public int getCenterY()Gets the center of the geometry that is used for the gradient.- Returns:
- the center y
-
setCenterY
public void setCenterY(int centerY)Sets the center of the geometry that is used for the gradient.- Parameters:
centerY- the new center y
-
getStartColor
Gets the start value for the gradient element.- Returns:
- the start color
-
setStartColor
Sets the start value for the gradient element.- Parameters:
startColor- the new start color
-
getEndColor
Gets the end value for the gradient element.- Returns:
- the end color
-
setEndColor
Sets the end value for the gradient element.- Parameters:
endColor- the new end color
-
getStartIntensity
public int getStartIntensity()Gets the intensity of the gradient's start color as a percentage value.- Returns:
- the start intensity
-
setStartIntensity
public void setStartIntensity(int startIntensity)Sets the intensity of the gradient's start color as a percentage value.- Parameters:
startIntensity- the new start intensity
-
getEndIntensity
public int getEndIntensity()Gets the intensity of the gradient's end color as a percentage value.- Returns:
- the end intensity
-
setEndIntensity
public void setEndIntensity(int endIntensity)Sets the intensity of the gradient's end color as a percentage value.- Parameters:
endIntensity- the new end intensity
-
getAngle
public int getAngle()Gets the angle that rotates the axis at which the gradient values are interpolated.- Returns:
- the angle
-
setAngle
public void setAngle(int angle)Sets the angle that rotates the axis at which the gradient values are interpolated.- Parameters:
angle- the new angle
-
getBorder
public int getBorder()Gets the percentage value that is used to scale a border area which is filled by a solid color.- Returns:
- the border
-
setBorder
public void setBorder(int border)Sets the percentage value that is used to scale a border area which is filled by a solid color.- Parameters:
border- the new border
-