.toString(), rule, font);
}
}
}
} else if (layer instanceof GeometryDirectLayer) {
GeometryDirectLayer geometryLayer = (GeometryDirectLayer) layer;
builder.addVectorLayer(null, geometryLayer.getTitle(), geometryLayer.getStyle().featureTypeStyles()
.get(0).rules().get(0), font);
}
}
JComponent c = builder.buildComponent();
BufferedImage image = new BufferedImage(c.getWidth(), c.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);