com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class EffectFormat

    • Method Detail

      • isNoEffects

        public final boolean isNoEffects()

        Returns true if all effects are disabled (as just created, default EffectFormat object). Read-only boolean.

        Specified by:
        isNoEffects in interface IEffectFormat
      • setBlurEffect

        public final void setBlurEffect(double radius,
                                        boolean grow)

        Sets blur effect.

        Specified by:
        setBlurEffect in interface IEffectFormat
        Parameters:
        radius - Radius.
        grow - Grow.
      • getEffective

        public final IEffectFormatEffectiveData getEffective()

        Gets effective effect formatting data with the inheritance applied.


         This example demonstrates getting some of shape's effective effect properties.
         
         Presentation pres = new Presentation("MyPresentation.pptx");
         try
         {
                IEffectFormatEffectiveData effectiveEffectFormat = pres.getSlides().get_Item(0).Shapes().get_Item(0).getEffectFormat().getEffective();
                if (effectiveEffectFormat.isNoEffects())
                {
                        System.out.println("The shape has not effects applied.");
                }
                else
                {
                        if (effectiveEffectFormat.getBlurEffect() != null)
                                System.out.println("Blur effect radius: " + effectiveEffectFormat.getBlurEffect().getRadius());
                        if (effectiveEffectFormat.getFillOverlayEffect() != null)
                                System.out.println("Fill overlay effect fill type: " + effectiveEffectFormat.getFillOverlayEffect().getFillFormat().getFillType());
                        if (effectiveEffectFormat.getGlowEffect() != null)
                                System.out.println("Glow effect color: " + effectiveEffectFormat.getGlowEffect().getColor());
                        if (effectiveEffectFormat.getInnerShadowEffect() != null)
                                System.out.println("Inner shadow effect shadow color: " + effectiveEffectFormat.getInnerShadowEffect().getShadowColor());
                        if (effectiveEffectFormat.getOuterShadowEffect() != null)
                                System.out.println("Outer shadow effect shadow color: " + effectiveEffectFormat.getOuterShadowEffect().getShadowColor());
                        if (effectiveEffectFormat.getPresetShadowEffect() != null)
                                System.out.println("Preset shadow effect shadow color: " + effectiveEffectFormat.getPresetShadowEffect().getShadowColor());
                        if (effectiveEffectFormat.getReflectionEffect() != null)
                                System.out.println("Reflection effect distance: " + effectiveEffectFormat.getReflectionEffect().getDistance());
                        if (effectiveEffectFormat.getSoftEdgeEffect() != null)
                                System.out.println("Soft edge effect radius: " + effectiveEffectFormat.getSoftEdgeEffect().getRadius());
                }
         } finally {
             if (pres != null) pres.dispose();
         }
         

        Specified by:
        getEffective in interface IEffectFormat
        Returns:
        A IEffectFormatEffectiveData.