com.jtattoo.plaf.aluminium
Class AluminiumGradientPaint

java.lang.Object
  extended by 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)

Field Summary
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
AluminiumGradientPaint(Point offset, Dimension size)
           
 
Method Summary
 PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
          Creates and returns a context used to generate the color pattern.
 int getTransparency()
          Returns the transparency mode for this GradientPaint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AluminiumGradientPaint

public AluminiumGradientPaint(Point offset,
                              Dimension size)
Method Detail

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 rendered
userBounds - the user space bounding box of the graphics primitive being rendered
xform - the AffineTransform from user space into device space
hints - 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.