public class PatternPaint
extends java.lang.Object
implements java.awt.Paint
Constructor and Description |
---|
PatternPaint(GraphicsNode node,
java.awt.geom.Rectangle2D patternRegion,
boolean overflow,
java.awt.geom.AffineTransform patternTransform)
Constructs a new
PatternPaint . |
Modifier and Type | Method and Description |
---|---|
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)
Creates and returns a context used to generate the pattern.
|
GraphicsNode |
getGraphicsNode()
Returns the graphics node that define the pattern.
|
boolean |
getOverflow() |
java.awt.geom.Rectangle2D |
getPatternRect()
Returns the pattern region.
|
java.awt.geom.AffineTransform |
getPatternTransform()
Returns the additional transform of the pattern paint.
|
int |
getTransparency()
Returns the transparency mode for this pattern paint.
|
public PatternPaint(GraphicsNode node, java.awt.geom.Rectangle2D patternRegion, boolean overflow, java.awt.geom.AffineTransform patternTransform)
PatternPaint
.node
- Used to generate the paint pixel patternpatternRegion
- Region to which this paint is constrainedoverflow
- controls whether or not the node can overflow
the patternRegion.patternTransform
- additional transform added on
top of the user space to device space transform.public GraphicsNode getGraphicsNode()
public java.awt.geom.Rectangle2D getPatternRect()
public java.awt.geom.AffineTransform getPatternTransform()
public boolean getOverflow()
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)
createContext
in interface java.awt.Paint
public int getTransparency()
getTransparency
in interface java.awt.Transparency
Copyright © 2022 Apache Software Foundation. All Rights Reserved.