Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP3-graphique
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CHERCHEM Sarah
TP3-graphique
Commits
3b6123e0
Commit
3b6123e0
authored
10 months ago
by
CHERCHEM Sarah
Browse files
Options
Downloads
Patches
Plain Diff
Polygon : add the constructor
parent
6f92eac7
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#32549
failed
10 months ago
Stage: build
Stage: test
Stage: dast
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/shape/Polygon.java
+6
-0
6 additions, 0 deletions
src/main/java/shape/Polygon.java
with
6 additions
and
0 deletions
src/main/java/shape/Polygon.java
+
6
−
0
View file @
3b6123e0
package
shape
;
package
shape
;
import
javafx.geometry.Point2D
;
import
javafx.scene.paint.Color
;
import
javafx.scene.paint.Color
;
public
class
Polygon
extends
AbstractShape
{
public
class
Polygon
extends
AbstractShape
{
private
Color
color
;
private
Color
color
;
public
Polygon
(
Color
color
,
Point2D
...
points
)
{
this
.
color
=
color
;
addPoints
(
points
);
// Ajoute tous les points à la liste de points de la classe parente
}
}
}
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