Color newColor = dynamicColor != null ? dynamicColor : color;
boolean changeColor = !oldColor.equals(newColor);
- double viewScaleRecip = 1;
+ double viewScaleRecip = 10;
if (scaleStroke) {
double scale = GeometryUtils.getScale(g2d.getTransform());
scale = Math.max(10000, Math.min(scale, 50000));
- viewScaleRecip = 1.0 / scale;
+ viewScaleRecip /= scale;
}
double scaleRecip = viewScaleRecip * nodeSize;
if (NodeUtil.isSelected(this, 1)) {
changeColor = true;
g2d.setColor(SELECTION_COLOR);
- BasicStroke ss = GeometryUtils.scaleStroke(STROKE, (float) viewScaleRecip*5);
+ BasicStroke ss = GeometryUtils.scaleStroke(STROKE, (float) (viewScaleRecip*0.5));
g2d.setStroke(ss);
g2d.draw(toDraw);
}