Class AbstractPopup
java.lang.Object
edu.ntnu.stud.chaosgame.view.modificationpopups.AbstractPopup
- Direct Known Subclasses:
Affine2DPopup
,JuliaPopup
Abstract class for popups.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected 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
ConstructorsModifierConstructorDescriptionprotected
AbstractPopup
(javafx.scene.layout.VBox layout) Constructor for AbstractPopup. -
Method Summary
Modifier and TypeMethodDescriptionprotected javafx.scene.control.TextField
Creates a numeric text field with a float formatter.void
display()
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.
-
Field Details
-
popupModifyStage
protected javafx.stage.Stage popupModifyStageThe stage of the popup. -
layout
protected javafx.scene.layout.VBox layoutThe layout of the popup. -
scene
protected javafx.scene.Scene sceneThe scene of the popup. -
nameTextField
protected javafx.scene.control.TextField nameTextFieldCommon elements of the popup. -
minXTextField
protected javafx.scene.control.TextField minXTextFieldCommon elements of the popup. -
minYTextField
protected javafx.scene.control.TextField minYTextFieldCommon elements of the popup. -
maxXTextField
protected javafx.scene.control.TextField maxXTextFieldCommon elements of the popup. -
maxYTextField
protected javafx.scene.control.TextField maxYTextFieldCommon elements of the popup. -
updateButton
protected javafx.scene.control.Button updateButtonThe update button. -
bottomLayout
protected javafx.scene.layout.VBox bottomLayoutThe 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.
-