@Test public void testIsValid() throws Exception { assert !data.isValid(30); int id1 = data.addPoint(new SimpleVector(1,2,3)); assert data.isValid(id1); int id2 = data.addPoint(new SimpleVector(3,2,1)); assert data.isValid(id2); data.undoA(); assert !data.isValid(id2); data.redoA(); int frameId1 = data.createFrame("Frame1"); data.selectFrame(frameId1); data.movePoint(id1, new SimpleVector(5, 6, 3)); data.selectFrame(-1); data.removePoint(id1); assert !data.isValid(id1); data.undoA(); assert data.isValid(id1); data.selectFrame(frameId1); assert data.getPoint(id1).x == 5; int frameId2 = data.createFrame("Frame2"); data.selectFrame(frameId2); assert data.getPoint(id1).x == 1; data.deleteFrame(frameId1); assert !data.selectFrame(frameId1); data.clearA(); assert !data.isValid(id1); data.undoA(); assert data.isValid(id1); data.undoA(); assert data.selectFrame(frameId1); assert data.getPoint(id1).x == 5; data.clearA(); assert !data.isValid(id1); data.undoA(); assert data.isValid(id1); }
@Override public final boolean isValid(int pointId) { synchronized (VitcoSettings.SYNC) { return dataContainer.points.containsKey(pointId); } }
AnimationData extends GeneralData implements AnimationDataInterface { @Override public final boolean isValid(int pointId) { synchronized (VitcoSettings.SYNC) { return dataContainer.points.containsKey(pointId); } } }
AnimationData extends GeneralData implements AnimationDataInterface { @Override public final boolean isValid(int pointId) { synchronized (VitcoSettings.SYNC) { return dataContainer.points.containsKey(pointId); } } protected  AnimationData(); }
AnimationData extends GeneralData implements AnimationDataInterface { @Override public final boolean isValid(int pointId) { synchronized (VitcoSettings.SYNC) { return dataContainer.points.containsKey(pointId); } } protected  AnimationData(); @Override final boolean isValid(int pointId); @Override final int addPoint(SimpleVector position); @Override final boolean removePoint(int pointId); @Override final boolean movePoint(int pointId, SimpleVector pos); @Override final boolean areConnected(int id1, int id2); @Override final boolean connect(int id1, int id2); @Override final boolean clearA(); @Override final boolean disconnect(int id1, int id2); @Override final ExtendedVector getPoint(int pointId); @Override final ExtendedVector[] getPoints(); @Override final ExtendedVector[][] getLines(); @Override final void undoA(); @Override final void redoA(); @Override final boolean canUndoA(); @Override final boolean canRedoA(); @Override final boolean selectFrame(int frameId); @Override final int getSelectedFrame(); @Override final int createFrame(String frameName); @Override final boolean deleteFrame(int frameId); @Override final boolean renameFrame(int frameId, String newName); @Override final Integer[] getFrames(); @Override final boolean resetFrame(int frameId); @Override final String getFrameName(int frameId); }
AnimationData extends GeneralData implements AnimationDataInterface { @Override public final boolean isValid(int pointId) { synchronized (VitcoSettings.SYNC) { return dataContainer.points.containsKey(pointId); } } protected  AnimationData(); @Override final boolean isValid(int pointId); @Override final int addPoint(SimpleVector position); @Override final boolean removePoint(int pointId); @Override final boolean movePoint(int pointId, SimpleVector pos); @Override final boolean areConnected(int id1, int id2); @Override final boolean connect(int id1, int id2); @Override final boolean clearA(); @Override final boolean disconnect(int id1, int id2); @Override final ExtendedVector getPoint(int pointId); @Override final ExtendedVector[] getPoints(); @Override final ExtendedVector[][] getLines(); @Override final void undoA(); @Override final void redoA(); @Override final boolean canUndoA(); @Override final boolean canRedoA(); @Override final boolean selectFrame(int frameId); @Override final int getSelectedFrame(); @Override final int createFrame(String frameName); @Override final boolean deleteFrame(int frameId); @Override final boolean renameFrame(int frameId, String newName); @Override final Integer[] getFrames(); @Override final boolean resetFrame(int frameId); @Override final String getFrameName(int frameId);  }