added merge tu grid Panel

moved borders to external components
added text field for one line with select
This commit is contained in:
Macocian Adrian Radu
2020-04-27 17:32:34 +03:00
parent 2e4d83085a
commit 202610764b
29 changed files with 546 additions and 187 deletions

View File

@@ -4,7 +4,7 @@ public class Debugger {
public enum Tag {
LISTENER(true),
PAINTING(false),
FPS(true),
FPS(false),
ANIMATIONS(false),
PARSING(false);

View File

@@ -1,6 +1,6 @@
package guiTree.Helper;
public class Point2<T> {
public class Point2<T extends Comparable<T>> implements Comparable<Point2<T>> {
public T x;
public T y;
@@ -9,8 +9,13 @@ public class Point2<T> {
this.y = y;
}
public boolean equals(Point2<T> point2) {
return x == point2.y && y == point2.y;
@Override
public boolean equals(Object obj) {
if(!(obj instanceof Point2<?>)) {
return false;
}
Point2<?> point2 = (Point2<?>)obj;
return point2.x.equals(x) && point2.y.equals(y);
}
@Override
@@ -22,4 +27,13 @@ public class Point2<T> {
public int hashCode() {
return (x.toString() + ", " + y.toString()).hashCode();
}
@Override
public int compareTo(Point2<T> tPoint2) {
int cmp = x.compareTo(tPoint2.x);
if(cmp == 0) {
return y.compareTo(tPoint2.y);
}
return cmp;
}
}