Implemented LegendGraphic for Rules in SLDs

Implemented here to be then used from the corresponding part in GeoServer. Not sure, however, if it might be better in a separate class instead of StyledShapePainter, as it is does not actually paint a shape, but the class seems to do other things than that already