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

NameTypeAccessDescription
directiondoubleReadProperty gets or sets the shadow direction angle in degrees
distancedoubleReadProperty gets or sets the distance of the shadow from its shape
shadowColorIColorFormatReadProperty provides access to the IColorFormat of the shadow
presetPresetShadowTypeReadProperty gets or sets the PresetShadowType preset applied to the shadow

Methods

SignatureDescription
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()doubleReturns the shadow’s direction angle in degrees
setDirection(value: double)Sets the shadow’s direction angle in degrees
getDistance()doubleReturns the distance of the shadow from the shape
setDistance(value: double)Sets the distance of the shadow from the shape
getShadowColor()IColorFormatReturns the IColorFormat representing the shadow’s color
getPreset()PresetShadowTypeReturns the PresetShadowType value indicating the preset applied
setPreset(value: PresetShadowType)Assigns a PresetShadowType preset to the shadow
asIImageTransformOperation()IImageTransformOperationReturns an IImageTransformOperation view of the shadow

See Also