|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCanvas
org.formaria.swt.Image
org.formaria.swt.HotspotImage
public class HotspotImage
A widget for displaying an image and associating hotspots at coordinates specified in an external file
Copyright: Copyright (c) Formaria Ltd., 2008
License: see license.txt
| Field Summary | |
|---|---|
protected int |
currentHotspotIdx
true to draw the hotspots as highlighted areas |
protected static Cursor |
defaultCursor
The default cursor |
protected static Cursor |
handCursor
The default pointer - the hand cursor |
protected java.util.Vector |
hotspots
The hotspots |
protected java.util.Vector |
names
The hotspot names |
protected java.util.Vector |
tooltips
The hotspot tooltiptexts |
| Fields inherited from class org.formaria.swt.Image |
|---|
currentProject |
| Constructor Summary | |
|---|---|
HotspotImage(java.lang.Object parent)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addCustomHotspot(XmlElement ele)
Add a custom hotspot |
int |
checkHotspot(MouseEvent e)
Check the mouse event with the hotspots |
java.lang.String |
getName(int i)
Get the name of a hotspot |
void |
mouseMove(MouseEvent e)
Refresh the display when the mouse moves |
void |
read(java.io.Reader r)
Read a file to store the hotspots |
| Methods inherited from class org.formaria.swt.Image |
|---|
checkSubclass, getAlignment, getImageName, getToolTip, isFull, isScale, paint, setAlignment, setBg, setFull, setImage, setImageName, setScale, setToolTip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int currentHotspotIdx
protected static Cursor handCursor
protected static Cursor defaultCursor
protected java.util.Vector hotspots
protected java.util.Vector names
protected java.util.Vector tooltips
| Constructor Detail |
|---|
public HotspotImage(java.lang.Object parent)
parent - parent object| Method Detail |
|---|
public void mouseMove(MouseEvent e)
public int checkHotspot(MouseEvent e)
e - MouseEvent
public void read(java.io.Reader r)
r - Readerprotected void addCustomHotspot(XmlElement ele)
ele - XmlElementpublic java.lang.String getName(int i)
i - index of the hotspot
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||