mirror of
https://github.com/macocianradu/javaGUItoolkit.git
synced 2026-03-18 21:50:04 +00:00
too much to remember
added radio buttons added size animations added menus (still needs cleaning)
This commit is contained in:
38
src/guiTree/Components/MenuItem.java
Normal file
38
src/guiTree/Components/MenuItem.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package guiTree.Components;
|
||||
|
||||
import guiTree.Helper.Point2;
|
||||
import guiTree.Visual;
|
||||
|
||||
public abstract class MenuItem extends Visual {
|
||||
public abstract Point2<Integer> getClosedSize();
|
||||
|
||||
public abstract Point2<Integer> getOpenedSize();
|
||||
|
||||
public abstract void setClosedSize(Integer width, Integer height);
|
||||
|
||||
public abstract void setOpenedSize(Integer width, Integer height);
|
||||
|
||||
public abstract int getClosedWidth();
|
||||
|
||||
public abstract int getClosedHeight();
|
||||
|
||||
public abstract int getOpenedWidth();
|
||||
|
||||
public abstract int getOpenedHeight();
|
||||
|
||||
public void setClosedWidth(Integer width) {
|
||||
setClosedSize(width, getClosedHeight());
|
||||
}
|
||||
|
||||
public void setClosedHeight(Integer height) {
|
||||
setClosedSize(getClosedWidth(), height);
|
||||
}
|
||||
|
||||
public void setOpenedWidth(Integer width) {
|
||||
setOpenedSize(width, getOpenedHeight());
|
||||
}
|
||||
|
||||
public void setOpenedHeight(Integer height) {
|
||||
setOpenedSize(getOpenedWidth(), height);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user