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 <a:prstShdw>} element.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
direction | double | Read | Property gets or sets the shadow direction angle in degrees |
distance | double | Read | Property gets or sets the distance of the shadow from its shape |
shadowColor | IColorFormat | Read | Property provides access to the IColorFormat of the shadow |
preset | PresetShadowType | Read | Property gets or sets the PresetShadowType preset applied to the shadow |
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 shadow’s direction angle in degrees |
setDirection(value: double) | Sets the shadow’s direction angle in degrees |
getDistance() → double | Returns the distance of the shadow from the shape |
setDistance(value: double) | Sets the distance of the shadow from the shape |
getShadowColor() → IColorFormat | Returns the IColorFormat representing the shadow’s color |
getPreset() → PresetShadowType | Returns the PresetShadowType value indicating the preset applied |
setPreset(value: PresetShadowType) | Assigns a PresetShadowType preset to the shadow |
asIImageTransformOperation() → IImageTransformOperation | Returns an IImageTransformOperation view of the shadow |