Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
graphic-tp4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
SAYEH Nahlane ghina
graphic-tp4
Commits
b8dc2b1f
Commit
b8dc2b1f
authored
6 months ago
by
SAYEH Nahlane ghina
Browse files
Options
Downloads
Patches
Plain Diff
modification de ShapeContainer
creation de AbstractShape creation de Polygon,BorderDecorator et CenterDecorator
parent
cad426c7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/shape/App.java
+6
-1
6 additions, 1 deletion
src/main/java/shape/App.java
with
6 additions
and
1 deletion
src/main/java/shape/App.java
+
6
−
1
View file @
b8dc2b1f
...
@@ -12,6 +12,7 @@ import javafx.stage.Stage;
...
@@ -12,6 +12,7 @@ import javafx.stage.Stage;
public
class
App
extends
Application
{
public
class
App
extends
Application
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
@@ -26,10 +27,14 @@ public class App extends Application {
...
@@ -26,10 +27,14 @@ public class App extends Application {
ShapeContainer
shapeContainer
=
new
ShapeContainer
();
ShapeContainer
shapeContainer
=
new
ShapeContainer
();
graphicsContext
.
setFill
(
Color
.
AQUAMARINE
);
graphicsContext
.
setFill
(
Color
.
AQUAMARINE
);
graphicsContext
.
fillOval
(
10
,
10
,
10
,
10
);
graphicsContext
.
fillOval
(
10
,
10
,
10
,
10
);
shapeContainer
.
add
Shape
(
new
Rectangle
(
Color
.
BLUE
,
new
Point2D
(
10
,
10
),
new
Point2D
(
40
,
40
)));
shapeContainer
.
add
(
new
Rectangle
(
Color
.
BLUE
,
new
Point2D
(
10
,
10
),
new
Point2D
(
40
,
40
)));
shapeContainer
.
draw
(
graphicsContext
);
shapeContainer
.
draw
(
graphicsContext
);
root
.
getChildren
().
add
(
canvas
);
root
.
getChildren
().
add
(
canvas
);
primaryStage
.
setScene
(
new
Scene
(
root
));
primaryStage
.
setScene
(
new
Scene
(
root
));
primaryStage
.
show
();
primaryStage
.
show
();
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment