Lets say I want to add a graphic on a graphics layer on the map. I do this by the code below
GraphicsLayer gl = new GraphicsLayer();
Geometry geometry = new Point(xPoint, yPoint);
Graphic graphic = new Graphic(geometry, new SimpleMarkerSymbol(Color.BLUE, 15, STYLE.CIRCLE));
gl.addGraphic(graphic);
I have to give a symbol(for defining how to render the graphic) as an attribute to the graphic constructor. So, why is there a setRenderer function for graphics layer?