| Package | Description |
|---|---|
| de.javagl.viewer | |
| de.javagl.viewer.painters |
Generic
Painter implementations that can
serve as building blocks for more complex painters. |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleObjectPainter<T>
Implementation of a
Painter that allows setting an object
that should be painted with a delegate ObjectPainter |
class |
TransformedPainter
Implementation of a
Painter that calls a delegate painter
after applying a transform to the given world-to-screen transform |
| Modifier and Type | Method and Description |
|---|---|
static Painter |
Painters.compose(Painter... delegates)
Returns a new painter that is the composition of the given painters.
|
static <T> Painter |
Painters.create(ObjectPainter<T> objectPainter,
T object)
Creates a new
Painter that only paints the given object
with the given ObjectPainter |
static Painter |
Painters.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 |
Painters.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 |
Painters.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 |
Painters.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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Viewer.addPainter(Painter painter)
Add the given
Painter, which will perform painting
operations in the Viewer.paintComponent(Graphics) method. |
boolean |
Viewer.addPainter(Painter painter,
int layer)
Add the given
Painter, which will perform painting
operations in the Viewer.paintComponent(Graphics) method,
on the specified layer. |
static Painter |
Painters.compose(Painter... delegates)
Returns a new painter that is the composition of the given painters.
|
static Painter |
Painters.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 |
Painters.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 |
Painters.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 |
Painters.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 |
boolean |
Viewer.removePainter(Painter painter)
Remove the given
Painter from all layers that it is contained
in |
boolean |
Viewer.removePainter(Painter painter,
int layer)
Remove the given
Painter from the specified layer |
| Constructor and Description |
|---|
TransformedPainter(Painter delegatePainter,
java.awt.geom.AffineTransform transform)
Create a new transformed painter with the given delegate and transform.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CoordinateSystemPainter
Implementation of the
Painter interface that paints a coordinate
system, consisting of a grid and labeled coordinate axes. |
class |
TooltipPainter
A class that can be used to paint a tooltip at a certain location, given
in world coordinates
|
Copyright © 2019. All Rights Reserved.