Skip to content
Snippets Groups Projects
SliderImaginaryPart.java 737 B
package org.idatt2003.view.components;

import org.idatt2003.controller.interfaces.GameController;

/**
 * Class for the imaginary part slider, extends BaseSlider.
 * The slider is used for setting the imaginary part of the complex number.
 */
public class SliderImaginaryPart extends BaseSlider {
  /**
   * Constructor for the SliderImaginaryPart.
   *
   * @param gameController the game controller
   */
  public SliderImaginaryPart(GameController gameController) {
    super(gameController);
    this.getStyleClass().add("top-bottom-padding");
  }

  /**
   * Get the complex number type of the slider.
   *
   * @return the part type of the slider
   */
  @Override
  protected String getPartType() {
    return "imaginary";
  }
}