|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.io.generator.plugin.RandomGraph
public class RandomGraph
Field Summary | |
---|---|
protected boolean |
cancel
|
protected int |
numberOfNodes
|
protected ProgressTicket |
progress
|
protected double |
wiringProbability
|
Constructor Summary | |
---|---|
RandomGraph()
|
Method Summary | |
---|---|
boolean |
cancel()
Cancel the task. |
void |
generate(ContainerLoader container)
Main method that generates the graph and put it in the container. |
java.lang.String |
getName()
Returns the generator display name. |
int |
getNumberOfNodes()
|
GeneratorUI |
getUI()
Returns the UI that belongs to this generator, or null if UI
is not needed. |
double |
getWiringProbability()
|
void |
setNumberOfNodes(int numberOfNodes)
|
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task. |
void |
setWiringProbability(double wiringProbability)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int numberOfNodes
protected double wiringProbability
protected ProgressTicket progress
protected boolean cancel
Constructor Detail |
---|
public RandomGraph()
Method Detail |
---|
public void generate(ContainerLoader container)
Generator
From the container content, the controller makes verification and append
the graph to GraphAPI
.
generate
in interface Generator
container
- the container the graph is to be pushedpublic java.lang.String getName()
Generator
getName
in interface Generator
public GeneratorUI getUI()
Generator
null
if UI
is not needed.
getUI
in interface Generator
null
public void setNumberOfNodes(int numberOfNodes)
public void setWiringProbability(double wiringProbability)
public int getNumberOfNodes()
public double getWiringProbability()
public boolean cancel()
LongTask
true
if the task has been sucessfully cancelled, false
otherwise.
cancel
in interface LongTask
true
if the task has been sucessfully cancelled, false
otherwisepublic void setProgressTicket(ProgressTicket progressTicket)
LongTask
setProgressTicket
in interface LongTask
progressTicket
- the progress ticket for this task
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |