Java Code Examples for java.awt.MultipleGradientPaint#CycleMethod
The following examples show how to use
java.awt.MultipleGradientPaint#CycleMethod .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GradientWrapper.java From mars-sim with GNU General Public License v3.0 | 4 votes |
public GradientWrapper(float startX, float startY, float endX, float endY, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod) { GRADIENT = new LinearGradientPaint(new Point2D.Float(startX, startY), new Point2D.Float(endX, endY), fractions, colors, cycleMethod); copyArrays(fractions, colors); }
Example 2
Source File: GradientWrapper.java From mars-sim with GNU General Public License v3.0 | 4 votes |
public GradientWrapper(Point2D start, Point2D end, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod) { GRADIENT = new LinearGradientPaint(start, end, fractions, colors, cycleMethod, java.awt.MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform()); copyArrays(fractions, colors); }
Example 3
Source File: GradientWrapper.java From mars-sim with GNU General Public License v3.0 | 4 votes |
public GradientWrapper(Point2D start, Point2D end, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod, MultipleGradientPaint.ColorSpaceType colorSpace, AffineTransform gradientTransform) { GRADIENT = new LinearGradientPaint(start, end, fractions, colors, cycleMethod, colorSpace, gradientTransform); copyArrays(fractions, colors); }