Motorola i325 Spezifikationen Seite 126

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 161
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 125
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);
}
}
Seitenansicht 125
1 2 ... 121 122 123 124 125 126 127 128 129 130 131 ... 160 161

Kommentare zu diesen Handbüchern

Keine Kommentare