public class PatternPaint extends Object implements Paint
BITMASK, OPAQUE, TRANSLUCENT
Constructor and Description |
---|
PatternPaint(GraphicsNode node,
Rectangle2D patternRegion,
boolean overflow,
AffineTransform patternTransform)
Constructs a new
PatternPaint . |
Modifier and Type | Method and Description |
---|---|
PaintContext |
createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a context used to generate the pattern.
|
GraphicsNode |
getGraphicsNode()
Returns the graphics node that define the pattern.
|
boolean |
getOverflow() |
Rectangle2D |
getPatternRect()
Returns the pattern region.
|
AffineTransform |
getPatternTransform()
Returns the additional transform of the pattern paint.
|
int |
getTransparency()
Returns the transparency mode for this pattern paint.
|
public PatternPaint(GraphicsNode node, Rectangle2D patternRegion, boolean overflow, 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 Rectangle2D getPatternRect()
public AffineTransform getPatternTransform()
public boolean getOverflow()
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
createContext
in interface Paint
public int getTransparency()
getTransparency
in interface Transparency
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.