public class GraphToImageMapAdapter extends Object implements GraphToImageMap
GraphToImageMap interface. All methods return
null unless overridden except the iconForNode method,
which returns either a RectangularNodeIcon or OvalNodeIcon
depending on the type of the node passed in.| Constructor and Description |
|---|
GraphToImageMapAdapter() |
GraphToImageMapAdapter(String taskType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
drawArcLabels(Arc arc)
Returns true unless overridden
|
String |
getTaskType()
TaskType default is "task".
|
String |
hoverForArc(Arc arc)
Returns null unless overridden.
|
String |
hoverForNode(Node node)
Returns null unless overridden.
|
String |
hrefForArc(Arc arc)
Returns null unless overridden.
|
String |
hrefForNode(Node node)
Returns null unless overridden.
|
Icon |
iconForNode(Node node)
Returns a
RectangularNodeIcon for nodes with type of 'task' and a
OvalNodeIcon for all other nodes. |
public GraphToImageMapAdapter()
public GraphToImageMapAdapter(String taskType)
public boolean drawArcLabels(Arc arc)
drawArcLabels in interface GraphToImageMapGraphToImageMap.drawArcLabels(Arc)public String getTaskType()
iconForNode(Node)public Icon iconForNode(Node node)
RectangularNodeIcon for nodes with type of 'task' and a
OvalNodeIcon for all other nodes.iconForNode in interface GraphToImageMapnode - The graph node needing an iconGraphToImageMap.iconForNode(com.googlecode.sarasvati.Node)public String hoverForArc(Arc arc)
hoverForArc in interface GraphToImageMaparc - The arc to generate the hover for.public String hoverForNode(Node node)
hoverForNode in interface GraphToImageMapnode - The node to generate the hover for.public String hrefForArc(Arc arc)
hrefForArc in interface GraphToImageMaparc - The arc to generate the HREF forpublic String hrefForNode(Node node)
hrefForNode in interface GraphToImageMapnode - The node to generate the HREF forCopyright © 2012. All Rights Reserved.