Java Doc for XWmf.java in  » XML-UI » XUI » net » xoetrope » xui » wmf » 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 » XML UI » XUI » net.xoetrope.xui.wmf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.awt.Canvas
   net.xoetrope.xui.wmf.XWmf

XWmf
public class XWmf extends Canvas implements Serializable,XContentHolder(Code)
Core class for rendering the WMF image. Allows several WMF or WMF graphics files to be played into a single graphics context.
version:
   2.00
author:
   Luan O'Carroll


Field Summary
final public static  intBRUSH
    
final public static  intFONT
    
final public static  intNULL_BRUSH
    
final public static  intNULL_PEN
    
final public static  intPALETTE
    
final public static  intPEN
    
final static  doublePI
    
final static  longserialVersionUID
    

Constructor Summary
public  XWmf()
     Basic constructor, initializes the storage.
public  XWmf(boolean bInit)
     Basic constructor for use by Genny.

Method Summary
public  voidaddURL(String _url)
     Adds a url and reads the corresponding file.
public  voidaddUrl(java.net.URL newUrl)
     Adds a url and reads the corresponding file.
public  voiddrawCrossHairs(Graphics g, int x, int y)
     This method must be called by derived classes at the end of their paint method.
public  StringgetURL(int idx)
     Returns the current url.
public  StringgetURL()
     Returns the first url if any.
public  java.net.URLgetUrl(int idx)
     Returns the current url.
public  intgetXPos()
     Gets the relative mouse position within bounds of the image taking account of zooming and panning.
public  intgetYPos()
     Gets the relative mouse position within bounds of the image taking account of zooming and panning.
public  voidinit()
     Initializes the storage, add listeners for mouse motion and keyboard handling.
public  voidpaint(Graphics g)
     Renders the WMF image(s).
public  voidpan(int xPercent, int yPercent)
     Pans the image by the specified percentages, withing the range -80 to 20.
 voidreadObject(java.io.ObjectInputStream ois)
    
public  voidreset()
     Resets the internal storage and the coordinate system.
public  voidsetContent(String content)
    
public  voidsetXPos(int newXPos)
    
public  voidsetYPos(int newYPos)
    
 voidwriteObject(java.io.ObjectOutputStream oos)
    
public  voidzoom(int percent)
     Zooms in or out on the image within the range of 25 to 400 percent of the original image size.

Field Detail
BRUSH
final public static int BRUSH(Code)



FONT
final public static int FONT(Code)



NULL_BRUSH
final public static int NULL_BRUSH(Code)



NULL_PEN
final public static int NULL_PEN(Code)



PALETTE
final public static int PALETTE(Code)



PEN
final public static int PEN(Code)



PI
final static double PI(Code)



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
XWmf
public XWmf()(Code)
Basic constructor, initializes the storage.



XWmf
public XWmf(boolean bInit)(Code)
Basic constructor for use by Genny.




Method Detail
addURL
public void addURL(String _url)(Code)
Adds a url and reads the corresponding file.



addUrl
public void addUrl(java.net.URL newUrl)(Code)
Adds a url and reads the corresponding file.



drawCrossHairs
public void drawCrossHairs(Graphics g, int x, int y)(Code)
This method must be called by derived classes at the end of their paint method.
Parameters:
  x - the mouse x position.
Parameters:
  y - the mouse y position.



getURL
public String getURL(int idx)(Code)
Returns the current url.



getURL
public String getURL()(Code)
Returns the first url if any.



getUrl
public java.net.URL getUrl(int idx)(Code)
Returns the current url.



getXPos
public int getXPos()(Code)
Gets the relative mouse position within bounds of the image taking account of zooming and panning. the x position in the range 0 to 1000



getYPos
public int getYPos()(Code)
Gets the relative mouse position within bounds of the image taking account of zooming and panning. the y position in the range 0 to 1000



init
public void init() throws IOException(Code)
Initializes the storage, add listeners for mouse motion and keyboard handling.



paint
public void paint(Graphics g)(Code)
Renders the WMF image(s).



pan
public void pan(int xPercent, int yPercent)(Code)
Pans the image by the specified percentages, withing the range -80 to 20. This ensures that a portion of the image is always visible
Parameters:
  xPercent - the amount by which to pan as a percent of the image width.
Parameters:
  yPercent - the amount by which to pan as a percent of the image height.



readObject
void readObject(java.io.ObjectInputStream ois) throws ClassNotFoundException, IOException(Code)



reset
public void reset()(Code)
Resets the internal storage and the coordinate system.



setContent
public void setContent(String content)(Code)
Wraps addUrl to allow the url to be set as a string
Parameters:
  content - the URL string



setXPos
public void setXPos(int newXPos)(Code)



setYPos
public void setYPos(int newYPos)(Code)



writeObject
void writeObject(java.io.ObjectOutputStream oos) throws IOException(Code)



zoom
public void zoom(int percent)(Code)
Zooms in or out on the image within the range of 25 to 400 percent of the original image size.
Parameters:
  percent - the new size of the image as a percentage of the original size.



Methods inherited from java.awt.Canvas
public void addNotify()(Code)(Java Doc)
public void createBufferStrategy(int numBuffers)(Code)(Java Doc)
public void createBufferStrategy(int numBuffers, BufferCapabilities caps) throws AWTException(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public BufferStrategy getBufferStrategy()(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
public void update(Graphics g)(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.