Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mappevurderingprog2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tam Minh Le
mappevurderingprog2
Merge requests
!45
Added scaling of the canvas
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added scaling of the canvas
ScaleCanvas
into
dev
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Edvard Granheim Harbo
requested to merge
ScaleCanvas
into
dev
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
f4a04b67
1 commit,
1 year ago
3 files
+
90
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
src/main/java/edu/ntnu/idatt2003/mappevurderingprog2/views/Components/Menu.java
+
8
−
5
Options
@@ -15,12 +15,14 @@ public class Menu extends VBox {
private
ExistingFractalsMenu
existingFractalsMenu
;
private
CreateFractalMenu
createFractalMenu
;
private
CurrentFractalMenu
editFractalMenu
;
private
ScaleCanvasSize
scaleCanvasSize
;
private
Button
quitButton
;
public
Menu
(
View
view
,
GameController
gameController
)
{
existingFractalsMenu
=
new
ExistingFractalsMenu
(
view
,
gameController
);
createFractalMenu
=
new
CreateFractalMenu
(
view
,
gameController
);
editFractalMenu
=
new
CurrentFractalMenu
(
view
,
gameController
);
scaleCanvasSize
=
new
ScaleCanvasSize
(
view
,
gameController
);
quitButton
=
new
Button
(
"Quit application"
);
initializeMenu
();
}
@@ -33,11 +35,11 @@ public class Menu extends VBox {
"-fx-font-weight: bold;-fx-border-color: black; "
);
quitButton
.
setOnAction
(
e
->
Platform
.
exit
());
VBox
.
setMargin
(
menuLabel
,
new
Insets
(
10
,
0
,
10
,
0
));
VBox
.
setMargin
(
existingFractalsMenu
,
new
Insets
(
40
,
0
,
10
,
0
));
VBox
.
setMargin
(
createFractalMenu
,
new
Insets
(
40
,
0
,
10
,
0
));
VBox
.
setMargin
(
editFractalMenu
,
new
Insets
(
40
,
0
,
10
,
0
));
VBox
.
setMargin
(
quitButton
,
new
Insets
(
40
,
0
,
40
,
0
));
VBox
.
setMargin
(
menuLabel
,
new
Insets
(
7
,
0
,
7
,
0
));
VBox
.
setMargin
(
existingFractalsMenu
,
new
Insets
(
7
,
0
,
7
,
0
));
VBox
.
setMargin
(
createFractalMenu
,
new
Insets
(
7
,
0
,
7
,
0
));
VBox
.
setMargin
(
editFractalMenu
,
new
Insets
(
7
,
0
,
7
,
0
));
VBox
.
setMargin
(
quitButton
,
new
Insets
(
7
,
0
,
7
,
0
));
getChildren
().
addAll
(
@@ -47,6 +49,7 @@ public class Menu extends VBox {
existingFractalsMenu
,
createFractalMenu
,
editFractalMenu
,
scaleCanvasSize
,
new
Separator
(),
quitButton
,
new
Separator
());
Loading