if (style.getStrokeMode() != StyleConstants.StrokeMode.NONE
&& style.getStrokeWidth().value != 0) {
GraphMetrics metrics = camera.getMetrics();
Rectangle2D rect = new Rectangle2D.Double();
double px1 = metrics.px1;
Value stroke = style.getShadowWidth();
rect.setFrame(metrics.lo.x, metrics.lo.y + px1,
metrics.size.data[0] - px1, metrics.size.data[1] - px1);
g.setStroke(new BasicStroke((float) metrics.lengthToGu(stroke)));
g.setColor(graph.getStyle().getStrokeColor(0));