com.sun.perseus.demo.svgbrowser
Class SVGBrowser
java.lang.Object
javax.microedition.midlet.MIDlet
com.sun.perseus.demo.svgbrowser.SVGBrowser
- All Implemented Interfaces:
- javax.microedition.lcdui.CommandListener, javax.microedition.m2g.SVGEventListener
public final class SVGBrowser
- extends javax.microedition.midlet.MIDlet
- implements javax.microedition.lcdui.CommandListener, javax.microedition.m2g.SVGEventListener
This demo implements a simple file browser which allows opening SVG images
and animations.
Constructor Summary |
SVGBrowser()
Creates a new instance of SVGBrowser. |
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 |
SVGBrowser
public SVGBrowser()
- Creates a new instance of SVGBrowser.
startApp
protected void startApp()
- Specified by:
startApp
in class javax.microedition.midlet.MIDlet
pauseApp
protected void pauseApp()
- Specified by:
pauseApp
in class javax.microedition.midlet.MIDlet
destroyApp
protected 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
keyPressed
public void keyPressed(int keyCode)
- Specified by:
keyPressed
in interface javax.microedition.m2g.SVGEventListener
keyReleased
public void keyReleased(int keyCode)
- Specified by:
keyReleased
in interface javax.microedition.m2g.SVGEventListener
pointerPressed
public void pointerPressed(int x,
int y)
- Specified by:
pointerPressed
in interface javax.microedition.m2g.SVGEventListener
pointerReleased
public void pointerReleased(int x,
int y)
- Specified by:
pointerReleased
in interface javax.microedition.m2g.SVGEventListener
hideNotify
public void hideNotify()
- Specified by:
hideNotify
in interface javax.microedition.m2g.SVGEventListener
showNotify
public void showNotify()
- Specified by:
showNotify
in interface javax.microedition.m2g.SVGEventListener
sizeChanged
public void sizeChanged(int width,
int height)
- Updates the SVG image viewport size when the canvas size changes.
- Specified by:
sizeChanged
in interface javax.microedition.m2g.SVGEventListener