mirror of
https://github.com/macocianradu/javaGUItoolkit.git
synced 2026-03-19 06:00:04 +00:00
added sliders
reworked painting added animations reworked point2 added point3 point4 made tag inner class in Debugger added fps animation parsing debuggers made new thread for painting at 60fps
This commit is contained in:
@@ -1,6 +1,20 @@
|
||||
package guiTree.Helper;
|
||||
|
||||
public class Debugger {
|
||||
public enum Tag {
|
||||
LISTENER(false),
|
||||
PAINTING(false),
|
||||
FPS(false),
|
||||
ANIMATIONS(true),
|
||||
PARSING(false);
|
||||
|
||||
public boolean value;
|
||||
|
||||
Tag(boolean value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
private static Timer timer = new Timer();
|
||||
|
||||
public static void log(String message, Tag tag) {
|
||||
|
||||
15
src/guiTree/Helper/Point2.java
Normal file
15
src/guiTree/Helper/Point2.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package guiTree.Helper;
|
||||
|
||||
public class Point2<T> {
|
||||
public T x;
|
||||
public T y;
|
||||
|
||||
public Point2(T x, T y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
public boolean equals(Point2<T> point2) {
|
||||
return x == point2.y && y == point2.y;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
package guiTree.Helper;
|
||||
|
||||
public class Point2d {
|
||||
public int x;
|
||||
public int y;
|
||||
|
||||
public Point2d(int x,int y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
}
|
||||
17
src/guiTree/Helper/Point3.java
Normal file
17
src/guiTree/Helper/Point3.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package guiTree.Helper;
|
||||
|
||||
public class Point3<T> {
|
||||
public T x;
|
||||
public T y;
|
||||
public T z;
|
||||
|
||||
public Point3(T x, T y, T z) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
}
|
||||
|
||||
public boolean equals(Point3<T> point3) {
|
||||
return x == point3.x && y == point3.y && z == point3.z;
|
||||
}
|
||||
}
|
||||
19
src/guiTree/Helper/Point4.java
Normal file
19
src/guiTree/Helper/Point4.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package guiTree.Helper;
|
||||
|
||||
public class Point4<T> {
|
||||
public T a;
|
||||
public T b;
|
||||
public T c;
|
||||
public T d;
|
||||
|
||||
public Point4(T a, T b, T c, T d) {
|
||||
this.a = a;
|
||||
this.b = b;
|
||||
this.c = c;
|
||||
this.d = d;
|
||||
}
|
||||
|
||||
public boolean equals(Point4<T> point4) {
|
||||
return a == point4.a && b == point4.b && c == point4.c && d == point4.d;
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package guiTree.Helper;
|
||||
|
||||
public enum Tag {
|
||||
LISTENER(true),
|
||||
PAINTING(false);
|
||||
|
||||
public boolean value;
|
||||
|
||||
Tag(boolean value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@@ -12,4 +12,8 @@ public class Timer {
|
||||
now = System.currentTimeMillis();
|
||||
return now - prev;
|
||||
}
|
||||
|
||||
public long getTime() {
|
||||
return System.currentTimeMillis() - prev;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user