Class RadialGradient
java.lang.Object
com.independentsoft.office.odf.styles.RadialGradient
Represents the radial gradient.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the center of the geometry that is used for a gradient.Gets the center of the geometry that is used for a gradient.Gets the name of a gradient.Gets the focal x.Gets the focal y.Gets the definition of an optional additional transformation from the gradient coordinate system onto the target coordinate system.Gets the coordinate system.getName()Gets the name by which a gradient can be referenced.Gets the radius that is used for a radial gradient.Specifies what happens if the gradient starts or ends inside the bounds of the target rectangle.getStops()Contains a collection of SvgStop objects.voidsetCenterX(Size centerX)Sets the center of the geometry that is used for a gradient.voidsetCenterY(Size centerY)Sets the center of the geometry that is used for a gradient.voidsetDisplayName(String displayName)Sets the name of a gradient.voidSets the focal x.voidSets the focal y.voidsetGradientTransform(String gradientTransform)Sets the definition of an optional additional transformation from the gradient coordinate system onto the target coordinate system.voidsetGradientUnits(String gradientUnits)Sets the coordinate system.voidSets the name by which a gradient can be referenced.voidSets the radius that is used for a radial gradient.voidsetSpreadMethod(SpreadMethod spreadMethod)Specifies what happens if the gradient starts or ends inside the bounds of the target rectangle.toString()Converts the value of the current RadialGradient object to its equivalent string representation.
-
Constructor Details
-
RadialGradient
public RadialGradient()Initializes a new instance of the RadialGradient class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current RadialGradient 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
-
getCenterX
Gets the center of the geometry that is used for a gradient.- Returns:
- the center x
-
setCenterX
Sets the center of the geometry that is used for a gradient.- Parameters:
centerX- the new center x
-
getCenterY
Gets the center of the geometry that is used for a gradient.- Returns:
- the center y
-
setCenterY
Sets the center of the geometry that is used for a gradient.- Parameters:
centerY- the new center y
-
getFocalX
Gets the focal x.- Returns:
- the focal x
-
setFocalX
Sets the focal x.- Parameters:
focalX- the new focal x
-
getFocalY
Gets the focal y.- Returns:
- the focal y
-
setFocalY
Sets the focal y.- Parameters:
focalY- the new focal y
-
getRadius
Gets the radius that is used for a radial gradient.- Returns:
- the radius
-
setRadius
Sets the radius that is used for a radial gradient.- Parameters:
centerY- the new radius
-
getStops
Contains a collection of SvgStop objects.- Returns:
- the stops
-
getGradientUnits
Gets the coordinate system.- Returns:
- the gradient units
-
setGradientUnits
Sets the coordinate system.- Parameters:
gradientUnits- the new gradient units
-
getGradientTransform
Gets the definition of an optional additional transformation from the gradient coordinate system onto the target coordinate system.- Returns:
- the gradient transform
-
setGradientTransform
Sets the definition of an optional additional transformation from the gradient coordinate system onto the target coordinate system.- Parameters:
gradientTransform- the new gradient transform
-
getSpreadMethod
Specifies what happens if the gradient starts or ends inside the bounds of the target rectangle.- Returns:
- the spread method
-
setSpreadMethod
Specifies what happens if the gradient starts or ends inside the bounds of the target rectangle.- Parameters:
spreadMethod- the new spread method
-