SoftEdgeEffect Class
A soft edge effect applied to a shape.
Declaration
public class SoftEdgeEffect extends OfficeObject
Remarks
The following code snippet applies a soft edge effect to a shape:
import com.devexpress.docs.presentation.*;
import com.devexpress.docs.office.*;
// Create a rectangular shape.
Shape shape = new Shape(ShapeType.getRectangle(), 30, 30, 2000, 1000);
// Apply a soft edge effect.
shape.getEffects().setSoftEdge(new SoftEdgeEffect(5.0f));
// Get the first slide in the presentation.
Slide slide = presentation.getSlides().getFirst();
// Add the shape to the first slide.
slide.getShapes().add(shape);
Inherited Members
com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Inheritance
Object
JavaObject
OfficeObject
SoftEdgeEffect
Constructors
SoftEdgeEffect() Constructor
Initializes a new instance of the SoftEdgeEffect class.
Declaration
public SoftEdgeEffect()
SoftEdgeEffect(float radius) Constructor
Initializes a new instance of the SoftEdgeEffect class with specified settings.
Declaration
public SoftEdgeEffect(float radius)
Parameters
| Name | Type | Description |
|---|---|---|
| radius | float | Specifies the radius of the soft edge effect. |
Methods
deepClone() Method
Returns a deep copy of this SoftEdgeEffect instance.
Declaration
public SoftEdgeEffect deepClone()
Returns
| Type | Description |
|---|---|
SoftEdgeEffect |
A deep copy of this |
getRadius() Method
Returns the radius of the soft edge effect.
Declaration
public float getRadius()
Returns
| Type | Description |
|---|---|
| float | The radius of the soft edge effect. |
setRadius(float value) Method
Sets the radius of the soft edge effect.
Declaration
public void setRadius(float value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | float | The radius of the soft edge effect. |