com.sun.perseus.demo.optimizedmenu
Class OptimizedSVGMenuDemo
java.lang.Object
javax.microedition.midlet.MIDlet
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. |
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 |
svgCanvas
OptimizedSVGMenuDemo.MenuCanvas svgCanvas
OptimizedSVGMenuDemo
public OptimizedSVGMenuDemo()
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