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