From 60b487653347aaaacdc302e32f49570ccf1bf50b Mon Sep 17 00:00:00 2001 From: MightyPork Date: Sat, 26 Jul 2014 23:17:31 +0200 Subject: [PATCH] Added Hideable and Aligns --- src/mightypork/utils/interfaces/Hideable.java | 15 +++++++++++++++ src/mightypork/utils/math/AlignX.java | 12 ++++++++++++ src/mightypork/utils/math/AlignY.java | 12 ++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 src/mightypork/utils/interfaces/Hideable.java create mode 100644 src/mightypork/utils/math/AlignX.java create mode 100644 src/mightypork/utils/math/AlignY.java 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; +}