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
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
98967c61
Commit
98967c61
authored
Aug 27, 2020
by
Nico Mack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor performance fixes
Added maven reporting plugin
parent
ff22c512
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
5 deletions
+26
-5
TULIP/pom.xml
TULIP/pom.xml
+19
-1
TULIP/src/lu/list/itis/dkd/tui/content/Logo.java
TULIP/src/lu/list/itis/dkd/tui/content/Logo.java
+7
-4
No files found.
TULIP/pom.xml
View file @
98967c61
...
...
@@ -275,7 +275,25 @@
</dependency>
</dependencies>
<repositories>
<reporting>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-project-info-reports-plugin
</artifactId>
<version>
2.9
</version>
<reportSets>
<reportSet>
<reports>
<report>
dependencies
</report>
<report>
license
</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
<repositories>
<repository>
<id>
LIST
</id>
<name>
Artifacts
</name>
...
...
TULIP/src/lu/list/itis/dkd/tui/content/Logo.java
View file @
98967c61
...
...
@@ -22,6 +22,7 @@ import lu.list.itis.dkd.tui.utility.ScreenCoordinates;
import
java.awt.Graphics2D
;
import
java.awt.geom.AffineTransform
;
import
java.awt.image.AffineTransformOp
;
import
java.awt.image.BufferedImage
;
// ***************************************************************************
...
...
@@ -37,6 +38,7 @@ public class Logo extends Content implements Drawable {
protected
Point
position
;
private
Point
imageCentre
;
private
AffineTransformOp
transformOperation
;
// ***************************************************************************
// * Constants *
...
...
@@ -79,6 +81,10 @@ public class Logo extends Content implements Drawable {
@Override
public
void
initialise
()
{
AffineTransform
transform
=
new
AffineTransform
();
transform
.
rotate
(
position
.
getAngle
(),
imageCentre
.
getX
(),
imageCentre
.
getY
());
transform
.
translate
(
position
.
x
,
position
.
y
);
transformOperation
=
new
AffineTransformOp
(
transform
,
AffineTransformOp
.
TYPE_BILINEAR
);
}
// ---------------------------------------------------------------------------
...
...
@@ -86,10 +92,7 @@ public class Logo extends Content implements Drawable {
@Override
public
void
paint
(
Graphics2D
canvas
)
{
if
(
logo
!=
null
)
{
AffineTransform
transform
=
new
AffineTransform
();
transform
.
rotate
(
position
.
getAngle
(),
imageCentre
.
getX
(),
imageCentre
.
getY
());
transform
.
translate
(
position
.
x
,
position
.
y
);
canvas
.
drawImage
(
logo
,
transform
,
null
);
canvas
.
drawImage
(
logo
,
transformOperation
,
0
,
0
);
}
}
...
...
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