---
title: "Frame"
url: "https://reference.aspose.com/psd/java/com.aspose.psd.fileformats.psd.layers.animation/frame/"
product: "Aspose.PSD for Java API Reference"
description: "The options of time line frame item."
---


**Inheritance:**
java.lang.Object
```
public final class Frame
```

The options of time line frame item.
## Constructors

| Constructor | Description |
| --- | --- |
| [Frame()](#Frame--) | Initializes a new instance of the [Frame](../../com.aspose.psd.fileformats.psd.layers.animation/frame) class. |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getDelay()](#getDelay--) | Gets or sets the frame delay value in centa-seconds. |
| [getDisposalMethod()](#getDisposalMethod--) | Gets or sets the disposal method of frame. |
| [getFrGA()](#getFrGA--) | Gets or sets the FrGA value. |
| [getId()](#getId--) | Gets or sets the frame id. |
| [getLayerStates()](#getLayerStates--) | Gets ot sets the layer states of frame. |
| [getLayerStatesList_internalized()](#getLayerStatesList-internalized--) | Gets the list of layer states of frame. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setDelay(int value)](#setDelay-int-) | Gets or sets the frame delay value in centa-seconds. |
| [setDisposalMethod(int value)](#setDisposalMethod-int-) | Gets or sets the disposal method of frame. |
| [setFrGA(double value)](#setFrGA-double-) | Gets or sets the FrGA value. |
| [setId(int value)](#setId-int-) | Gets or sets the frame id. |
| [setLayerStates(LayerState[] value)](#setLayerStates-com.aspose.psd.fileformats.psd.layers.animation.LayerState---) | Gets ot sets the layer states of frame. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### Frame() {#Frame--}
```
public Frame()
```


Initializes a new instance of the [Frame](../../com.aspose.psd.fileformats.psd.layers.animation/frame) class.

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getDelay() {#getDelay--}
```
public int getDelay()
```


Gets or sets the frame delay value in centa-seconds. For example, in 1 second contains 100 centa-seconds.

**Returns:**
int
### getDisposalMethod() {#getDisposalMethod--}
```
public final int getDisposalMethod()
```


Gets or sets the disposal method of frame.

**Returns:**
int
### getFrGA() {#getFrGA--}
```
public double getFrGA()
```


Gets or sets the FrGA value.

**Returns:**
double
### getId() {#getId--}
```
public int getId()
```


Gets or sets the frame id.

**Returns:**
int
### getLayerStates() {#getLayerStates--}
```
public LayerState[] getLayerStates()
```


Gets ot sets the layer states of frame.

**Returns:**
com.aspose.psd.fileformats.psd.layers.animation.LayerState[]
### getLayerStatesList_internalized() {#getLayerStatesList-internalized--}
```
public System.Collections.Generic.List<LayerState> getLayerStatesList_internalized()
```


Gets the list of layer states of frame.

**Returns:**
com.aspose.ms.System.Collections.Generic.List<com.aspose.psd.fileformats.psd.layers.animation.LayerState>
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setDelay(int value) {#setDelay-int-}
```
public void setDelay(int value)
```


Gets or sets the frame delay value in centa-seconds. For example, in 1 second contains 100 centa-seconds.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setDisposalMethod(int value) {#setDisposalMethod-int-}
```
public final void setDisposalMethod(int value)
```


Gets or sets the disposal method of frame.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setFrGA(double value) {#setFrGA-double-}
```
public void setFrGA(double value)
```


Gets or sets the FrGA value.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double |  |

### setId(int value) {#setId-int-}
```
public void setId(int value)
```


Gets or sets the frame id.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setLayerStates(LayerState[] value) {#setLayerStates-com.aspose.psd.fileformats.psd.layers.animation.LayerState---}
```
public void setLayerStates(LayerState[] value)
```


Gets ot sets the layer states of frame.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [LayerState\[\]](../../com.aspose.psd.fileformats.psd.layers.animation/layerstate) |  |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

