Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Drawing a dotted edge with Grappa

Posted on 2004-09-10
11
Medium Priority
?
297 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.
Suggested Courses

610 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