Top Fields Constructors Methods
org.apache.poi.sl.draw

public Class DrawTexturePaint

extends TexturePaint
Class Inheritance
Annotations
@Internal
Imports
java.awt.AlphaComposite, .Graphics2D, .PaintContext, .Rectangle, .RenderingHints, .Shape, .TexturePaint, java.awt.geom.AffineTransform, .Dimension2D, .Point2D, .Rectangle2D, java.awt.image.BufferedImage, .ColorModel, org.apache.poi.sl.usermodel.Insets2D, .PaintStyle, org.apache.poi.util.Dimension2DDouble, .Internal

Field Summary

Modifier and TypeField and Description
private final PaintStyle.TexturePaint
private final double
private final double
private final ImageRenderer
private static final Insets2D
private final boolean
private final Shape

Constructor Summary

AccessConstructor and Description
pack-priv
DrawTexturePaint(ImageRenderer imgRdr, BufferedImage txtr, Shape shape, PaintStyle.TexturePaint fill, double flipX, double flipY, boolean isBitmapSrc)

Method Summary

Modifier and TypeMethod and Description
public PaintContext
createContext(ColorModel
the preferred ColorModel which represents the most convenient format for the caller to receive the pixel data, or null if there is no preference.
cm
,
Rectangle
the device space bounding box of the graphics primitive being rendered.
deviceBounds
,
Rectangle2D
the user space bounding box of the graphics primitive being rendered.
userBounds
,
AffineTransform
the AffineTransform from user space into device space.
xform
,
RenderingHints
the set of hints that the context object can use to choose between rendering alternatives.
hints
)

Overrides java.awt.TexturePaint.createContext.

Implements java.awt.Paint.createContext.

Creates and returns a PaintContext used to generate a tiled image pattern.

public Shape
public PaintStyle.TexturePaint
public BufferedImage
getImage(Rectangle2D userBounds)

public ImageRenderer
private AffineTransform
getTiledInstance(final Rectangle2D usedBounds, final AffineTransform xform)

Inherited from java.awt.TexturePaint:
getAnchorRectgetImagegetTransparency

Field Detail

fillback to summary
private final PaintStyle.TexturePaint fill
flipXback to summary
private final double flipX
flipYback to summary
private final double flipY
imgRdrback to summary
private final ImageRenderer imgRdr
INSETS_EMPTYback to summary
private static final Insets2D INSETS_EMPTY
isBitmapSrcback to summary
private final boolean isBitmapSrc
shapeback to summary
private final Shape shape

Constructor Detail

DrawTexturePaintback to summary
pack-priv DrawTexturePaint(ImageRenderer imgRdr, BufferedImage txtr, Shape shape, PaintStyle.TexturePaint fill, double flipX, double flipY, boolean isBitmapSrc)

Method Detail

createContextback to summary
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)

Overrides java.awt.TexturePaint.createContext.

Implements java.awt.Paint.createContext.

Doc from java.awt.TexturePaint.createContext.

Creates and returns a PaintContext used to generate a tiled image pattern. See the specification of the method in the Paint interface for information on null parameter handling.

Parameters
cm:ColorModel

the preferred ColorModel which represents the most convenient format for the caller to receive the pixel data, or null if there is no preference.

deviceBounds:Rectangle

the device space bounding box of the graphics primitive being rendered.

userBounds:Rectangle2D

the user space bounding box of the graphics primitive being rendered.

xform:AffineTransform

the AffineTransform from user space into device space.

hints:RenderingHints

the set of hints that the context object can use to choose between rendering alternatives.

Returns:PaintContext

the PaintContext for generating color patterns.

Annotations
@Override
getAwtShapeback to summary
public Shape getAwtShape()
getFillback to summary
public PaintStyle.TexturePaint getFill()
getImageback to summary
public BufferedImage getImage(Rectangle2D userBounds)
getImageRendererback to summary
public ImageRenderer getImageRenderer()
getTiledInstanceback to summary
private AffineTransform getTiledInstance(final Rectangle2D usedBounds, final AffineTransform xform)