com.jtattoo.plaf.aluminium
Class AluminiumGradientPaint
java.lang.Object
com.jtattoo.plaf.aluminium.AluminiumGradientPaint
- All Implemented Interfaces:
- Paint, Transparency
public class AluminiumGradientPaint
- extends Object
- implements Paint
The AluminiumGradientPaint
class provides a way to fill
a Shape
with a aluminium like pattern.
- See Also:
Paint
,
Graphics2D.setPaint(java.awt.Paint)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AluminiumGradientPaint
public AluminiumGradientPaint(Point offset,
Dimension size)
createContext
public PaintContext createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
- Creates and returns a context used to generate the color pattern.
- Specified by:
createContext
in interface Paint
- Parameters:
cm
- ColorModel
that receives
the Paint
data. This is used only as a hint.deviceBounds
- the device space bounding box of the
graphics primitive being rendereduserBounds
- the user space bounding box of the
graphics primitive being renderedxform
- the AffineTransform
from user
space into device spacehints
- the hints that the context object uses to choose
between rendering alternatives
- Returns:
- the
PaintContext
that generates color patterns. - See Also:
PaintContext
getTransparency
public int getTransparency()
- Returns the transparency mode for this
GradientPaint
.
- Specified by:
getTransparency
in interface Transparency
- Returns:
- an integer value representing this
GradientPaint
object's transparency mode. - See Also:
Transparency
Copyright © 2011. All Rights Reserved.