java.lang.Object
edu.ntnu.stud.chaosgame.view.modificationpopups.AbstractPopup
Direct Known Subclasses:
Affine2DPopup, JuliaPopup

public abstract class AbstractPopup extends Object
Abstract class for popups.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected javafx.scene.layout.VBox
    The bottom layout of the popup.
    protected javafx.scene.layout.VBox
    The layout of the popup.
    protected javafx.scene.control.TextField
    Common elements of the popup.
    protected javafx.scene.control.TextField
    Common elements of the popup.
    protected javafx.scene.control.TextField
    Common elements of the popup.
    protected javafx.scene.control.TextField
    Common elements of the popup.
    protected javafx.scene.control.TextField
    Common elements of the popup.
    protected javafx.stage.Stage
    The stage of the popup.
    protected javafx.scene.Scene
    The scene of the popup.
    protected javafx.scene.control.Button
    The update button.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractPopup(javafx.scene.layout.VBox layout)
    Constructor for AbstractPopup.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected javafx.scene.control.TextField
    Creates a numeric text field with a float formatter.
    void
    Displays the popup.
    javafx.scene.control.TextField
    Gets the text field for the maximum x value.
    javafx.scene.control.TextField
    Gets the text field for the maximum y value.
    javafx.scene.control.TextField
    Gets the text field for the minimum x value.
    javafx.scene.control.TextField
    Gets the text field for the minimum y value.
    javafx.scene.control.TextField
    Gets the text field for the name.
    javafx.stage.Stage
    Gets the stage of the popup.
    javafx.scene.control.Button
    Gets the update button.
    private void
    Initializes common elements of the popup.
    static javafx.scene.layout.VBox
    Initializes the layout of the popup.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • popupModifyStage

      protected javafx.stage.Stage popupModifyStage
      The stage of the popup.
    • layout

      protected javafx.scene.layout.VBox layout
      The layout of the popup.
    • scene

      protected javafx.scene.Scene scene
      The scene of the popup.
    • nameTextField

      protected javafx.scene.control.TextField nameTextField
      Common elements of the popup.
    • minXTextField

      protected javafx.scene.control.TextField minXTextField
      Common elements of the popup.
    • minYTextField

      protected javafx.scene.control.TextField minYTextField
      Common elements of the popup.
    • maxXTextField

      protected javafx.scene.control.TextField maxXTextField
      Common elements of the popup.
    • maxYTextField

      protected javafx.scene.control.TextField maxYTextField
      Common elements of the popup.
    • updateButton

      protected javafx.scene.control.Button updateButton
      The update button.
    • bottomLayout

      protected javafx.scene.layout.VBox bottomLayout
      The bottom layout of the popup.
  • Constructor Details

    • AbstractPopup

      protected AbstractPopup(javafx.scene.layout.VBox layout)
      Constructor for AbstractPopup.
      Parameters:
      layout - the layout of the popup.
  • Method Details

    • initializeCommonElements

      private void initializeCommonElements()
      Initializes common elements of the popup.
    • createNumericTextField

      protected javafx.scene.control.TextField createNumericTextField()
      Creates a numeric text field with a float formatter.
      Returns:
      the created numeric text field.
    • initializeLayout

      public static javafx.scene.layout.VBox initializeLayout()
      Initializes the layout of the popup.
      Returns:
      the initialized layout.
    • display

      public void display()
      Displays the popup.
    • getPopupModifyStage

      public javafx.stage.Stage getPopupModifyStage()
      Gets the stage of the popup.
      Returns:
      the stage of the popup.
    • getNameTextField

      public javafx.scene.control.TextField getNameTextField()
      Gets the text field for the name.
      Returns:
      the text field for the name.
    • getMinXTextField

      public javafx.scene.control.TextField getMinXTextField()
      Gets the text field for the minimum x value.
      Returns:
      the text field for the minimum x value.
    • getMinYTextField

      public javafx.scene.control.TextField getMinYTextField()
      Gets the text field for the minimum y value.
      Returns:
      the text field for the minimum y value.
    • getMaxXTextField

      public javafx.scene.control.TextField getMaxXTextField()
      Gets the text field for the maximum x value.
      Returns:
      the text field for the maximum x value.
    • getMaxYTextField

      public javafx.scene.control.TextField getMaxYTextField()
      Gets the text field for the maximum y value.
      Returns:
      the text field for the maximum y value.
    • getUpdateButton

      public javafx.scene.control.Button getUpdateButton()
      Gets the update button.
      Returns:
      the update button.