|
|||||||
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.PlaySVGImageDemo
com.sun.perseus.demo.locationBasedService.LocationBasedService
public final class LocationBasedService
An example of zooming and panning. A sample itinerary is used in combination with a map of downtown San Francisco to show how a route can be traced from a starting point to an ending point. This also demonstrates how to insert/remove the traced route into/from the map content so that the route can also be scaled with the map.
Nested Class Summary | |
---|---|
(package private) class |
LocationBasedService.FinalDisplay
|
(package private) class |
LocationBasedService.InitialDisplay
|
(package private) class |
LocationBasedService.LocationBasedServiceAnim
|
Field Summary | |
---|---|
(package private) org.w3c.dom.svg.SVGElement[] |
connectors
Marker connectors |
(package private) java.lang.Runnable |
finalDisplay
|
(package private) org.w3c.dom.svg.SVGRect |
initialBBox
Initial screen bbox |
(package private) java.lang.Runnable |
initialDisplay
Animation steps |
(package private) org.w3c.dom.svg.SVGRect |
initialVB
Initial viewbox |
(package private) java.lang.Runnable |
locationBasedServiceAnim
|
(package private) org.w3c.dom.svg.SVGRGBColor |
MARKER_BLACK
|
(package private) org.w3c.dom.svg.SVGRGBColor |
MARKER_COLOR
Color constant for markers and connectors |
(package private) org.w3c.dom.svg.SVGRGBColor |
MARKER_WHITE
|
(package private) org.w3c.dom.svg.SVGElement[] |
markers
Location markers |
(package private) org.w3c.dom.svg.SVGElement |
message
Message element |
(package private) org.w3c.dom.svg.SVGElement |
messageBackground
Message background |
(package private) float |
messageX
Message location |
(package private) float |
messageY
Message location |
(package private) boolean |
paused
Controls whether the animation is paused or not |
(package private) java.lang.Object[][] |
points
|
(package private) java.lang.Runnable |
step
Current Animation |
Fields inherited from class com.sun.perseus.demo.PlaySVGImageDemo |
---|
doc, ERROR_COULD_NOT_LOAD_SVG, KEY_HELP, KEY_PAUSE, KEY_PLAY, KEY_ROTATE, KEY_START_DEMO, KEY_STOP, SPLASH_MIN_LENGTH, splashCanvas, splashImageName, state, STATE_INTERRUPTED, STATE_PAUSED, STATE_PLAYING, STATE_STOPPED, svg, SVG_NAMESPACE_URI, svgAnimator, svgCanvas, svgImage, svgImageName |
Constructor Summary | |
---|---|
LocationBasedService()
Default constructor |
Method Summary | |
---|---|
void |
init(org.w3c.dom.Document doc)
|
void |
keyPressed(int keyCode)
|
void |
run()
|
void |
startApp()
By default, start the demo in the playing state. |
Methods inherited from class com.sun.perseus.demo.PlaySVGImageDemo |
---|
commandAction, destroyApp, hideNotify, keyReleased, pauseApp, pointerPressed, pointerReleased, showNotify, sizeChanged |
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 |
---|
java.lang.Object[][] points
org.w3c.dom.svg.SVGElement[] markers
org.w3c.dom.svg.SVGElement[] connectors
java.lang.Runnable initialDisplay
java.lang.Runnable locationBasedServiceAnim
java.lang.Runnable finalDisplay
org.w3c.dom.svg.SVGElement message
float messageX
float messageY
org.w3c.dom.svg.SVGElement messageBackground
org.w3c.dom.svg.SVGRGBColor MARKER_COLOR
org.w3c.dom.svg.SVGRGBColor MARKER_BLACK
org.w3c.dom.svg.SVGRGBColor MARKER_WHITE
java.lang.Runnable step
org.w3c.dom.svg.SVGRect initialVB
org.w3c.dom.svg.SVGRect initialBBox
boolean paused
Constructor Detail |
---|
public LocationBasedService()
Method Detail |
---|
public void startApp()
startApp
in class PlaySVGImageDemo
public void init(org.w3c.dom.Document doc)
doc
- the DocumentNode holding the expected SVG content.public void keyPressed(int keyCode)
keyPressed
in interface javax.microedition.m2g.SVGEventListener
keyPressed
in class PlaySVGImageDemo
public void run()
run
in interface java.lang.Runnable
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |