?
Solved

Drawing a dotted edge with Grappa

Posted on 2004-09-10
11
Medium Priority
?
296 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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 had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

762 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