com.tensegrity.graphics.device.awt
Class AWTTexturePaint

java.lang.Object
  extended bycom.tensegrity.graphics.device.awt.AWTTexturePaint
All Implemented Interfaces:
java.awt.Paint, java.awt.Transparency

public class AWTTexturePaint
extends java.lang.Object
implements java.awt.Paint

The AWTTexturePaint represents a Paint that can be used to render textures on the AWTDevice.

Version:
$Id: AWTTexturePaint.java,v 1.6 2004/08/11 11:14:25 MichaelKegel Exp $
Author:
MichaelKegel

Field Summary
static int BESTFIT
          constant tells about a scaling mode the AWTTexturePaint supports
static int CROPFITTED
          constant tells about a scaling mode the AWTTexturePaint supports
static int SIZE
          constant tells about a scaling mode the AWTTexturePaint supports
static int STRETCHTOFIT
          constant tells about a scaling mode the AWTTexturePaint supports
static int TILED
          constant tells about a scaling mode the AWTTexturePaint supports
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
AWTTexturePaint(AWTDevice device, Texture texture, int transparency)
          Constructor that creates a AWTTexturePaint with the Texture given by texture and the transparency level given by transparency.
AWTTexturePaint(AWTDevice device, Texture texture, int type, int transparency)
          Constructor that creates a AWTTexturePaint with the Texture given by texture, the transparency level given by transparency and the scaling mode given by type.
 
Method Summary
 java.awt.PaintContext createContext(java.awt.image.ColorModel colorModel, java.awt.Rectangle deviceBounds, java.awt.geom.Rectangle2D userBounds, java.awt.geom.AffineTransform transform, java.awt.RenderingHints hints)
           
 int getTransparency()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE

public static final int SIZE
constant tells about a scaling mode the AWTTexturePaint supports

See Also:
Constant Field Values

TILED

public static final int TILED
constant tells about a scaling mode the AWTTexturePaint supports

See Also:
Constant Field Values

STRETCHTOFIT

public static final int STRETCHTOFIT
constant tells about a scaling mode the AWTTexturePaint supports

See Also:
Constant Field Values

BESTFIT

public static final int BESTFIT
constant tells about a scaling mode the AWTTexturePaint supports

See Also:
Constant Field Values

CROPFITTED

public static final int CROPFITTED
constant tells about a scaling mode the AWTTexturePaint supports

See Also:
Constant Field Values
Constructor Detail

AWTTexturePaint

public AWTTexturePaint(AWTDevice device,
                       Texture texture,
                       int transparency)
Constructor that creates a AWTTexturePaint with the Texture given by texture and the transparency level given by transparency.

Parameters:
texture - the Texture to use
transparency - the transparency level given in percent

AWTTexturePaint

public AWTTexturePaint(AWTDevice device,
                       Texture texture,
                       int type,
                       int transparency)
Constructor that creates a AWTTexturePaint with the Texture given by texture, the transparency level given by transparency and the scaling mode given by type.

Parameters:
texture - the Texture to use
type - the scaling mode for the texture
transparency - the transparency level given in percent
Method Detail

getTransparency

public int getTransparency()
Specified by:
getTransparency in interface java.awt.Transparency

createContext

public java.awt.PaintContext createContext(java.awt.image.ColorModel colorModel,
                                           java.awt.Rectangle deviceBounds,
                                           java.awt.geom.Rectangle2D userBounds,
                                           java.awt.geom.AffineTransform transform,
                                           java.awt.RenderingHints hints)
Specified by:
createContext in interface java.awt.Paint


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.