org.jgraph.util
Class JGraphImageMapEncoder

java.lang.Object
  extended byorg.jgraph.util.JGraphImageMapEncoder

public class JGraphImageMapEncoder
extends java.lang.Object


Constructor Summary
JGraphImageMapEncoder()
           
 
Method Summary
 java.lang.String encode(JGraph graph, java.lang.String mapName)
          Use <img src="yourimage.png" border="0" ismap usemap="#map"> in your HTML markup to refer to this image map.
 java.lang.String getLabel(JGraph graph, java.lang.Object cell)
          Override or implement to map from cells to labels.
 java.lang.String getURL(JGraph graph, java.lang.Object cell)
          Override or implement to map from cells to urls.
static boolean isURL(java.lang.Object url)
          Override or implement to map from cells to urls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGraphImageMapEncoder

public JGraphImageMapEncoder()
Method Detail

isURL

public static boolean isURL(java.lang.Object url)
Override or implement to map from cells to urls.

Returns:
String String that can be used as a href

getURL

public java.lang.String getURL(JGraph graph,
                               java.lang.Object cell)
Override or implement to map from cells to urls.

Parameters:
cell - Cell that should be converted to a URL
Returns:
String String that can be used as a href

getLabel

public java.lang.String getLabel(JGraph graph,
                                 java.lang.Object cell)
Override or implement to map from cells to labels.

Parameters:
cell - Cell that should be converted to a label
Returns:
String String that can be used as a label

encode

public java.lang.String encode(JGraph graph,
                               java.lang.String mapName)
Use <img src="yourimage.png" border="0" ismap usemap="#map"> in your HTML markup to refer to this image map.

See Also:
ActionListener.actionPerformed(ActionEvent)