Rectangle compBounds = getBounds();
Rectangle bounds = (Rectangle) compBounds.clone();
if (mask == null) {
mask = /*!Sprite._isTrueVolatile() ? */ new Sprite(SpriteIO.createBufferedImage(getSize(), Sprite.DEFAULT_TYPE), "image/x-png", getSize())/* : new Sprite(Sprite.createVolatileImage(getSize()), "image/x-png", getSize())*/;
}
bounds.grow(6 - (int) ((float) bounds.width / 2f), 6 - (int) ((float) bounds.height / 2f));
g.translate(-compBounds.x, -compBounds.y);
g.clip(compBounds);
Color ledColor = Color.WHITE;
if ((state & ON_STATE) != 0) {
g.setColor(ledColor = type == READ ? Color.GREEN.brighter() : Color.RED.brighter());