use of org.geotoolkit.display2d.presentation.Grid2DPresentation in project geotoolkit by Geomatys.
the class J2DPainter method paint.
public void paint(RenderingContext2D renderingContext, Presentation presentation) throws PortrayalException {
if (presentation instanceof Grid2DPresentation) {
final Grid2DPresentation gp = (Grid2DPresentation) presentation;
gp.paint(renderingContext);
}
if (presentation instanceof GroupPresentation) {
GroupPresentation gp = (GroupPresentation) presentation;
for (Presentation p : gp.elements()) {
paint(renderingContext, p);
}
}
logIfError(presentation);
}
Aggregations