Class MultipleGradientPaint
- java.lang.Object
- 
- com.inductiveautomation.ignition.client.util.gui.paints.MultipleGradientPaint
 
- 
- All Implemented Interfaces:
- java.awt.Paint,- java.awt.Transparency
 - Direct Known Subclasses:
- LinearGradientPaint,- RadialGradientPaint,- RelativeLinearGradientPaint,- RelativeRadialGradientPaint
 
 public abstract class MultipleGradientPaint extends java.lang.Object implements java.awt.PaintThis is the superclass for Paints which use a multiple color gradient to fill in their raster. It provides storage for variables and enumerated values common toLinearGradientPaintandRadialGradientPaint.- Since:
- 1.6
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classMultipleGradientPaint.ColorSpaceTypeThe color space in which to perform the gradient interpolation.static classMultipleGradientPaint.CycleMethodThe method to use when painting outside the gradient bounds.
 - 
Field SummaryFields Modifier and Type Field Description protected java.awt.geom.AffineTransformgradientTransformTransform to apply to gradient.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static float[]copyOf(float[] original, int newLength)static <T> T[]copyOf(T[] original, int newLength)static <T,U>
 T[]copyOf(U[] original, int newLength, java.lang.Class<? extends T[]> newType)java.awt.Color[]getColors()Returns a copy of the array of colors used by this gradient.MultipleGradientPaint.ColorSpaceTypegetColorSpace()Returns the enumerated type which specifies color space for interpolation.MultipleGradientPaint.CycleMethodgetCycleMethod()Returns the enumerated type which specifies cycling behavior.float[]getFractions()Returns a copy of the array of floats used by this gradient to calculate color distribution.java.awt.geom.AffineTransformgetTransform()Returns a copy of the transform applied to the gradient.intgetTransparency()Returns the transparency mode for this Paint object.
 
- 
- 
- 
Method Detail- 
getFractionspublic final float[] getFractions() Returns a copy of the array of floats used by this gradient to calculate color distribution. The returned array always has 0 as its first value and 1 as its last value, with increasing values in between.- Returns:
- a copy of the array of floats used by this gradient to calculate color distribution
 
 - 
getColorspublic final java.awt.Color[] getColors() Returns a copy of the array of colors used by this gradient. The first color maps to the first value in the fractions array, and the last color maps to the last value in the fractions array.- Returns:
- a copy of the array of colors used by this gradient
 
 - 
copyOfpublic static float[] copyOf(float[] original, int newLength)
 - 
copyOfpublic static <T> T[] copyOf(T[] original, int newLength)
 - 
copyOfpublic static <T,U> T[] copyOf(U[] original, int newLength, java.lang.Class<? extends T[]> newType)
 - 
getCycleMethodpublic final MultipleGradientPaint.CycleMethod getCycleMethod() Returns the enumerated type which specifies cycling behavior.- Returns:
- the enumerated type which specifies cycling behavior
 
 - 
getColorSpacepublic final MultipleGradientPaint.ColorSpaceType getColorSpace() Returns the enumerated type which specifies color space for interpolation.- Returns:
- the enumerated type which specifies color space for interpolation
 
 - 
getTransformpublic final java.awt.geom.AffineTransform getTransform() Returns a copy of the transform applied to the gradient.- Returns:
- a copy of the transform applied to the gradient
 
 - 
getTransparencypublic final int getTransparency() Returns the transparency mode for this Paint object.- Specified by:
- getTransparencyin interface- java.awt.Transparency
- Returns:
- an integer value representing the transparency mode for this Paint object
- See Also:
- Transparency
 
 
- 
 
-