Java Doc for PhotoFrame.java in  » IDE-Netbeans » mobility » com » sun » perseus » demo » picturedecorator » 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 » mobility » com.sun.perseus.demo.picturedecorator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.perseus.demo.picturedecorator.PhotoFrame

PhotoFrame
public class PhotoFrame extends Canvas (Code)
The photo frame represents a single photo with SVG overlays.


Field Summary
final public  StringSVG_NAMESPACE_URI
     The namespace for the svg document.
final public static  StringXLINK_NAMESPACE_URI
    
 ImagecurrentImage
     The current background image.
 intcursorX
     The crosshair cursor's horizontal position.
 intcursorY
     The crosshair cursor's vertical position.
 Documentdoc
     The SVG document.
 ItemPickeritemPicker
     The ItemPicker canvas.
 intphotoNumber
     The current photo number.
 SVGLocatableElementprop
     The current prop.
protected  ScalableGraphicssg
     The scalable graphics instance used for rendering.
 CommandshowItemPicker
     The ItemPicker command.
 SVGSVGElementsvg
     The element.
 SVGImagesvgImage
     The current SVG image.
 VectorvisibleProps
     The list of props that have been placed and can be picked up.

Constructor Summary
public  PhotoFrame(PictureDecorator main)
     Constructs a new photo frame.

Method Summary
public  voidaddProp(String id)
     Adds the prop referenced by id in the library.
public  voidaddProp(SVGLocatableElement newProp)
     Adds the prop to the SVG document.
public  voidkeyPressed(int keyCode)
     Handle a keypress.
public  voidkeyRepeated(int keyCode)
     Repeat a keypress.
static  voidlocateProps(SVGElement parent, int level, int defs, Vector hiddens, Vector visibles)
     Walk the current parent node downward to find all "hiddens" (The SVG elements within a section that have IDs) and all "visibles" (The SVG elements outside the sections).
public  voidmirrorProp(SVGLocatableElement prop, boolean flipHorizontal)
     Mirrors the prop about the horizontal or vertical axis.
public  voidpaint(Graphics g)
     Paint the photo in the back, then layer all SVG images on top.
public  voidremoveProp()
     Removes the current prop if it is displayed.
public  voidrotateProp(SVGLocatableElement prop, float angle)
     Rotates the prop by the given angle.
public  voidscaleProp(SVGLocatableElement prop, float scale)
     Scales the prop by the given scale.
public  voidsetPhoto(int number)
     Establishes the current background photo.
public  voidsetPropsLibrary(SVGImage image)
     Establishes the current prop library, which holds definitions of props in its section(s).
public  voidtranslateProp(SVGLocatableElement prop, float dx, float dy)
     Translate the prop by the given horizontal and vertical distances.

Field Detail
SVG_NAMESPACE_URI
final public String SVG_NAMESPACE_URI(Code)
The namespace for the svg document.



XLINK_NAMESPACE_URI
final public static String XLINK_NAMESPACE_URI(Code)
The namespace for xlink:href



currentImage
Image currentImage(Code)
The current background image.



cursorX
int cursorX(Code)
The crosshair cursor's horizontal position.



cursorY
int cursorY(Code)
The crosshair cursor's vertical position.



doc
Document doc(Code)
The SVG document.



itemPicker
ItemPicker itemPicker(Code)
The ItemPicker canvas.



photoNumber
int photoNumber(Code)
The current photo number.



prop
SVGLocatableElement prop(Code)
The current prop.



sg
protected ScalableGraphics sg(Code)
The scalable graphics instance used for rendering.



showItemPicker
Command showItemPicker(Code)
The ItemPicker command.



svg
SVGSVGElement svg(Code)
The element.



svgImage
SVGImage svgImage(Code)
The current SVG image.



visibleProps
Vector visibleProps(Code)
The list of props that have been placed and can be picked up.




Constructor Detail
PhotoFrame
public PhotoFrame(PictureDecorator main)(Code)
Constructs a new photo frame.




Method Detail
addProp
public void addProp(String id)(Code)
Adds the prop referenced by id in the library.
Parameters:
  id - The identifier of the prop within a <defs>section of the library.



addProp
public void addProp(SVGLocatableElement newProp)(Code)
Adds the prop to the SVG document.
Parameters:
  prop - The prop to be added.



keyPressed
public void keyPressed(int keyCode)(Code)
Handle a keypress.
Parameters:
  keyCode - The code for the key that was pressed.



keyRepeated
public void keyRepeated(int keyCode)(Code)
Repeat a keypress.
Parameters:
  keyCode - The code for the key that was pressed.



locateProps
static void locateProps(SVGElement parent, int level, int defs, Vector hiddens, Vector visibles)(Code)
Walk the current parent node downward to find all "hiddens" (The SVG elements within a section that have IDs) and all "visibles" (The SVG elements outside the sections).
Parameters:
  parent - The relative parent node.
Parameters:
  level - The nesting level (0..n).
Parameters:
  defs - The nesting level.
Parameters:
  hiddens - The list of elements with IDs within a section.
Parameters:
  visibles - The list of elements outside a section.



mirrorProp
public void mirrorProp(SVGLocatableElement prop, boolean flipHorizontal)(Code)
Mirrors the prop about the horizontal or vertical axis.
Parameters:
  angle - The angle by which the image will be rotated.
Parameters:
  flipHorizontal - true if mirroring will be about thevertical axis; false if mirroring will be about thehorizontal axis.



paint
public void paint(Graphics g)(Code)
Paint the photo in the back, then layer all SVG images on top.
Parameters:
  g - The graphics context for this canvas.



removeProp
public void removeProp()(Code)
Removes the current prop if it is displayed.



rotateProp
public void rotateProp(SVGLocatableElement prop, float angle)(Code)
Rotates the prop by the given angle.
Parameters:
  angle - The angle by which the prop will be rotated.



scaleProp
public void scaleProp(SVGLocatableElement prop, float scale)(Code)
Scales the prop by the given scale.
Parameters:
  scale - The scaling factor to be applied to the prop.



setPhoto
public void setPhoto(int number)(Code)
Establishes the current background photo.
Parameters:
  number - The number of the photo in the JAD file.



setPropsLibrary
public void setPropsLibrary(SVGImage image)(Code)
Establishes the current prop library, which holds definitions of props in its section(s). Each prop is located by its ID.

When a prop is used on the display, a <use> element is inserted into the library, effectively making the prop available for display.
Parameters:
  image - The SVG image containing the prop definitions. The image mayalso contain elements that are statically positioned.




translateProp
public void translateProp(SVGLocatableElement prop, float dx, float dy)(Code)
Translate the prop by the given horizontal and vertical distances.
Parameters:
  dx - The horizontal distance to move the prop.
Parameters:
  dy - The vertical distance to move the prop.



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