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