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