@Override protected void pushDynStyle( StyleGroup group, Graphics2D g, Camera camera, GraphicElement element) { Color color = group.getFillColor(0); if (element != null && group.getFillMode() == FillMode.DYN_PLAIN) color = interpolateColor(group, element); g.setColor(color); if (group.getSizeMode() == SizeMode.DYN_SIZE) { Object s = element.getAttribute("ui.size"); if (s != null) { width = metrics.lengthToGu(StyleConstants.convertValue(s)); height = width; w2 = width / 2; h2 = height / 2; } else { size = group.getSize(); width = metrics.lengthToGu(size, 0); height = size.size() > 1 ? metrics.lengthToGu(size, 1) : width; w2 = width / 2; h2 = height / 2; } } }
@Override protected void pushStyle(StyleGroup group, Graphics2D g, Camera camera) { size = group.getSize(); shape = new Ellipse2D.Double(); width = metrics.lengthToGu(size, 0); height = size.size() > 1 ? metrics.lengthToGu(size, 1) : width; w2 = width / 2; h2 = height / 2; Color color = group.getFillColor(0); g.setColor(color); }