Icon result = SliderRoundIcon.icons.get(key);
if (result != null)
return result;
SubstanceGradientPainter painter = SubstanceCoreUtilities
.getGradientPainter(slider);
SubstanceBorderPainter borderPainter = SubstanceCoreUtilities
.getBorderPainter(slider);
int borderDelta = (int) Math.floor(SubstanceSizeUtils
.getBorderStrokeWidth(SubstanceSizeUtils
.getComponentFontSize(slider)) / 2.0);
Shape contour = new Ellipse2D.Float(borderDelta, borderDelta, width
- 2 * borderDelta - 1, width - 2 * borderDelta - 1);
BufferedImage stateImage = SubstanceCoreUtilities.getBlankImage(
sliderIcon.size - 1, sliderIcon.size - 1);
Graphics2D g2d = stateImage.createGraphics();
g2d.translate(delta, delta);
painter.paintContourBackground(g2d, slider, width,
sliderIcon.size - 1, contour, false, colorScheme,
colorScheme2, cyclePos, true, colorScheme != colorScheme2);
// BufferedImage biResult = SubstanceCoreUtilities.getBlankImage(
// sliderIcon.size - 1, sliderIcon.size - 1);
// Graphics2D bg2d = (Graphics2D) biResult.getGraphics();