[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swarm-Support] Java Swarm Graphs
From: |
durga bhavani |
Subject: |
[Swarm-Support] Java Swarm Graphs |
Date: |
Thu, 17 Nov 2005 00:39:44 -0800 (PST) |
Hello
It throws Exception can any one Please help me
public void Print1()
{
String colors[]={"red","green","blue"};
double value[]=new double[8];
int min=1;
int max=7;
Graph graph1;
for (int i = 1; i < 8; i++)
{
System.out.println("Creating Graph Element");
GraphElement ge = graph1.createElement ();
try
{
graph1 = groupObserver.getgraph();
}
catch(Exception E)
{
System.out.println("Exception caught");}
ge.setLabel ("Time Step" + i);
ge.setWidth (2);
ge.setColor (colors[i % 3]);
System.out.println(i);
}
//ge.addX$Y ((5 - i) ^ 2, 1 + i);
//ge.addX$Y (i + 9, 10 * Math.sin (Math.PI * i / 10));
// System.out.println(value[k]);
t++;
}
}
GroupObserver
Graph graph;
public Graph getgraph()
{
return graph;
}
public Object buildObjects ()
{
super.buildObjects ();
graph = new GraphImpl(getZone());
graph.setWindowTitle("Group CFL veruses Iteration");
graph.pack();
}
Thanks
Durga
Yahoo! FareChase - Search multiple travel sites in one click.
- [Swarm-Support] Java Swarm Graphs,
durga bhavani <=