public static void createAndDisplayHistory(StringHistory stringHistory) { bus.uigen.ObjectEditor.edit(stringHistory); stringHistory.addElement("James Dean"); stringHistory.addElement("Joe Doe"); stringHistory.addElement("Jane Smith"); stringHistory.addElement("John Smith"); }
public static void main(String[] args) { TheBridgeScene newScene = new TheBridgeScene(); OEFrame avatarEditor = ObjectEditor.edit(newScene); avatarEditor.setSize(800, 800); // Rotate left arm. newScene.getArthur().getArms().getLeftLine().rotate(100); avatarEditor.refresh(); ThreadSupport.sleep(1000); newScene.getArthur().getArms().getLeftLine().rotate(60); avatarEditor.refresh(); ThreadSupport.sleep(1000); newScene.getArthur().getArms().getLeftLine().rotate(-45); avatarEditor.refresh(); ThreadSupport.sleep(1000); // Rotate right arm. newScene.getArthur().getArms().getRightLine().rotate(100); avatarEditor.refresh(); ThreadSupport.sleep(1000); newScene.getArthur().getArms().getRightLine().rotate(60); avatarEditor.refresh(); ThreadSupport.sleep(1000); newScene.getArthur().getArms().getRightLine().rotate(45); avatarEditor.refresh(); ThreadSupport.sleep(1000); // Move avatars. newScene.getArthur().moveAvatar(200, 150); avatarEditor.refresh(); ThreadSupport.sleep(1000); newScene.getGuard().moveAvatar(100, -50); avatarEditor.refresh(); }
public static void main(String[] args) { final int initWeight = 75; final double initHeight = 1.77; final int sleepTime = 3000; ABMISpreadsheet bmiSpreadsheet = new ABMISpreadsheet(); bmiSpreadsheet.setHeight(initHeight); bmiSpreadsheet.setWeight(initWeight); OEFrame editor = ObjectEditor.edit(bmiSpreadsheet); ThreadSupport.sleep(sleepTime); editor.select(bmiSpreadsheet, "Weight"); bmiSpreadsheet.setWeight(sleepTime); editor.refresh(); ThreadSupport.sleep(sleepTime); editor.select(bmiSpreadsheet, "Height"); bmiSpreadsheet.setHeight(0); editor.refresh(); ThreadSupport.sleep(sleepTime); editor.select(bmiSpreadsheet, "Weight"); bmiSpreadsheet.setWeight(0); editor.refresh(); }
public static void main(String[] args) { String foo = (new ArrayList<String>().get(0)); History<String> stringHistory = new CopyOfAHistory(); Object[] objects = new Object[50]; String[] strings = new String[50]; objects = strings; // objects[3] = new Object(); List<Object> objectList = new ArrayList(); List<String> stringList = new ArrayList(); stringList.add("hello"); // objectList = stringList; // List<String> stringListClone = (new ArrayList()).subList(0,3); List<String> stringListClone = (new ArrayList<String>(stringList)); // List<Point> pointListClone = (new ArrayList<Point>(stringList)); // History h = historyListClone.get(0); // historyListClone.add(new AHistory()); stringHistory.addElement("James Dean"); stringHistory.addElement("Joe Doe"); stringHistory.addElement("Jane Smith"); stringHistory.addElement("John Smith"); bus.uigen.ObjectEditor.edit(stringHistory); }
public static void main(String[] args) { ObjectEditor.edit(new AFancyCartesianPlane(200, 125, 125)); }
public static void main(String[] args) { CartesianPlane plane = new ACartesianPlaneWithFactoryMethod(200, 125, 125); ObjectEditor.edit(plane); }