Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TULIP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NUI
TULIP
Commits
be5a8a3e
Commit
be5a8a3e
authored
Oct 30, 2015
by
Valérie Maquil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor modifications on the shape corona
parent
e5fe468b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
TULIP/src/lu/list/itis/dkd/tui/widget/corona/ShapeCorona.java
...P/src/lu/list/itis/dkd/tui/widget/corona/ShapeCorona.java
+8
-5
TULIP/src/lu/list/itis/dkd/tui/widget/corona/builder/ShapeCoronaBuilder.java
...tis/dkd/tui/widget/corona/builder/ShapeCoronaBuilder.java
+1
-1
No files found.
TULIP/src/lu/list/itis/dkd/tui/widget/corona/ShapeCorona.java
View file @
be5a8a3e
...
@@ -33,7 +33,7 @@ import java.awt.geom.AffineTransform;
...
@@ -33,7 +33,7 @@ import java.awt.geom.AffineTransform;
public
class
ShapeCorona
extends
Corona
{
public
class
ShapeCorona
extends
Corona
{
private
Color
colour
=
Color
.
GRAY
;
private
Color
colour
=
Color
.
GRAY
;
private
int
borderWidth
=
2
0
;
private
int
borderWidth
=
0
;
/**
/**
* Constructor building all fields and calling the implicit super constructor using a
* Constructor building all fields and calling the implicit super constructor using a
...
@@ -44,6 +44,8 @@ public class ShapeCorona extends Corona {
...
@@ -44,6 +44,8 @@ public class ShapeCorona extends Corona {
*/
*/
public
ShapeCorona
(
BaseShapeCoronaBuilder
<?>
builder
)
{
public
ShapeCorona
(
BaseShapeCoronaBuilder
<?>
builder
)
{
super
(
builder
);
super
(
builder
);
colour
=
builder
.
colour
;
borderWidth
=
builder
.
borderWidth
;
}
}
/** {@inheritDoc} */
/** {@inheritDoc} */
...
@@ -66,12 +68,13 @@ public class ShapeCorona extends Corona {
...
@@ -66,12 +68,13 @@ public class ShapeCorona extends Corona {
transformation
.
rotate
(
drawAt
.
getAngle
());
transformation
.
rotate
(
drawAt
.
getAngle
());
}
}
canvas
.
setPaint
(
colour
);
canvas
.
fill
(
transformation
.
createTransformedShape
(
shape
));
canvas
.
setPaint
(
Color
.
black
);
Stroke
oldStroke
=
canvas
.
getStroke
();
Stroke
oldStroke
=
canvas
.
getStroke
();
canvas
.
setStroke
(
new
BasicStroke
(
borderWidth
));
canvas
.
setStroke
(
new
BasicStroke
(
borderWidth
));
canvas
.
draw
(
shape
);
canvas
.
draw
(
transformation
.
createTransformedShape
(
shape
)
);
canvas
.
setStroke
(
oldStroke
);
canvas
.
setStroke
(
oldStroke
);
canvas
.
setPaint
(
colour
);
canvas
.
fill
(
transformation
.
createTransformedShape
(
shape
));
}
}
}
}
\ No newline at end of file
TULIP/src/lu/list/itis/dkd/tui/widget/corona/builder/ShapeCoronaBuilder.java
View file @
be5a8a3e
...
@@ -35,7 +35,7 @@ public class ShapeCoronaBuilder extends BaseShapeCoronaBuilder<ShapeCoronaBuilde
...
@@ -35,7 +35,7 @@ public class ShapeCoronaBuilder extends BaseShapeCoronaBuilder<ShapeCoronaBuilde
* @param centre
* @param centre
* The centre of the corona, usually the centre of the handle.
* The centre of the corona, usually the centre of the handle.
*/
*/
p
rotected
ShapeCoronaBuilder
(
Point
centre
)
{
p
ublic
ShapeCoronaBuilder
(
Point
centre
)
{
super
(
centre
);
super
(
centre
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment