Package sac.control

Class PreviewController

java.lang.Object
sac.control.PreviewController
All Implemented Interfaces:
UpdatableController

public class PreviewController extends Object implements UpdatableController
This class controls the piece preview canvas. The size of the canvas is adjusted according to the number of the piece previewed.
  • Constructor Details

    • PreviewController

      public PreviewController(javafx.scene.layout.VBox container)
  • Method Details

    • initialize

      protected void initialize()
    • update

      public void update()
      Redraw the preview pieces as model ticks.
      Specified by:
      update in interface UpdatableController