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


net.xoetrope.awt.XImage
   net.xoetrope.awt.XHotspotImage

All known Subclasses:   net.xoetrope.awt.XImageMap,
XHotspotImage
public class XHotspotImage extends XImage implements MouseMotionListener(Code)

A widget for displaying an image and associating hotspots at coordinates specified in an external file

Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt
version:
   $Revision: 1.9 $



Field Summary
protected  Hashtabledisabled
    
protected static  CursorhandCursordefaultCursor
    
protected  Vectorhotspotsimages
    
protected  Vectornames
    

Constructor Summary
public  XHotspotImage()
     Constructor.

Method Summary
public  intcheckHotspot(Point p)
     Check the Point p to see if any of the polygons in the hotspots Vector contain it.
public  voiddisableHotspot(String name)
     Create a hashtable to store the disabled hotspots and move the disabled one into it from the main Vector.
public  voidenableHotspot(String name)
    
public  StringgetName(int i)
    
protected  voidhandleElement(XmlElement ele)
    
protected  voidhotspotDisabled(String name, int idx)
    
protected  voidhotspotEnabled(String name)
    
public  voidmouseDragged(MouseEvent e)
     Unused method.
public  voidmouseMoved(MouseEvent e)
    
public  voidread(Reader r)
     Reads the hotspot information from the reader parameter and adds them to the names and hotspots vectors.

Field Detail
disabled
protected Hashtable disabled(Code)



handCursordefaultCursor
protected static Cursor handCursordefaultCursor(Code)



hotspotsimages
protected Vector hotspotsimages(Code)



names
protected Vector names(Code)




Constructor Detail
XHotspotImage
public XHotspotImage()(Code)
Constructor. Sets cursors and creates the Vector which stores the hotspots. Adds a new MouseMotionListener to the image




Method Detail
checkHotspot
public int checkHotspot(Point p)(Code)
Check the Point p to see if any of the polygons in the hotspots Vector contain it. If so return the index of the Vector element.
Parameters:
  p - The Point which we are checking The index of the polygon which contains the point or -1 if none ofthe polygons contain the Point



disableHotspot
public void disableHotspot(String name)(Code)
Create a hashtable to store the disabled hotspots and move the disabled one into it from the main Vector.
Parameters:
  name - the name of the hotspot to be disabled



enableHotspot
public void enableHotspot(String name)(Code)
Move the hotspot from the disabled Hashtable to the main Vector
Parameters:
  name -



getName
public String getName(int i)(Code)
Get the name of the hotspot in element i of the names vector
Parameters:
  i - The index of the hotspot The Name of the hotspot



handleElement
protected void handleElement(XmlElement ele)(Code)



hotspotDisabled
protected void hotspotDisabled(String name, int idx)(Code)
Convenience method to inform subclasses when a hotspot has been disabled
Parameters:
  name - the name of the hotspot being disabled.
Parameters:
  idx - the index of the hotspot being disabled



hotspotEnabled
protected void hotspotEnabled(String name)(Code)
Convenience method to inform subclasses when a hotspot has been enabled
Parameters:
  name - the name of the hotspot being enabled.



mouseDragged
public void mouseDragged(MouseEvent e)(Code)
Unused method.
Parameters:
  e -



mouseMoved
public void mouseMoved(MouseEvent e)(Code)
Call the checkHotSpot function to change the cursor
Parameters:
  e - MouseEvent



read
public void read(Reader r)(Code)
Reads the hotspot information from the reader parameter and adds them to the names and hotspots vectors.
Parameters:
  r - Reader of the file.



Methods inherited from net.xoetrope.awt.XImage
public void addNotify()(Code)(Java Doc)
public String getImageName()(Code)(Java Doc)
public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
public void setAttribute(String attribName, String attribValue)(Code)(Java Doc)
public void setImage(Image img)(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.