Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup, format fixes, SPDX license headers, and misc. small stuff #2

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
26 changes: 0 additions & 26 deletions .classpath

This file was deleted.

23 changes: 0 additions & 23 deletions .project

This file was deleted.

15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
jzy3d-graphs
============
# jzy3d-graphs

A set of tools to compute and draw 3d graphs layouts based on Gephi Toolkit.
A set of tools to compute and draw 3D graph layouts,
based on the Gephi Toolkit.

<img src="doc/graph7.png">
![](doc/graph7.png)

Example programs in src/main/java
Example programs in _src/main/java/_:

org.jzy3d.graphs.trials.ImportAndDrawTrial
[org.jzy3d.graphs.trials.ImportAndDrawTrial](
src/main/java/org/jzy3d/graphs/trials/ImportAndDrawTrial.java)

More information at http://www.jzy3d.org/plugins-graphs.php
More information on [the homepage](http://www.jzy3d.org/plugins-graphs.php).
5 changes: 1 addition & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.mvn.ftp>1.0-beta-6</version.mvn.ftp>

</properties>




<dependencies>
<dependency>
<groupId>org.jzy3d</groupId>
Expand Down Expand Up @@ -65,6 +61,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2010 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Bastian <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -59,3 +60,4 @@ public class ForceVectorNodeLayoutData3d implements LayoutData {
public float old_dz = 0;
public float freeze = 0f;
}

8 changes: 5 additions & 3 deletions src/main/java/org/gephi/layout/plugin/ForceVectorUtils3d.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
Copyright 2008-2010 Gephi
Authors : Mathieu Jacomy
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

This file is part of Gephi.
Expand Down Expand Up @@ -52,7 +53,7 @@ public static void fcBiRepulsor(Node N1, Node N2, double c) {
double xDist = N1.x() - N2.x(); // distance en x entre les deux noeuds
double yDist = N1.y() - N2.y();
double zDist = N1.z() - N2.z();

double dist = (float) Math.sqrt(xDist * xDist + yDist * yDist + zDist * zDist); // distance tout court

if (dist > 0) {
Expand All @@ -75,7 +76,7 @@ public static void fcBiRepulsor(Node N1, Node N2, double c) {
double xDist = N1.x() - N2.x(); // distance en x entre les deux noeuds
double yDist = N1.y() - N2.y();
double zDist = N1.z() - N2.z();

double dist = (float) Math.sqrt(xDist * xDist + yDist * yDist + zDist * zDist); // distance tout court

if (dist > 0) {
Expand Down Expand Up @@ -237,3 +238,4 @@ protected static double repulsion(double c, double dist) {
return 0.001 * c / dist;
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2011 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -131,7 +132,7 @@ public void goAlgo() {
return;
}
graph = graphModel.getGraphVisible();

//this.timeInterval = DynamicUtilities.getVisibleInterval(dynamicModel);

graph.readLock();
Expand Down Expand Up @@ -551,3 +552,4 @@ private double getWeight(Edge edge) {
//}
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2011 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -58,3 +59,4 @@ public class ForceAtlas23dLayoutData implements LayoutData {
public double old_dz = 0;
public double mass = 1;
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2011 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -102,4 +103,5 @@ public int getSpeedRank() {
return 4;
}
}
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2011 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -618,3 +619,4 @@ public void apply(Node n1, Node n2, double e) {
}
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2011 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -99,3 +100,4 @@ public void run() {
}
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2011 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -49,3 +50,4 @@ public abstract class Operation {

public abstract void execute();
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2011 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -67,3 +68,4 @@ public void execute() {
f.apply(n1, n2, coefficient);
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2011 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -65,3 +66,4 @@ public void execute() {
f.apply(n1, n2);
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2011 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -67,3 +68,4 @@ public void execute() {
r.applyForce(n, f, theta);
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2011 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -65,3 +66,4 @@ public void execute() {
f.apply(n, coefficient);
}
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright 2008-2011 Gephi
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

Expand Down Expand Up @@ -221,7 +222,7 @@ public double getMassCenterY() {
public void setMassCenterY(double massCenterY) {
this.massCenterY = massCenterY;
}

public double getMassCenterZ() {
return massCenterZ;
}
Expand All @@ -230,3 +231,4 @@ public void setMassCenterZ(double massCenterZ) {
this.massCenterZ = massCenterZ;
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
Copyright 2008-2010 Gephi
Authors : Mathieu Jacomy
SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
Authors : Mathieu Jacomy <[email protected]>
Website : http://www.gephi.org

This file is part of Gephi.
Expand Down Expand Up @@ -511,3 +512,4 @@ public void setAdjustSizes(Boolean adjustSizes) {
this.adjustSizes = adjustSizes;
}
}

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
SPDX-License-Identifier: BSD-3-Clause
Copyright 2007 Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software.
Expand Down Expand Up @@ -172,3 +173,4 @@ public void waitForIteration() {
}
}
}

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
SPDX-License-Identifier: BSD-3-Clause
Copyright 2007 Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software.
Expand Down Expand Up @@ -326,3 +327,4 @@ public void setProgressTicket(ProgressTicket progressTicket) {
this.progressTicket = progressTicket;
}
}

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
SPDX-License-Identifier: BSD-3-Clause
Copyright 2007 Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software.
Expand Down Expand Up @@ -249,3 +250,4 @@ public static float getViewSize() {
* = bins[i][j].clone(); } } return densityGrid; }
*/
}

2 changes: 2 additions & 0 deletions src/main/java/org/gephi/layout/plugin/openord3d/Node3d.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
SPDX-License-Identifier: BSD-3-Clause
Copyright 2007 Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software.
Expand Down Expand Up @@ -69,3 +70,4 @@ protected Node3d clone() {
return clone;
}
}

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
SPDX-License-Identifier: BSD-3-Clause
Copyright 2007 Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software.
Expand Down Expand Up @@ -503,3 +504,4 @@ public void setProgressTicket(ProgressTicket progressTicket) {
this.progressTicket = progressTicket;
}
}

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
SPDX-License-Identifier: BSD-3-Clause
Copyright 2007 Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software.
Expand Down Expand Up @@ -93,3 +94,4 @@ public int getSpeedRank() {
}
}
}

2 changes: 2 additions & 0 deletions src/main/java/org/gephi/layout/plugin/openord3d/Worker3d.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
SPDX-License-Identifier: BSD-3-Clause
Copyright 2007 Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software.
Expand Down Expand Up @@ -356,3 +357,4 @@ public int getId() {
return id;
}
}

Loading