Point origin = new Point(graphicContext.getPen().getX(), graphicContext.getPen().getY());
Paint paint = graphicContext.getPaint();
Stroke stroke = graphicContext.getStroke();
FillStyle fs = null;
LineStyle ls = null;
if (fill && paint != null)
fs = FillStyleBuilder.build(paint, shape.getBounds2D(), graphicContext.getTransform());
if (outline && stroke != null)