예제 #1
0
 @Override
 public void actionPerformed(String ident, Object... params) {
   if (ident.equals("show")) {
     opt.getTag(name).setBooleanValue(!show());
     updateNames();
   }
 }
예제 #2
0
 public Point getPos() {
   return new Point(opt.getTag(name + ".x").getIntValue(), opt.getTag(name + ".y").getIntValue());
 }
예제 #3
0
 private boolean show() {
   return opt.getTag(name).getBooleanValue();
 }
예제 #4
0
 private void setPos(Point p) {
   opt.getTag(name + ".x").setIntValue(p.x);
   opt.getTag(name + ".y").setIntValue(p.y);
 }