Solved

Drawing a dotted edge with Grappa

Posted on 2004-09-10
11
295 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

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…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This video teaches viewers about errors in exception handling.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

695 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