mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 03:40:55 +00:00
Flash viewer - Ctrl+scroll zoom in/out
This commit is contained in:
@@ -28,4 +28,34 @@ public class Zoom {
|
||||
|
||||
public Zoom() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 7;
|
||||
hash = 97 * hash + (int) (Double.doubleToLongBits(this.value) ^ (Double.doubleToLongBits(this.value) >>> 32));
|
||||
hash = 97 * hash + (this.fit ? 1 : 0);
|
||||
return hash;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
final Zoom other = (Zoom) obj;
|
||||
if (Double.doubleToLongBits(this.value) != Double.doubleToLongBits(other.value)) {
|
||||
return false;
|
||||
}
|
||||
if (this.fit != other.fit) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user