RenderingHints.VALUE_ANTIALIAS_OFF);
Graphics2D g2 = (Graphics2D) graphics.create();
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_OFF);
SimplisticGradientPainter gradPainter = new SimplisticSoftBorderReverseGradientPainter();
FlatBorderPainter fbp = new FlatBorderPainter();
int borderDelta = (int) Math.floor(SubstanceSizeUtils
.getBorderStrokeWidth(fontSize) / 2.0);
Shape contour = SubstanceOutlineUtilities.getBaseOutline(dim - 1,
dim - 1, SubstanceSizeUtils.getClassicButtonCornerRadius(dim),
null, borderDelta);
g2.translate(0, 1);
boolean isDark = fillScheme.isDark();
fillScheme = new ShiftColorScheme(fillScheme, fillScheme
.getExtraLightColor(), 0.7);
gradPainter.paintContourBackground(g2, tree, dim - 1, dim - 1, contour,
false, fillScheme, fillScheme, 0, false, false);
borderScheme = new ShiftColorScheme(borderScheme, isDark ? borderScheme
.getUltraLightColor() : borderScheme.getLightColor(), 0.5);
fbp.paintBorder(g2, tree, dim - 1, dim - 1, contour, null,
borderScheme, borderScheme, 0, false);