Java Doc for SVGMenu.java in  » IDE-Netbeans » vmd.analyzer » org » netbeans » microedition » svg » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » vmd.analyzer » org.netbeans.microedition.svg 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.microedition.svg.SVGPlayer
   org.netbeans.microedition.svg.SVGAnimatorWrapper
      org.netbeans.microedition.svg.SVGMenu

SVGMenu
public class SVGMenu extends SVGAnimatorWrapper (Code)
Screen representing a menu component. SVG animation can contain named elements, which are being focused while the users moves up/down. In the case SVG image contains animation on the focus event, the user can see the animated transition between the named elements.

By default this component starts the animation automatically and runs in full screen mode.
author:
   breh



Field Summary
final public static  intSELECTED_INDEX_NONE
    
final public static  CommandSELECT_COMMAND
     Command fired when the user chooses a menu element.

Constructor Summary
public  SVGMenu(SVGImage svgImage, Display display)
     Creates a new instance of SVGMenu.

Method Summary
public  voidaddMenuElement(String svgElementId)
     Adds a menu element to the menu component.
public  voidfocusNext()
     By default, focusNext simply moves the focus on the next focusable element in the focus ring.
public  voidfocusPrev()
     By default, focusNext simply moves the focus on the previous focusable element in the focus ring.
public  StringgetMenuElementID(int index)
     Gets menu element id for given index.
public  intgetSelectedIndex()
    
public  voidresetFocus()
    

Field Detail
SELECTED_INDEX_NONE
final public static int SELECTED_INDEX_NONE(Code)
value of selected index when no menu item is selected



SELECT_COMMAND
final public static Command SELECT_COMMAND(Code)
Command fired when the user chooses a menu element.




Constructor Detail
SVGMenu
public SVGMenu(SVGImage svgImage, Display display)(Code)
Creates a new instance of SVGMenu. It requires SVGImage to be displayed as menu and display.

Please note, supplied SVGImage shouldn't be reused in other SVGAnimator.





Method Detail
addMenuElement
public void addMenuElement(String svgElementId)(Code)
Adds a menu element to the menu component. The menu element is identified by SVG element ID, so when the menu element is being selected, the element with given ID is being focused.



focusNext
public void focusNext()(Code)
By default, focusNext simply moves the focus on the next focusable element in the focus ring.



focusPrev
public void focusPrev()(Code)
By default, focusNext simply moves the focus on the previous focusable element in the focus ring.



getMenuElementID
public String getMenuElementID(int index) throws IndexOutOfBoundsException(Code)
Gets menu element id for given index. string element ID
throws:
  IndexOutOfBoundException - when a wrong index is used



getSelectedIndex
public int getSelectedIndex()(Code)
Gets index of selected menu element



resetFocus
public void resetFocus()(Code)
focus on the first element if applicable;




Fields inherited from org.netbeans.microedition.svg.SVGPlayer
final public static int PAUSED(Code)(Java Doc)
final public static int PLAYING(Code)(Java Doc)
final public static int STOPPED(Code)(Java Doc)
final public static int TOP_LEFTTOPTOP_RIGHTLEFTCENTERRIGHTBOTTOM_LEFTBOTTOMBOTTOM_RIGHT(Code)(Java Doc)

Methods inherited from org.netbeans.microedition.svg.SVGPlayer
public void addCommand(Command cmd)(Code)(Java Doc)
public void commandAction(Command command, Displayable displayable)(Code)(Java Doc)
protected float[] computeAnchorTranslate(SVGRect bbox, int anchor)(Code)(Java Doc)
protected SVGAnimator getAnimator()(Code)(Java Doc)
public synchronized int getAnimatorState()(Code)(Java Doc)
final protected CommandListener getCommandListener()(Code)(Java Doc)
protected Display getDisplay()(Code)(Java Doc)
public SVGAnimationElement getSVGAnimationElementById(String id) throws IllegalArgumentException(Code)(Java Doc)
public SVGElement getSVGElementById(String id) throws IllegalArgumentException(Code)(Java Doc)
public SVGEventListener getSVGEventListener()(Code)(Java Doc)
final public SVGImage getSVGImage()(Code)(Java Doc)
public SVGLocatableElement getSVGLocatableElementById(String id) throws IllegalArgumentException(Code)(Java Doc)
public SVGEventListener getSafeSVGEventListener()(Code)(Java Doc)
public SVGRect getScreenBBox(String id)(Code)(Java Doc)
public Canvas getSvgCanvas()(Code)(Java Doc)
public Ticker getTicker()(Code)(Java Doc)
public float getTimeIncrement()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
public void invokeAndWait(Runnable runnable) throws InterruptedException(Code)(Java Doc)
public synchronized void invokeAndWaitSafely(Runnable runnable)(Code)(Java Doc)
public void invokeLater(Runnable runnable)(Code)(Java Doc)
public synchronized void invokeLaterSafely(Runnable runnable)(Code)(Java Doc)
public boolean isResetAnimationWhenStopped()(Code)(Java Doc)
protected void paint(Graphics graphics)(Code)(Java Doc)
public synchronized void pause()(Code)(Java Doc)
public synchronized void play()(Code)(Java Doc)
public void removeCommand(Command cmd)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void rotate(String id, float angle)(Code)(Java Doc)
public void rotate(SVGElement svgElement, float angle)(Code)(Java Doc)
public void rotateAbout(String id, float angle, int anchor)(Code)(Java Doc)
public void rotateAbout(SVGLocatableElement svgLocatableElement, float angle, int anchor)(Code)(Java Doc)
public void rotateAboutSafely(String id, float angle, int anchor)(Code)(Java Doc)
public void rotateSafely(String id, float angle)(Code)(Java Doc)
public void scale(String id, float sx, float sy)(Code)(Java Doc)
public void scale(SVGElement svgElement, float sx, float sy)(Code)(Java Doc)
public void scaleAbout(String id, float sx, float sy, int anchor)(Code)(Java Doc)
public void scaleAbout(SVGLocatableElement svgLocatableElement, float sx, float sy, int anchor)(Code)(Java Doc)
public void scaleAboutSafely(String id, float sx, float sy, int anchor)(Code)(Java Doc)
public void scaleSafely(String id, float sx, float sy)(Code)(Java Doc)
public void screenTranslate(String id, float tx, float ty)(Code)(Java Doc)
public void screenTranslate(SVGLocatableElement svgLocatableElement, float tx, float ty)(Code)(Java Doc)
public void screenTranslateSafely(String id, float tx, float ty)(Code)(Java Doc)
public void setCommandListener(CommandListener commandListener)(Code)(Java Doc)
public void setFloatTrait(String id, String traitName, float traitValue)(Code)(Java Doc)
public void setFloatTraitSafely(String id, String traitName, float traitValue)(Code)(Java Doc)
public void setFullScreenMode(boolean mode)(Code)(Java Doc)
public void setRGBTrait(String id, String traitName, int rgb)(Code)(Java Doc)
public void setRGBTrait(String id, String traitName, int r, int g, int b)(Code)(Java Doc)
public void setRGBTraitSafely(String id, String traitName, int rgb)(Code)(Java Doc)
public void setRGBTraitSafely(String id, String traitName, int r, int g, int b)(Code)(Java Doc)
public void setResetAnimationWhenStopped(boolean reset)(Code)(Java Doc)
public void setSVGEventListener(SVGEventListener svgEventListener)(Code)(Java Doc)
public void setSafeSVGEventListener(SVGEventListener safeSvgEventListener)(Code)(Java Doc)
public void setStartAnimationImmediately(boolean startAnimation)(Code)(Java Doc)
public void setTicker(Ticker ticker)(Code)(Java Doc)
public void setTimeIncrement(float timeIncrement)(Code)(Java Doc)
public void setTitle(String s)(Code)(Java Doc)
public void setTrait(String id, String traitName, String traitValue)(Code)(Java Doc)
public void setTraitSafely(String id, String traitName, String traitValue)(Code)(Java Doc)
public void startAnimation(String elementId)(Code)(Java Doc)
public void startAnimation(String elementId, float delay)(Code)(Java Doc)
public void startAnimationSafely(String elementId)(Code)(Java Doc)
public synchronized void stop()(Code)(Java Doc)
public void stopAnimation(String elementId)(Code)(Java Doc)
public void stopAnimation(String elementId, float delay)(Code)(Java Doc)
public void stopAnimationSafely(String elementId)(Code)(Java Doc)
public void translate(String id, float tx, float ty)(Code)(Java Doc)
public void translate(SVGElement svgElement, float tx, float ty)(Code)(Java Doc)
public void translateSafely(String id, float tx, float ty)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.