color = Toolkit.getColor(ColorsAndFonts.COLOR_IDENTIFIED);
} else if (state.isObjectIdentified()) {
color = Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY2);
}
final Size s = getSize();
if (color != null) {
if (hasFocus) {
final int xExtent = s.getWidth() - left;
for (int i = 0; i < left; i++) {
canvas.drawRectangle(i, i, xExtent - 2 * i, s.getHeight() - 2 * i, color);
}
} else {
final int xExtent = s.getWidth();
for (int i = 0; i < left; i++) {
canvas.drawRectangle(i, i, xExtent - 2 * i, s.getHeight() - 2 * i, color);
}
canvas.drawLine(xExtent - BORDER, left, xExtent - BORDER, left + s.getHeight(), color);
canvas.drawSolidRectangle(xExtent - BORDER + 1, left, BORDER - 2, s.getHeight() - 2 * left, Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY3));
}
}
}