---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/presetshadow
---

# PresetShadow

## Overview

`PresetShadow` is a class in Aspose.Slides FOSS for Java.
Inherits from: `IPresetShadow`.

Represents a preset shadow effect backed by an OOXML {@code } element.

This class declares 11 methods for PresetShadow objects in Java programs.
Available methods include: `PresetShadow`, `asIImageTransformOperation`, `getDirection`, `getDistance`, `getPreset`, `getShadowColor`, `initInternal`, `setDirection`, `setDistance`, `setPreset`.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `direction`, `distance`, `preset`, `shadowColor`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `direction` | `double` | Read/Write | Gets or sets the direction. |
| `distance` | `double` | Read/Write | Gets or sets the distance. |
| `shadowColor` | `IColorFormat` | Read | Gets the shadow color. |
| `preset` | `PresetShadowType` | Read/Write | Gets or sets the preset. |

## Methods

| Signature | Description |
|-----------|-------------|
| `PresetShadow()` | Creates an uninitialized PresetShadow. |
| `PresetShadow(element: Element, saveCallback: Runnable)` | Creates a new PresetShadow backed by the given XML element. |
| `initInternal(element: Element, saveCallback: Runnable, parentSlide: IBaseSlide)` | Initializes this PresetShadow with the given backing element, save callback, and parent slide. |
| `getDirection()` → `double` | Returns the direction. |
| `setDirection(value: double)` | Sets the direction value. |
| `getDistance()` → `double` | Returns the distance. |
| `setDistance(value: double)` | Sets the distance value. |
| `getShadowColor()` → `IColorFormat` | Returns the shadow color. |
| `getPreset()` → `PresetShadowType` | Returns the preset. |
| `setPreset(value: PresetShadowType)` | Sets the preset value. |
| `asIImageTransformOperation()` → `IImageTransformOperation` | Returns an IImageTransformOperation view of the shadow |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)