com.sun.perseus.demo.optimizedmenu
Class OptimizedSVGMenuDemo

java.lang.Object
  extended by javax.microedition.midlet.MIDlet
      extended by com.sun.perseus.demo.optimizedmenu.OptimizedSVGMenuDemo
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public class OptimizedSVGMenuDemo
extends javax.microedition.midlet.MIDlet
implements javax.microedition.lcdui.CommandListener

The optimized SVG menu demonstrates how the SVG graphics engine can be used to pre-rasterize menu content. The rasterized images can then be shown as frames in animations. The trade-off is to reduce computer power while using a little more space to hold the rasterized content.


Nested Class Summary
(package private)  class OptimizedSVGMenuDemo.MenuCanvas
          The MenuCanvas class loads the icons found in the SVG image given at construction time and turns each icon into a bitmap.
 
Field Summary
(package private)  OptimizedSVGMenuDemo.MenuCanvas svgCanvas
           
 
Constructor Summary
OptimizedSVGMenuDemo()
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
           
 void destroyApp(boolean unconditional)
           
 void pauseApp()
           
 void startApp()
           
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

svgCanvas

OptimizedSVGMenuDemo.MenuCanvas svgCanvas
Constructor Detail

OptimizedSVGMenuDemo

public OptimizedSVGMenuDemo()
Method Detail

startApp

public void startApp()
Specified by:
startApp in class javax.microedition.midlet.MIDlet

pauseApp

public void pauseApp()
Specified by:
pauseApp in class javax.microedition.midlet.MIDlet

destroyApp

public void destroyApp(boolean unconditional)
Specified by:
destroyApp in class javax.microedition.midlet.MIDlet

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable d)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener