---
Product: Aspose.3D
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/java/keyframe
---

# KeyFrame

## Overview

`KeyFrame` is a class in Aspose.3D FOSS for Java.
Inherits from: `Serializable`.

KeyFrame and KeyframeSequence classes let developers define animated properties over time with support for multiple interpolation types.

This class provides 32 methods for working with KeyFrame objects in Java programs.
Available methods include: `KeyFrame`, `getBias`, `getContinuity`, `getFlat`, `getIndependentTangent`, `getInterpolation`, `getNextInTangent`, `getNextInWeight`, `getOutTangent`, `getOutWeight`, `getStepMode`, `getTangentWeightMode`, and 19 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: `bias`, `continuity`, `flat`, `independentTangent`, `interpolation`, `nextInTangent`, and 9 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `time` | `float` | Read/Write | Gets or sets the time. |
| `value` | `float` | Read/Write | Gets or sets the value. |
| `interpolation` | `Interpolation` | Read/Write | Gets or sets the interpolation. |
| `tangentWeightMode` | `int` | Read/Write | Gets or sets the tangent weight mode. |
| `stepMode` | `StepMode` | Read/Write | Gets or sets the step mode. |
| `nextInTangent` | `Vector2` | Read/Write | Gets or sets the next in tangent. |
| `outTangent` | `Vector2` | Read/Write | Gets or sets the out tangent. |
| `outWeight` | `float` | Read/Write | Gets or sets the out weight. |
| `nextInWeight` | `float` | Read/Write | Gets or sets the next in weight. |
| `tension` | `float` | Read/Write | Gets or sets the tension. |
| `continuity` | `float` | Read/Write | Gets or sets the continuity. |
| `bias` | `float` | Read/Write | Gets or sets the bias. |
| `independentTangent` | `boolean` | Read/Write | Gets or sets the independent tangent. |
| `flat` | `boolean` | Read/Write | Gets or sets the flat. |
| `timeIndependentTangent` | `boolean` | Read/Write | Gets or sets the time independent tangent. |

## Methods

| Signature | Description |
|-----------|-------------|
| `KeyFrame(curve: KeyframeSequence, time: float)` | Calls KeyFrame(curve, time) on this KeyFrame instance. |
| `KeyFrame()` |  |
| `getTime()` → `float` | Returns the time. |
| `setTime(value: float)` | Sets the time value. |
| `getValue()` → `float` | Returns the value. |
| `setValue(value: float)` | Sets the value value. |
| `getInterpolation()` → `Interpolation` | Returns the interpolation. |
| `setInterpolation(value: Interpolation)` | Sets the interpolation value. |
| `getTangentWeightMode()` → `int` | Returns the tangent weight mode. |
| `setTangentWeightMode(value: int)` | Sets the tangent weight mode value. |
| `getStepMode()` → `StepMode` | Returns the step mode. |
| `setStepMode(value: StepMode)` | Sets the step mode value. |
| `getNextInTangent()` → `Vector2` | Returns the next in tangent. |
| `setNextInTangent(value: Vector2)` | Sets the next in tangent value. |
| `getOutTangent()` → `Vector2` | Returns the out tangent. |
| `setOutTangent(value: Vector2)` | Sets the out tangent value. |
| `getOutWeight()` → `float` | Returns the out weight. |
| `setOutWeight(value: float)` | Sets the out weight value. |
| `getNextInWeight()` → `float` | Returns the next in weight. |
| `setNextInWeight(value: float)` | Sets the next in weight value. |
| `getTension()` → `float` | Returns the tension. |
| `setTension(value: float)` | Sets the tension value. |
| `getContinuity()` → `float` | Returns the continuity. |
| `setContinuity(value: float)` | Sets the continuity value. |
| `getBias()` → `float` | Returns the bias. |
| `setBias(value: float)` | Sets the bias value. |
| `getIndependentTangent()` → `boolean` | Returns the independent tangent. |
| `setIndependentTangent(value: boolean)` | Sets the independent tangent value. |
| `getFlat()` → `boolean` | Returns the flat. |
| `setFlat(value: boolean)` | Sets the flat value. |
| `getTimeIndependentTangent()` → `boolean` | Returns the time independent tangent. |
| `setTimeIndependentTangent(value: boolean)` | Sets the time independent tangent value. |

## See Also
- [Aspose.3D for Java — Enterprise API Reference](https://reference.aspose.com/3d/java/com.aspose.threed/keyframe/)