code: private void draw() throws GeometryIndexNotFoundException {
  		if (Geometry.POINT.equals(editService.getGeometry().getGeometryType())) {
  			drawPoint(null);
  		} else if (Geometry.LINE_STRING.equals(editService.getGeometry().getGeometryType())
  				|| Geometry.LINEAR_RING.equals(editService.getGeometry().getGeometryType())) {
  			drawLineString(null);
  		} else if (Geometry.POLYGON.equals(editService.getGeometry().getGeometryType())) {
  			drawPolygon(null);
  		}
  	}
docs: ------------------------------------------------------------------------