* @param symbolizer
* @param scaleRange
*/
void setPolygonStyleFill(Object feature, PolygonStyle2D style,
PolygonSymbolizer symbolizer, Range scaleRange) {
Fill fill = symbolizer.getFill();
if (fill == null)
return;
// sets Style2D fill making sure we don't use too much memory for the
// rasterization
if (fill.getGraphicFill() != null) {
double size = evalToDouble(fill.getGraphicFill().getSize(),
feature, 0);
if (isVectorRenderingEnabled() || size > MAX_RASTERIZATION_SIZE) {
// sets graphic fill if available and vector rendering is
// enabled
Style2D style2DFill = createPointStyle(feature, symbolizer, fill
.getGraphicFill(), scaleRange, false);
style.setGraphicFill(style2DFill);
return;
}
}