|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
de.enough.polish.ui.Screen
de.enough.polish.ui.SnapshotScreen
public class SnapshotScreen
A convenience screen for taking snapshots. This screen requires support of the MMAPI by the current target device!
//#if polish.api.mmapi
import de.enough.polish.ui.SnapshotScreen;
//#endif
...
//#if polish.api.mmapi
//#style snapshotScreen
SnapshotScreen screen = new SnapshotScreen("Snapshot");
//#endif
Copyright Enough Software 2006 - 2008
history
Sep 8, 2006 - rob creation
| Field Summary |
|---|
| Fields inherited from class javax.microedition.lcdui.Canvas |
|---|
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP |
| Constructor Summary | |
|---|---|
SnapshotScreen(java.lang.String title)
Creates a new screen for taking screenshots. |
|
SnapshotScreen(java.lang.String title,
Style style)
Creates a new screen for taking screenshots. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
createCssSelector()
Retrieves the CSS selector for this screen. |
byte[] |
getSnapshot()
Takes a snapshot in the default encoding |
byte[] |
getSnapshot(java.lang.String encoding)
Takes a snapshot in the desired encoding/settings |
static java.lang.String[] |
getSnapshotEncodings()
Retrieves the supported snapshot encodings available on the current device. |
javax.microedition.lcdui.Image |
getSnapshotImage()
Takes a snapshot in the default encoding |
javax.microedition.lcdui.Image |
getSnapshotImage(java.lang.String encoding)
Takes a snapshot in the desired encoding/settings |
void |
hideNotify()
Unregisters this screen and notifies all items that they will not be shown anymore. |
protected void |
paintScreen(javax.microedition.lcdui.Graphics g)
Paints the screen. |
void |
run()
|
void |
showNotify()
Initialises this screen and informs all items about being painted soon. |
| Methods inherited from class javax.microedition.lcdui.Canvas |
|---|
getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, repaint, repaint, serviceRepaints |
| Methods inherited from class javax.microedition.lcdui.Displayable |
|---|
getHeight, getTicker, getWidth, setTicker |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SnapshotScreen(java.lang.String title)
title - the title of the screen
public SnapshotScreen(java.lang.String title,
Style style)
title - the title of the screenstyle - the style| Method Detail |
|---|
public void hideNotify()
Screen
hideNotify in interface AccessibleCanvashideNotify in class Screenpublic void showNotify()
Screen
showNotify in interface AccessibleCanvasshowNotify in class Screenpublic void run()
run in interface java.lang.Runnablepublic static java.lang.String[] getSnapshotEncodings()
public javax.microedition.lcdui.Image getSnapshotImage()
throws javax.microedition.media.MediaException
javax.microedition.media.MediaException - when taking the snapshot fails
public javax.microedition.lcdui.Image getSnapshotImage(java.lang.String encoding)
throws javax.microedition.media.MediaException
encoding - the encoding and optionally size
javax.microedition.media.MediaException - when taking the snapshot fails
public byte[] getSnapshot()
throws javax.microedition.media.MediaException
javax.microedition.media.MediaException - when taking the snapshot fails
public byte[] getSnapshot(java.lang.String encoding)
throws javax.microedition.media.MediaException
encoding - the encoding and optionally size
javax.microedition.media.MediaException - when taking the snapshot failsprotected void paintScreen(javax.microedition.lcdui.Graphics g)
Screen
paintScreen in class Screeng - the graphics on which the screen should be paintedScreen.contentX,
Screen.contentY,
Screen.contentWidth,
Screen.contentHeight,
Screen.paintScrollIndicator,
Screen.paintScrollIndicatorUp,
Screen.paintScrollIndicatorDownprotected java.lang.String createCssSelector()
Screen
createCssSelector in class Screen
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||