com.tensegrity.graphics.device.awt
Class AWTGradientPaint
java.lang.Object
com.tensegrity.graphics.device.awt.AWTGradientPaint
- All Implemented Interfaces:
- java.awt.Paint, java.awt.Transparency
- public class AWTGradientPaint
- extends java.lang.Object
- implements java.awt.Paint
The AWTGradientPaint represents a Paint that can
be used to render gradients on the AWTDevice.
- Version:
- $Id: AWTGradientPaint.java,v 1.2 2004/02/11 08:45:57 MichaelKegel Exp $
- Author:
- MichaelKegel
| Fields inherited from interface java.awt.Transparency |
BITMASK, OPAQUE, TRANSLUCENT |
|
Constructor Summary |
AWTGradientPaint(Gradient gradient,
int transparency)
Constructor that creates a AWTGradientPaint with the
Gradient given by gradient and the transparency
level given by transparency. |
|
Method Summary |
java.awt.PaintContext |
createContext(java.awt.image.ColorModel cm,
java.awt.Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints)
|
int |
getTransparency()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AWTGradientPaint
public AWTGradientPaint(Gradient gradient,
int transparency)
- Constructor that creates a
AWTGradientPaint with the
Gradient given by gradient and the transparency
level given by transparency.
- Parameters:
gradient - the Gradient to usetransparency - the transparency level given in percent
createContext
public java.awt.PaintContext createContext(java.awt.image.ColorModel cm,
java.awt.Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
java.awt.RenderingHints hints)
- Specified by:
createContext in interface java.awt.Paint
getTransparency
public int getTransparency()
- Specified by:
getTransparency in interface java.awt.Transparency
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.