public class Painters
extends java.lang.Object
Painters and ObjectPainters| Modifier and Type | Method and Description |
|---|---|
static Painter |
compose(Painter... delegates)
Returns a new painter that is the composition of the given painters.
|
static <T> Painter |
create(ObjectPainter<T> objectPainter,
T object)
Creates a new
Painter that only paints the given object
with the given ObjectPainter |
static Painter |
createFlippedVertically(Painter delegate)
Create a
Painter that calls the given delegate with a
world-to-screen transform that causes the contents to be
flipped vertically |
static Painter |
createNormalized(Painter delegate,
double minX,
double minY,
double maxX,
double maxY)
Create a
Painter that calls the given delegate with a
world-to-screen transform that causes the specified rectangle
to fill the unit square. |
static Painter |
createNormalized(Painter delegate,
java.awt.geom.Rectangle2D rectangle)
Create a
Painter that calls the given delegate with a
world-to-screen transform that causes the specified rectangle
to fill the unit square. |
static Painter |
createTransformed(Painter delegate,
java.awt.geom.AffineTransform transform)
Create a
Painter that calls the given delegate with a
world-to-screen transform that was concatenated with the
given transform |
public static <T> Painter create(ObjectPainter<T> objectPainter, T object)
Painter that only paints the given object
with the given ObjectPainterT - The type of the painted objectobjectPainter - The ObjectPainterobject - The painted objectPainterpublic static Painter compose(Painter... delegates)
delegates - The delegatespublic static Painter createTransformed(Painter delegate, java.awt.geom.AffineTransform transform)
Painter that calls the given delegate with a
world-to-screen transform that was concatenated with the
given transformdelegate - The delegatetransform - The transformpublic static Painter createFlippedVertically(Painter delegate)
Painter that calls the given delegate with a
world-to-screen transform that causes the contents to be
flipped verticallydelegate - The delegatepublic static Painter createNormalized(Painter delegate, java.awt.geom.Rectangle2D rectangle)
Painter that calls the given delegate with a
world-to-screen transform that causes the specified rectangle
to fill the unit square.delegate - The delegaterectangle - The rectanglepublic static Painter createNormalized(Painter delegate, double minX, double minY, double maxX, double maxY)
Painter that calls the given delegate with a
world-to-screen transform that causes the specified rectangle
to fill the unit square.delegate - The delegateminX - The minimum x-coordinateminY - The minimum y-coordinatemaxX - The maximum x-coordinatemaxY - The maximum y-coordinateCopyright © 2019. All Rights Reserved.