@Override protected void paintPolyline( mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String, Object> style) { // use custom canvas if available if (canvas instanceof GraphCanvas) { GraphCanvas gCanvas = (GraphCanvas) canvas; boolean rounded = isRounded(style) && canvas.getScale() > mxConstants.MIN_SCALE_FOR_ROUNDED_LINES; gCanvas.paintPolyline(points.toArray(new mxPoint[points.size()]), rounded, true); } else { super.paintPolyline(canvas, points, style); } }
@Override public void paintShape(mxGraphics2DCanvas canvas, mxCellState state) { super.paintShape(canvas, state); }