final IPolyline xLine = ShapeFactory.createPolyline();
final IPolyline yLine = ShapeFactory.createPolyline();
xLine.addPoint(ShapeFactory.createPoint(posX+shape.getGridStartX()*IShape.PPC + arr0Reduction, posY));
xLine.addPoint(ShapeFactory.createPoint(posX+shape.getGridEndX()*IShape.PPC - arr1Reduction, posY));
yLine.addPoint(ShapeFactory.createPoint(posX, posY-shape.getGridStartY()*IShape.PPC - arr0Reduction));
yLine.addPoint(ShapeFactory.createPoint(posX, posY-shape.getGridEndY()*IShape.PPC + arr1Reduction));
xLine.getArrowAt(0).copy(arr0);
xLine.getArrowAt(1).copy(arr1);
yLine.getArrowAt(0).copy(shape.getArrowAt(0));