|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.java2d.IlvMultipleGradientPaint
public abstract class IlvMultipleGradientPaint
This is the superclass for Paint implementations that use a multiple-color gradient to fill in their raster.
Paint,
IlvLinearGradientPaint,
IlvRadialGradientPaint| Field Summary | |
|---|---|
static short |
LINEAR_RGB
Indicates that the color interpolation should occur in linearized RGB space. |
static short |
SPREAD_PAD
Indicates that if the gradient starts or ends inside the target region, the remainder region should be filled with the terminal color of the gradient. |
static short |
SPREAD_REFLECT
Indicates that if the gradient starts or ends inside the target region, the gradient should be reflected continuously until the remainder region is filled. |
static short |
SPREAD_REPEAT
Indicates that if the gradient starts or ends inside the target region, the gradient should be repeated continuously until the remainder region is filled. |
static short |
SRGB
Indicates that the color interpolation should occur in sRGB space. |
| Fields inherited from interface java.awt.Transparency |
|---|
BITMASK, OPAQUE, TRANSLUCENT |
| Constructor Summary | |
|---|---|
IlvMultipleGradientPaint(IlvInputStream stream)
Builds an IlvMultipleGradientPaint from an
IlvInputStream. |
|
| Method Summary | |
|---|---|
Color[] |
getColors()
Returns a copy of the array of colors used by this gradient. |
short |
getColorSpace()
Returns the interpolation color space of this gradient. |
short |
getSpreadMethod()
Returns the spread method of the gradient. |
float[] |
getStops()
Returns a copy of the array of floats used by this gradient to calculate color distribution. |
AffineTransform |
getTransform()
Returns a copy of the additional transform to apply to the gradient. |
int |
getTransparency()
Returns the transparency mode for this gradient. |
boolean |
isAdapting()
Returns true if the gradient is adapting itself on
the shape it is drawn. |
void |
write(IlvOutputStream stream)
Writes the IlvLinearGradientPaint to an
IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.awt.Paint |
|---|
createContext |
| Field Detail |
|---|
public static final short SPREAD_PAD
public static final short SPREAD_REFLECT
public static final short SPREAD_REPEAT
public static final short SRGB
public static final short LINEAR_RGB
| Constructor Detail |
|---|
public IlvMultipleGradientPaint(IlvInputStream stream)
throws IOException,
IlvReadFileException
IlvMultipleGradientPaint from an
IlvInputStream.
IOException
IlvReadFileException| Method Detail |
|---|
public final Color[] getColors()
public final float[] getStops()
public final int getTransparency()
getTransparency in interface Transparencypublic final boolean isAdapting()
true if the gradient is adapting itself on
the shape it is drawn.
public final short getSpreadMethod()
SPREAD_PAD,
SPREAD_REFLECT,
SPREAD_REPEATpublic final short getColorSpace()
SRGB,
LINEAR_RGBpublic final AffineTransform getTransform()
null if no transform is added.
public void write(IlvOutputStream stream)
throws IOException
IlvLinearGradientPaint to an
IlvOutputStream.
write in interface IlvPersistentObjectstream - the output stream
IOException - thrown when an exception occurs during
the write operation for this object.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||