|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.midlet.MIDlet
com.sun.perseus.demo.picturedecorator.PictureDecorator
public class PictureDecorator
The PictureDecorator application is a small example of how SVG images can be layered on top of photo images (i.e., images taken with a camera). The image and the SVG overlays could be bundled and sent to another phone, given the proper messaging capabilities of a phone.
Note that this example creates a single photo frame. If the user interface were enhanced, the user could be maintaining several photoframes in a small library.
Field Summary | |
---|---|
(package private) javax.microedition.lcdui.Display |
display
The current display. |
protected SplashCanvas |
splashCanvas
The splash Canvas. |
Constructor Summary | |
---|---|
PictureDecorator()
Constructs a new PictureDecorator application. |
Method Summary | |
---|---|
void |
commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
Handle the soft-button menu commands. |
protected void |
destroyApp(boolean unconditional)
Destroy the photoframe and do some clean-up. |
javax.microedition.lcdui.Image |
getImage(java.lang.String property)
Returns the image associated with name . |
java.lang.String |
getImageName(java.lang.String property)
Returns the name of the image associated with name . |
javax.microedition.m2g.SVGImage |
getSVGImage(java.lang.String path)
Returns the SVG image from the given resource name. |
protected void |
pauseApp()
Pause the demo. |
protected void |
startApp()
Start the demo! |
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 |
---|
javax.microedition.lcdui.Display display
protected SplashCanvas splashCanvas
Constructor Detail |
---|
public PictureDecorator()
Method Detail |
---|
protected void startApp()
startApp
in class javax.microedition.midlet.MIDlet
protected void pauseApp()
pauseApp
in class javax.microedition.midlet.MIDlet
protected void destroyApp(boolean unconditional)
destroyApp
in class javax.microedition.midlet.MIDlet
public java.lang.String getImageName(java.lang.String property)
name
.
null
if a match for
name
could not be found.public javax.microedition.lcdui.Image getImage(java.lang.String property)
name
.
public javax.microedition.m2g.SVGImage getSVGImage(java.lang.String path)
public void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
commandAction
in interface javax.microedition.lcdui.CommandListener
c
- The command that as issued.d
- The displayable associated with the command.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |