Drawing a dotted edge with Grappa

Hi,

Does anyone knows how to draw a dotted edge with grappa?

So for example if I have

    grappa = new Graph("Graph Viewer",true, true);
    Graph gr = new Graph("Subgraph");
    graphPanel = new GrappaPanel(grappa);
    Node node1 = new Node(grappa, "node1");
    Node node2 = new Node(grappa, "node2");
    Node node3 = new Node(grappa, "node3");
    Node node4 = new Node(grappa, "node4");
    Node node5 = new Node(grappa, "node5");
    Edge edge1 = new Edge(grappa,node1, node2);
    Edge edge2 = new Edge(grappa,node2, node3);
    Edge edge3 = new Edge(grappa,node2, node4);
    Edge edge4 = new Edge(grappa,node5, node4);

How do I make edge4 dotted? I tried looking into GrappaStlyes and Attributes but got no idea how they work together.

The javadocs for grappa can be found at

http://www.research.att.com/~john/Grappa/docs/att/grappa/package-summary.html

Thanks!
_MW_Asked:
Who is Participating?
 
PashaModConnect With a Mentor Commented:
Closed, 125 points refunded.
PashaMod
Community Support Moderator
0
 
objectsCommented:
GrappaStyle would seem to be the class, but I can't see where it is actually used.
0
 
_MW_Author Commented:
yea...same here...
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
_MW_Author Commented:
I managed to find out how to do it already...thanks anyway =)
0
 
objectsCommented:
pleas share :)
0
 
_MW_Author Commented:
Just make a new Attribute and use setAttribute to set the attribute of the element you want.
0
 
objectsCommented:
thanks, ask a q in CS and they'll refund your points.
0
 
_MW_Author Commented:
oh..where is CS? What should I ask?
0
 
objectsCommented:
http://www.experts-exchange.com/Community_Support/
ask for a refund and include a link to this q
0
 
_MW_Author Commented:
thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.