|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.sarasvati.visual.GraphToImageMapAdapter
public class GraphToImageMapAdapter
Provides default implementations for methods in the
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 Summary | |
|---|---|
GraphToImageMapAdapter()
|
|
GraphToImageMapAdapter(String taskType)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphToImageMapAdapter()
public GraphToImageMapAdapter(String taskType)
| Method Detail |
|---|
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 icon
GraphToImageMap.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 for
public String hrefForNode(Node node)
hrefForNode in interface GraphToImageMapnode - The node to generate the HREF for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||