//shape.setBoundingShape(new BoundsZPlaneRectangle(shape)); //already done by override, (ie svgpoly)
//Create amd apply the linear gradient if existant and if we are in opengl rendering mode
if (MT4jSettings.getInstance().isOpenGlMode()){
if (linearGradient != null){
FillPaint gradient = this.createLinearGradient(linearGradient, gfxElem, originalFillOpacity, shape);
if (gradient != null){
shape.setFillPaint(gradient);
}
}
if (radialGradient != null){
FillPaint gradient = this.createRadialGradient(radialGradient, gfxElem, opacity, shape);
if (gradient != null){
shape.setFillPaint(gradient);
}
}
//Per default use direct gl drawing and displaylists in OGL mode