projects
/
sixth-3d-demos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed ViewListener interface. Renamed View to ViewPanel.
[sixth-3d-demos.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
examples
/
RainingNumbersDemo.java
diff --git
a/src/main/java/eu/svjatoslav/sixth/e3d/examples/RainingNumbersDemo.java
b/src/main/java/eu/svjatoslav/sixth/e3d/examples/RainingNumbersDemo.java
index
5ffc730
..
557d5ff
100644
(file)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/examples/RainingNumbersDemo.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/examples/RainingNumbersDemo.java
@@
-1,7
+1,6
@@
/*
/*
- * Sixth - System for data storage, computation, exploration and interaction.
- * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
+ * Sixth 3D engine demos. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
* or later as published by the Free Software Foundation.
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
* or later as published by the Free Software Foundation.
@@
-10,10
+9,10
@@
package eu.svjatoslav.sixth.e3d.examples;
import eu.svjatoslav.sixth.e3d.geometry.Point3D;
package eu.svjatoslav.sixth.e3d.examples;
import eu.svjatoslav.sixth.e3d.geometry.Point3D;
-import eu.svjatoslav.sixth.e3d.
geometry
.Transform;
+import eu.svjatoslav.sixth.e3d.
math
.Transform;
import eu.svjatoslav.sixth.e3d.gui.ViewContext;
import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
import eu.svjatoslav.sixth.e3d.gui.ViewContext;
import eu.svjatoslav.sixth.e3d.gui.ViewFrame;
-import eu.svjatoslav.sixth.e3d.gui.View
Update
Listener;
+import eu.svjatoslav.sixth.e3d.gui.View
Render
Listener;
import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection;
import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape;
import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection;
import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape;
@@
-23,7
+22,7
@@
import java.io.IOException;
import java.util.Collection;
import java.util.Random;
import java.util.Collection;
import java.util.Random;
-public class RainingNumbersDemo implements View
Update
Listener {
+public class RainingNumbersDemo implements View
Render
Listener {
private static final int NUMBERS_COUNT = 1000;
private final static int AREA = 600;
private static final int NUMBERS_COUNT = 1000;
private final static int AREA = 600;
@@
-34,8
+33,8
@@
public class RainingNumbersDemo implements ViewUpdateListener {
}
@Override
}
@Override
- public boolean before
ViewUpdate
(final ViewContext viewContext,
-
final int millisecondsSinceLastFrame) {
+ public boolean before
Render
(final ViewContext viewContext,
+ final int millisecondsSinceLastFrame) {
final Collection<AbstractShape> shapes = viewContext
.getRootShapeCollection().getShapes();
final Collection<AbstractShape> shapes = viewContext
.getRootShapeCollection().getShapes();
@@
-57,7
+56,7
@@
public class RainingNumbersDemo implements ViewUpdateListener {
private void run() throws IOException {
final ViewFrame viewFrame = new ViewFrame();
private void run() throws IOException {
final ViewFrame viewFrame = new ViewFrame();
- final ShapeCollection geometryCollection = viewFrame.getView()
+ final ShapeCollection geometryCollection = viewFrame.getView
Panel
()
.getContext().getRootShapeCollection();
Random random = new Random();
.getContext().getRootShapeCollection();
Random random = new Random();
@@
-77,6
+76,6
@@
public class RainingNumbersDemo implements ViewUpdateListener {
geometryCollection.addShape(textCanvas);
}
geometryCollection.addShape(textCanvas);
}
- viewFrame.getView().addViewUpdateListener(this);
+ viewFrame.getView
Panel
().addViewUpdateListener(this);
}
}
}
}