Solved

Drawing a dotted edge with Grappa

Posted on 2004-09-10
11
288 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
 
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
commonTwo  challenge 63 98
changePi Challenge 15 75
Java and GPO 11 47
Groovy:unable to resolve class error 2 28
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now