private void getMethods() {
        Class<? extends GraphicalObject> c = object.getClass();
        Method[] methods = c.getMethods();
        String gname = "get" + property;
        String sname = "set" + property;
        for (Method m : methods) {
            if (m.getName().equals(gname)) {
                getter = m;
                // break;
            }
            if (m.getName().equals(sname)) {
                setter = m;
                // break;
            }
        }
    }