Search in sources :

Example 1 with GroupPresentation

use of org.geotoolkit.renderer.GroupPresentation 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);
}
Also used : GroupPresentation(org.geotoolkit.renderer.GroupPresentation) Grid2DPresentation(org.geotoolkit.display2d.presentation.Grid2DPresentation) Grid2DPresentation(org.geotoolkit.display2d.presentation.Grid2DPresentation) ExceptionPresentation(org.apache.sis.internal.map.ExceptionPresentation) GroupPresentation(org.geotoolkit.renderer.GroupPresentation) Presentation(org.apache.sis.internal.map.Presentation) TextPresentation(org.geotoolkit.display2d.presentation.TextPresentation)

Aggregations

ExceptionPresentation (org.apache.sis.internal.map.ExceptionPresentation)1 Presentation (org.apache.sis.internal.map.Presentation)1 Grid2DPresentation (org.geotoolkit.display2d.presentation.Grid2DPresentation)1 TextPresentation (org.geotoolkit.display2d.presentation.TextPresentation)1 GroupPresentation (org.geotoolkit.renderer.GroupPresentation)1