public void zoomIn() { int width = grid.getWidth(); int height = grid.getHeight(); grid.cropLeft(width / 4); grid.cropRight(width / 4); grid.cropTop(height / 4); grid.cropBottom(height / 4); cellSizeProperty.set(cellSizeProperty.get() * 2); timelineRate = timeline.getRate(); init(); runner.setGrid(grid); }
public void zoomOut() { int width = grid.getWidth(); int height = grid.getHeight(); grid.padLeft(width / 2); grid.padRight(width / 2); grid.padTop(height / 2); grid.padBottom(height / 2); cellSizeProperty.set(cellSizeProperty.get() / 2); timelineRate = timeline.getRate(); init(); runner.setGrid(grid); }