Canvas Information

Team-Fly

If you would like to draw your own user interface, you'll need some basic information about the Canvas. You can find out the size of the Canvas by calling getWidth() and getHeight(). As we'll discuss later, you can also find out the color capabilities of the device by calling methods in Display.

Canvas also features event handler methods that will be called by the MIDP implementation as your Canvas is displayed and hidden. Each time your Canvas is shown, the showNotify() method will be called. If another Displayable is shown, or the application manager decides to run a different application, hideNotify() is called.


Team-Fly


Wireless Java. Developing with J2ME
ColdFusion MX Professional Projects
ISBN: 1590590775
EAN: 2147483647
Year: 2000
Pages: 129

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net