public static void renderMark( Mark mark, int size, UOM uom, RendererContext context, double x, double y,
double rotation ) {
if ( size == 0 ) {
LOG.debug( "Not rendering a symbol because the size is zero." );
return;
}
if ( mark.fill == null && mark.stroke == null ) {
LOG.debug( "Not rendering a symbol because no fill/stroke is available/configured." );
return;
}
Shape shape = getShapeFromMark( mark, size - 1, rotation, true, x, y );
if ( mark.fill != null ) {
context.fillRenderer.applyFill( mark.fill, uom );
context.graphics.fill( shape );
}
if ( mark.stroke != null ) {
context.strokeRenderer.applyStroke( mark.stroke, uom, shape, 0, null );
}
}