Java java.awt LinearGradientPaint fields, constructors, methods, implement or subclass

Example usage for Java java.awt LinearGradientPaint fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt LinearGradientPaint.

The text is from its open source code.

Constructor

LinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors)
Constructs a LinearGradientPaint with a default NO_CYCLE repeating method and SRGB color space.
LinearGradientPaint(float startX, float startY, float endX, float endY, float[] fractions, Color[] colors)
Constructs a LinearGradientPaint with a default NO_CYCLE repeating method and SRGB color space.
LinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors, CycleMethod cycleMethod)
Constructs a LinearGradientPaint with a default SRGB color space.

Method

Color[]getColors()
Returns a copy of the array of colors used by this gradient.
float[]getFractions()
Returns a copy of the array of floats used by this gradient to calculate color distribution.