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

# GradientStop

## Overview

`GradientStop` is a class in Aspose.Slides FOSS for Java.
Inherits from: `PVIObject`, `IGradientStop`.

Represents a single gradient stop.

This class provides 11 methods for working with GradientStop objects in Java programs.
Available methods include: `GradientStop`, `PVIObject`, `asIPresentationComponent`, `getColor`, `getPosition`, `getPresentation`, `getSlide`, `initInternal`, `save`, `setPosition`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `color`, `position`, `presentation`, `slide`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `position` | `double` | Read | Gets the position. |
| `color` | `IColorFormat` | Read | Gets the color. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |

## Methods

| Signature | Description |
|-----------|-------------|
| `GradientStop()` | Creates an empty {@code GradientStop} with no backing element. |
| `GradientStop(gsElement: Element, saveCallback: Runnable)` | Creates a new GradientStop backed by the given {@code } element. |
| `initInternal(gsElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide)` → `GradientStop` | Initializes this gradient stop from the given {@code } element,
 save callback, and parent slide. |
| `save()` | Persists changes by invoking the save callback, if one was provided. |
| `getPosition()` → `double` | Returns the position. |
| `setPosition(value: double)` | Sets the position value. |
| `getColor()` → `IColorFormat` | Returns the color. |
| `PVIObject()` | Creates a PVIObject with no parent slide. |
| `getSlide()` → `IBaseSlide` | Returns the slide. |
| `getPresentation()` → `IPresentation` | Returns the presentation. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns this object as an {@link IPresentationComponent}. |

## See Also

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