Example usage for Java java.awt LinearGradientPaint fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
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. |