Solved

Drawing a dotted edge with Grappa

Posted on 2004-09-10
11
291 Views
Last Modified: 2006-11-17
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!
0
Comment
Question by:_MW_
  • 5
  • 4
11 Comments
 
LVL 92

Expert Comment

by:objects
ID: 12033093
GrappaStyle would seem to be the class, but I can't see where it is actually used.
0
 

Author Comment

by:_MW_
ID: 12033344
yea...same here...
0
 

Author Comment

by:_MW_
ID: 12045434
I managed to find out how to do it already...thanks anyway =)
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 92

Expert Comment

by:objects
ID: 12048875
pleas share :)
0
 

Author Comment

by:_MW_
ID: 12051387
Just make a new Attribute and use setAttribute to set the attribute of the element you want.
0
 
LVL 92

Expert Comment

by:objects
ID: 12051645
thanks, ask a q in CS and they'll refund your points.
0
 

Author Comment

by:_MW_
ID: 12051653
oh..where is CS? What should I ask?
0
 
LVL 92

Expert Comment

by:objects
ID: 12051658
http://www.experts-exchange.com/Community_Support/
ask for a refund and include a link to this q
0
 

Author Comment

by:_MW_
ID: 12051687
thanks!
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 12094562
Closed, 125 points refunded.
PashaMod
Community Support Moderator
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
oracle 11g 23 107
servlet web applications   metadata-complete="true" or false 3 130
Java string replace 11 55
jsp login check 12 43
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question