Package | Description |
---|---|
javafx.scene.paint |
Provides the set of classes for colors and gradients used to fill shapes and
backgrounds when rendering the scene graph.
|
Modifier and Type | Method and Description |
---|---|
List<Stop> |
LinearGradient.getStops()
A sequence of 2 or more
Stop values specifying how to distribute
the colors along the gradient. |
List<Stop> |
RadialGradient.getStops()
A sequence of 2 or more
Stop values specifying how to distribute
the colors along the gradient. |
Constructor and Description |
---|
LinearGradient(double startX,
double startY,
double endX,
double endY,
boolean proportional,
CycleMethod cycleMethod,
Stop... stops)
Creates a new instance of LinearGradient.
|
RadialGradient(double focusAngle,
double focusDistance,
double centerX,
double centerY,
double radius,
boolean proportional,
CycleMethod cycleMethod,
Stop... stops)
Creates a new instance of RadialGradient.
|
Constructor and Description |
---|
LinearGradient(double startX,
double startY,
double endX,
double endY,
boolean proportional,
CycleMethod cycleMethod,
List<Stop> stops)
Creates a new instance of LinearGradient.
|
RadialGradient(double focusAngle,
double focusDistance,
double centerX,
double centerY,
double radius,
boolean proportional,
CycleMethod cycleMethod,
List<Stop> stops)
Creates a new instance of RadialGradient.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.