+ double sizeBarBoxTop = (sizeBarBoxTopInitial + (colorBarBoxHeight * i));
+ i++;
+
+ g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.8f));
+ g2d.setColor(new Color(0.9f, 0.9f, 0.9f, 0.95f));
+
+ Rectangle2D vertical = new Rectangle2D.Double(sizeBarBoxLeft, sizeBarBoxTop, colorBarBoxWidth, colorBarBoxHeight);
+ g2d.fill(vertical);
+
+ double sizeVerticalLeft = sizeBarBoxLeft + 5;
+ double sizeVerticalTop = sizeBarBoxTop + 15;
+ double sizeVerticalHeigth = colorBarBoxHeight - 30;
+
+ double sizeVerticalWidth = (sizeBarBoxWidth - 10) / sizes.size();
+
+ Font rulerFont = new Font("Tahoma", Font.PLAIN, DPIUtil.upscale(9));
+ g2d.setFont(rulerFont);
+
+ double interval = (max - min) / sizes.size();
+
+ for (int j = 0; j < sizes.size(); j++) {
+
+ Double size = sizes.get(j);
+
+ g2d.setColor(new Color((float)0, (float)0, (float)0.8, 0.8f));
+ double sizedWidth = (size / 5) * sizeVerticalHeigth;
+ Rectangle2D rect = new Rectangle2D.Double(sizeVerticalLeft, (sizeVerticalTop), sizedWidth, sizeVerticalHeigth);
+ g2d.fill(rect);
+
+ double value = min + j * interval;
+ String str = Double.toString(value);
+ if (str.length() > 4) {
+ str = str.substring(0, 3);
+ }
+ g2d.setColor(Color.BLACK);
+ g2d.drawString(str, (float)(sizeVerticalLeft - 8), (float)(sizeBarBoxTop + sizeBarBoxHeight));
+
+ sizeVerticalLeft = sizeVerticalLeft + sizeVerticalWidth;