Beispiel #1
0
 public void bottomOn(final LObject object) {
   object.setLocation(getWidth() / 2 - object.getWidth() / 2, getHeight() - object.getHeight());
 }
Beispiel #2
0
 public void rightOn(final LObject object) {
   object.setLocation(getWidth() - object.getWidth(), getHeight() / 2 - object.getHeight() / 2);
 }
Beispiel #3
0
 public void topOn(final LObject object) {
   object.setLocation(getWidth() / 2 - object.getWidth() / 2, 0);
 }
Beispiel #4
0
 public void leftOn(final LObject object) {
   object.setLocation(0, getHeight() / 2 - object.getHeight() / 2);
 }
Beispiel #5
0
 public void centerOn(final LObject object) {
   object.setLocation(
       getWidth() / 2 - object.getWidth() / 2, getHeight() / 2 - object.getHeight() / 2);
 }