Skip to main content

FillOverlayEffect Class

Contains properties for the fill overlay effect.

Declaration

public class FillOverlayEffect extends OfficeObject

Remarks

Use to configure the fill overlay effect:

Note

This effect is not rendered in the exported PDF document.

The following code snippet applies a fill overlay effect to a shape:

import com.devexpress.docs.office.*;
import com.devexpress.system.drawing.*;
import com.devexpress.docs.presentation.*;

// Create a presentation.
try(Presentation presentation = new Presentation()) {
    presentation.getSlides().clear();

    Slide slide = new Slide(SlideLayoutType.BLANK);
    presentation.getSlides().add(slide);

    LineStyle outlineStyle = new LineStyle();
    outlineStyle.setFill(new SolidFill(Color.getRoyalBlue()));
    outlineStyle.setWidth(8);

    FillOverlayEffect fillOverlayEffect = new FillOverlayEffect();
    fillOverlayEffect.setBlendMode(BlendMode.LIGHTEN);
    fillOverlayEffect.setFill(new SolidFill(Color.getYellow()));

    ShapeEffectProperties effectProperties = new ShapeEffectProperties();
    effectProperties.setFillOverlay(fillOverlayEffect);

    Shape shape = new Shape(ShapeType.getRectangle(), 30, 30, 300, 300) {{
        setOutline(outlineStyle);
        setFill(new SolidFill(Color.getDarkBlue()));
        setEffects(effectProperties);
    }};

    slide.getShapes().add(shape);

    // Perform additional presentation processing logic.
}

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
FillOverlayEffect

FillOverlayEffect()

Initializes a new instance of the FillOverlayEffect class.

Declaration

public FillOverlayEffect()

Methods

deepClone() Method

Returns a deep copy of this FillOverlayEffect instance.

Declaration

public FillOverlayEffect deepClone()

Returns

Type Description
FillOverlayEffect

A deep copy of this FillOverlayEffect.

getBlendMode() Method

Returns the blend mode for the fill overlay effect.

Declaration

public BlendMode getBlendMode()

Returns

Type Description
BlendMode

The blend mode for the fill overlay effect.

getFill() Method

Returns the fill for the fill overlay effect.

Declaration

public Fill getFill()

Returns

Type Description
Fill

The fill for the fill overlay effect.

setBlendMode(BlendMode value) Method

Sets the blend mode for the fill overlay effect.

Declaration

public void setBlendMode(BlendMode value)

Parameters

Name Type Description
value BlendMode

The blend mode for the fill overlay effect.

setFill(Fill value) Method

Sets the fill for the fill overlay effect.

Declaration

public void setFill(Fill value)

Parameters

Name Type Description
value Fill

The fill for the fill overlay effect.