Class MultipleGradientPaint
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.paints.MultipleGradientPaint
- All Implemented Interfaces:
- Paint,- Transparency
- Direct Known Subclasses:
- LinearGradientPaint,- RadialGradientPaint,- RelativeLinearGradientPaint,- RelativeRadialGradientPaint
This 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 to 
LinearGradientPaint and RadialGradientPaint.- Since:
- 1.6
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumThe color space in which to perform the gradient interpolation.static enumThe method to use when painting outside the gradient bounds.
- 
Field SummaryFieldsFields inherited from interface java.awt.TransparencyBITMASK, OPAQUE, TRANSLUCENT
- 
Method SummaryModifier and TypeMethodDescriptionstatic float[]copyOf(float[] original, int newLength) static <T> T[]copyOf(T[] original, int newLength) static <T,U> T[] final Color[]Returns a copy of the array of colors used by this gradient.Returns the enumerated type which specifies color space for interpolation.Returns the enumerated type which specifies cycling behavior.final float[]Returns a copy of the array of floats used by this gradient to calculate color distribution.final AffineTransformReturns a copy of the transform applied to the gradient.final intReturns the transparency mode for this Paint object.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.PaintcreateContext
- 
Field Details- 
gradientTransformTransform to apply to gradient.
 
- 
- 
Method Details- 
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
 
- 
getColorsReturns 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) 
- 
copyOf
- 
getCycleMethodReturns the enumerated type which specifies cycling behavior.- Returns:
- the enumerated type which specifies cycling behavior
 
- 
getColorSpaceReturns the enumerated type which specifies color space for interpolation.- Returns:
- the enumerated type which specifies color space for interpolation
 
- 
getTransformReturns 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- Transparency
- Returns:
- an integer value representing the transparency mode for this Paint object
- See Also:
 
 
-