iDEN i325 J2ME™ Developers’ Guide
Page 126
2004 Motorola, Inc.
// move the origin of coords so the image
// or TextView is next to this icon
g.translate(size, 0);
break;
case ITEM_LNF_ASPECT_CHECKBOX:
// outer rectangle
g.drawRect(0, 0, size-1, size-1);
// Inner mark, if selected
// (the inner mark is an x)
g.drawRect(1, 1, size-3, size-3);
if (selected)
{
g.drawLine(0, 0, size-2, size-2);
g.drawLine(0, size-2, size-2, 0);
}
// move the origin of coords so the image
// or TextView is next to this icon
g.translate(size, 0);
break;
}
// render the image (if any)
if (img != null)
{
g.drawImage(0, 0, img, 0);
// move the origin of coords so the TextView
// is next to this image
g.translate(img.getWidth(), 0);
}
// render the TextView
tv.paint(g);
}
}
Kommentare zu diesen Handbüchern