mirror of
https://github.com/macocianradu/javaGUItoolkit.git
synced 2026-03-19 06:00:04 +00:00
added merge tu grid Panel
moved borders to external components added text field for one line with select
This commit is contained in:
@@ -4,7 +4,7 @@ public class Debugger {
|
||||
public enum Tag {
|
||||
LISTENER(true),
|
||||
PAINTING(false),
|
||||
FPS(true),
|
||||
FPS(false),
|
||||
ANIMATIONS(false),
|
||||
PARSING(false);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user