Class OpacityGradient
java.lang.Object
com.independentsoft.office.odf.styles.OpacityGradient
Represents an opacity gradient for a graphic 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.intgetEnd()Gets the end value for the opacity element.getName()Gets the name by which a gradient can be referenced.intgetStart()Gets the start value for the opacity element.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.voidsetEnd(int end)Sets the end value for the opacity element.voidSets the name by which a gradient can be referenced.voidsetStart(int start)Sets the start value for the opacity element.voidsetStyle(GradientStyle style)Sets the rendering of graphic objects.toString()Converts the value of the current OpacityGradient object to its equivalent string representation.
-
Constructor Details
-
OpacityGradient
public OpacityGradient()Initializes a new instance of the OpacityGradient class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current OpacityGradient 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
-
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
-
getStart
public int getStart()Gets the start value for the opacity element.- Returns:
- the start
-
setStart
public void setStart(int start)Sets the start value for the opacity element.- Parameters:
start- the new start
-
getEnd
public int getEnd()Gets the end value for the opacity element.- Returns:
- the end
-
setEnd
public void setEnd(int end)Sets the end value for the opacity element.- Parameters:
end- the new end
-