diff --git a/src/mightypork/utils/interfaces/Hideable.java b/src/mightypork/utils/interfaces/Hideable.java new file mode 100644 index 0000000..32b3fc2 --- /dev/null +++ b/src/mightypork/utils/interfaces/Hideable.java @@ -0,0 +1,15 @@ +package mightypork.utils.interfaces; + + +/** + * Element that can be hidden or visible + * + * @author Ondřej Hruška (MightyPork) + */ +public interface Hideable { + + void setVisible(boolean yes); + + + boolean isVisible(); +} diff --git a/src/mightypork/utils/math/AlignX.java b/src/mightypork/utils/math/AlignX.java new file mode 100644 index 0000000..a52cbc8 --- /dev/null +++ b/src/mightypork/utils/math/AlignX.java @@ -0,0 +1,12 @@ +package mightypork.utils.math; + + +/** + * Horizontal align sides + * + * @author Ondřej Hruška (MightyPork) + */ +public enum AlignX +{ + LEFT, CENTER, RIGHT; +} diff --git a/src/mightypork/utils/math/AlignY.java b/src/mightypork/utils/math/AlignY.java new file mode 100644 index 0000000..24f5faa --- /dev/null +++ b/src/mightypork/utils/math/AlignY.java @@ -0,0 +1,12 @@ +package mightypork.utils.math; + + +/** + * Vertical align sides + * + * @author Ondřej Hruška (MightyPork) + */ +public enum AlignY +{ + TOP, CENTER, BOTTOM; +}