Added Hideable and Aligns

master
Ondřej Hruška 11 years ago
parent 3d772fa403
commit 60b4876533
  1. 15
      src/mightypork/utils/interfaces/Hideable.java
  2. 12
      src/mightypork/utils/math/AlignX.java
  3. 12
      src/mightypork/utils/math/AlignY.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();
}

@ -0,0 +1,12 @@
package mightypork.utils.math;
/**
* Horizontal align sides
*
* @author Ondřej Hruška (MightyPork)
*/
public enum AlignX
{
LEFT, CENTER, RIGHT;
}

@ -0,0 +1,12 @@
package mightypork.utils.math;
/**
* Vertical align sides
*
* @author Ondřej Hruška (MightyPork)
*/
public enum AlignY
{
TOP, CENTER, BOTTOM;
}
Loading…
Cancel
Save