Skip to content

Commit 3fd8fde

Browse files
committed
Merge remote-tracking branch 'origin/release/1-1-1'
2 parents bd44082 + a398d8e commit 3fd8fde

File tree

18 files changed

+315
-76
lines changed

18 files changed

+315
-76
lines changed

CHANGELOG.md

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,49 @@ This file lists modifications introduced by each version.
66

77
* empty
88

9+
## [1.1.1] - 2019/09/26
10+
11+
### Topology class modifications
12+
13+
[[issue 74]][issue: #74]
14+
15+
In order to better match the behavior introduced around `Topology.getOrientation()` in [[issue 49]][issue: #49], the
16+
following modifications have been applied:
17+
* `Topology.addConnectivityListener(ConnectivityListener, Orientation)` and
18+
`Topology.removeConnectivityListener(ConnectivityListener, Orientation)` have been added
19+
* `Topology.addConnectivityListener(ConnectivityListener, boolean)` and
20+
`Topology.removeConnectivityListener(ConnectivityListener, boolean)` have been marked **deprecated**
21+
22+
Please use `Topology.addConnectivityListener(ConnectivityListener, Orientation)` and
23+
`Topology.removeConnectivityListener(ConnectivityListener, Orientation)` instead.
24+
* `Topology.addConnectivityListener(ConnectivityListener)` and
25+
`Topology.removeConnectivityListener(ConnectivityListener)`'s behaviors are changed
26+
27+
They now takes `Topology.getOrientation()` into account when registering/unregistering a listener.
28+
Previously, it always worked on undirected events.
29+
30+
[issue: #74]: https://github.com/jbotsim/JBotSim/issues/74
31+
32+
### PlainTopologySerializer class modifications
33+
34+
**Bug fix in PlainTopologySerializer:**
35+
36+
* `PlainTopologySerializer.importFromString()` does not clear the `Topology` anymore [[issue 72]][issue: #72]
37+
38+
[issue: #72]: https://github.com/jbotsim/JBotSim/issues/72
39+
40+
### New icon in the jbotsim-icons module
41+
42+
`jbotsim-icons`/`io.jbotsim.ui.icons`
43+
44+
* A cross-shaped new icon has been added [[issue 73]][issue: #73]
45+
* `jbotsim-icons`/`io/jbotsim/ui/icons/plus.png`
46+
47+
As usual, it's path can be accessed using the corresponding constant `Icons.PLUS`.
48+
49+
[issue: #73]: https://github.com/jbotsim/JBotSim/issues/73
50+
51+
952
## [1.1.0] - 2019/09/10
1053

1154
### Topology, Node and Link classes modifications
@@ -764,6 +807,7 @@ have executed their onStart() method before that, you may simply call start()
764807
on your topology immediately followed by a call to pause().
765808
(Eventually we will provide an atomic call to this effect.)
766809

767-
[Unreleased]: https://github.com/acasteigts/JBotSim/compare/v1.1.0...develop
768-
[1.1.0]: https://github.com/acasteigts/JBotSim/compare/v1.0.0...v1.1.0
769-
[1.0.0]: https://github.com/acasteigts/JBotSim/compare/v1.0.0-beta03...v1.0.0
810+
[Unreleased]: https://github.com/jbotsim/JBotSim/compare/v1.1.1...develop
811+
[1.1.1]: https://github.com/jbotsim/JBotSim/compare/v1.1.0...v1.1.1
812+
[1.1.0]: https://github.com/jbotsim/JBotSim/compare/v1.0.0...v1.1.0
813+
[1.0.0]: https://github.com/jbotsim/JBotSim/compare/v1.0.0-beta03...v1.0.0

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
[![Build Status](https://travis-ci.org/jbotsim/JBotSim.svg?branch=master)][travis-jbotsim]
3-
[![Maven Central](https://img.shields.io/badge/maven%20central-1.1.0-informational.svg)][mavencentral-jbotsim-latest]
3+
[![Maven Central](https://img.shields.io/badge/maven%20central-1.1.1-informational.svg)][mavencentral-jbotsim-latest]
44
[![License](https://img.shields.io/badge/license-LGPL%20≥%203.0-informational.svg)][lgpl3]
55

66

@@ -58,7 +58,7 @@ artifact will best suit your project's needs):
5858
* choose `From Maven ...`.
5959

6060
* In the "Download Library from Maven Repository" popup:
61-
* provide the following dependence `io.jbotsim:jbotsim-all:1.1.0`
61+
* provide the following dependence `io.jbotsim:jbotsim-all:1.1.1`
6262
* make sure to tick `JavaDocs`
6363
* Hit `OK`.
6464
* Confirm that you want to add it to your (only) module.
@@ -98,7 +98,7 @@ examples.
9898
## Current version
9999

100100

101-
The latest public version is [`1.1.0`][mavencentral-jbotsim-latest].
101+
The latest public version is [`1.1.1`][mavencentral-jbotsim-latest].
102102
Please see the [CHANGELOG.md](CHANGELOG.md) for previous versions modifications.
103103

104104

@@ -127,7 +127,7 @@ If your build system uses *Gradle*, you will want to add something like this to
127127

128128
```
129129
dependencies {
130-
implementation "io.jbotsim:jbotsim-all:1.1.0"
130+
implementation "io.jbotsim:jbotsim-all:1.1.1"
131131
}
132132
```
133133

@@ -140,15 +140,15 @@ If your build system uses *Maven*, you will want to add something like this to y
140140
<dependency>
141141
<groupId>io.jbotsim</groupId>
142142
<artifactId>jbotsim-all</artifactId>
143-
<version>1.1.0</version>
143+
<version>1.1.1</version>
144144
</dependency>
145145
```
146146

147147
### Using IntelliJ IDEA
148148

149149
If you use a _Java Project_ in _IntelliJ IDEA_, add the following dependency (as explained [here](#declaring-the-dependency)):
150150
```
151-
io.jbotsim:jbotsim-all:1.1.0
151+
io.jbotsim:jbotsim-all:1.1.1
152152
```
153153

154154

@@ -206,8 +206,7 @@ gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys DFA48EDB1EDEBA6F
206206

207207
[travis-jbotsim]: https://travis-ci.org/jbotsim/JBotSim
208208
[github-jbotsim]: https://github.com/jbotsim/JBotSim
209-
[mavencentral-jbotsim-latest]: https://search.maven.org/search?q=g:io.jbotsim%20AND%20v:1.1.0
210-
[mavencentral-jbotsim-1-0-0]: https://search.maven.org/search?q=g:io.jbotsim%20AND%20v:1.0.0
209+
[mavencentral-jbotsim-latest]: https://search.maven.org/search?q=g:io.jbotsim%20AND%20v:1.1.1
211210
[mavencentral-jbotsim]: https://search.maven.org/search?q=g:io.jbotsim
212211
[github-jbotsim-issues]: https://github.com/jbotsim/JBotSim/issues
213212
[lgpl3]: http://www.gnu.org/licenses/lgpl-3.0.html

apps/examples/CreateUserProject.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Any JBotSim classes, source code and documentation will automatically be downloa
118118
* choose `From Maven ...`.
119119

120120
* In the "Download Library from Maven Repository" popup:
121-
* provide the following dependency: `io.jbotsim:jbotsim-all:1.1.0`
121+
* provide the following dependency: `io.jbotsim:jbotsim-all:1.1.1`
122122
* make sure to tick `JavaDocs`
123123
* Hit `OK`.
124124
* Confirm that you want to add it to your (only) module.
@@ -141,7 +141,7 @@ Simply add the following line to your `build.gradle`:
141141

142142
```
143143
dependencies {
144-
implementation "io.jbotsim:jbotsim-all:1.1.0"
144+
implementation "io.jbotsim:jbotsim-all:1.1.1"
145145
}
146146
```
147147

@@ -201,7 +201,7 @@ dependencies {
201201

202202
```
203203
dependencies {
204-
compile files('mylibs/jbotsim-full-1.1.0.jar')
204+
compile files('mylibs/jbotsim-full-1.1.1.jar')
205205
}
206206
```
207207

apps/examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ artifact suits your needs).
3030
So our `build.gradle` will simply declare the dependency as follows:
3131
```
3232
dependencies {
33-
implementation "io.jbotsim:jbotsim-ui-swing:1.1.0"
33+
implementation "io.jbotsim:jbotsim-ui-swing:1.1.1"
3434
}
3535
```
3636
Gradle and Maven will take care of retrieving any required dependencies.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright 2008 - 2019, Arnaud Casteigts and the JBotSim contributors <contact@jbotsim.io>
3+
*
4+
*
5+
* This file is part of JBotSim.
6+
*
7+
* JBotSim is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* JBotSim is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public License
18+
* along with JBotSim. If not, see <https://www.gnu.org/licenses/>.
19+
*
20+
*/
21+
22+
package examples;
23+
24+
import io.jbotsim.core.Topology;
25+
import io.jbotsim.ui.painting.JBackgroundPainter;
26+
27+
import java.awt.*;
28+
29+
public class JBackgroundPainterHD extends JBackgroundPainter {
30+
private RenderingHints rh ;
31+
32+
public JBackgroundPainterHD() {
33+
rh =new RenderingHints(
34+
RenderingHints.KEY_ANTIALIASING,
35+
RenderingHints.VALUE_ANTIALIAS_ON);
36+
rh.add(new RenderingHints(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED));
37+
}
38+
39+
@Override
40+
protected void setRenderingHints(Graphics2D g2d, Topology topology) {
41+
g2d.setRenderingHints(rh);
42+
}
43+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright 2008 - 2019, Arnaud Casteigts and the JBotSim contributors <contact@jbotsim.io>
3+
*
4+
*
5+
* This file is part of JBotSim.
6+
*
7+
* JBotSim is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* JBotSim is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public License
18+
* along with JBotSim. If not, see <https://www.gnu.org/licenses/>.
19+
*
20+
*/
21+
22+
package examples;
23+
24+
import io.jbotsim.core.Link;
25+
import io.jbotsim.ui.painting.JLinkPainter;
26+
27+
import java.awt.*;
28+
29+
public class JLinkPainterHD extends JLinkPainter {
30+
private RenderingHints rh ;
31+
32+
public JLinkPainterHD() {
33+
rh =new RenderingHints(
34+
RenderingHints.KEY_ANTIALIASING,
35+
RenderingHints.VALUE_ANTIALIAS_ON);
36+
rh.add(new RenderingHints(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED));
37+
}
38+
39+
@Override
40+
protected void setRenderingHints(Graphics2D g2d, Link link) {
41+
g2d.setRenderingHints(rh);
42+
}
43+
44+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright 2008 - 2019, Arnaud Casteigts and the JBotSim contributors <contact@jbotsim.io>
3+
*
4+
*
5+
* This file is part of JBotSim.
6+
*
7+
* JBotSim is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* JBotSim is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public License
18+
* along with JBotSim. If not, see <https://www.gnu.org/licenses/>.
19+
*
20+
*/
21+
22+
package examples;
23+
24+
import io.jbotsim.core.Topology;
25+
26+
public class VideoHelper {
27+
28+
public static Topology generateTopology() {
29+
return generateTopology720();
30+
}
31+
public static Topology generateTopology720() {
32+
return new Topology(1280,720);
33+
}
34+
public static Topology generateTopology480() {
35+
return new Topology(854,480);
36+
}
37+
38+
public static String useOpenGL() {
39+
return System.setProperty("sun.java2d.opengl", "true");
40+
}
41+
}

apps/examples/src/main/java/examples/basic/icons/MainIcons.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public static void main(String[] args) {
1111
deployAtCenter(topology, MovingNodeBlueOcean.class, nbNodes);
1212
deployAtCenter(topology, MovingNodeBlue.class, nbNodes);
1313
deployAtCenter(topology, MovingNodeFormer.class, nbNodes);
14+
deployAtCenter(topology, MovingNodePlus.class, nbNodes);
1415
deployAtCenter(topology, MovingNodeDefault.class, nbNodes);
1516

1617
new JViewer(topology);
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright 2008 - 2019, Arnaud Casteigts and the JBotSim contributors <contact@jbotsim.io>
3+
*
4+
*
5+
* This file is part of JBotSim.
6+
*
7+
* JBotSim is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* JBotSim is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public License
18+
* along with JBotSim. If not, see <https://www.gnu.org/licenses/>.
19+
*
20+
*/
21+
22+
package examples.basic.icons;
23+
24+
import io.jbotsim.ui.icons.Icons;
25+
26+
public class MovingNodePlus extends RandomMovingNode {
27+
@Override
28+
public void onStart() {
29+
super.onStart();
30+
setIcon(Icons.PLUS);
31+
}
32+
33+
}

bump-version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
DIR="."
4-
previousVersion="1.0.0"
5-
newVersion="1.1.0"
4+
previousVersion="1.1.0"
5+
newVersion="1.1.1"
66

77
function replaceInFile () {
88
filePath=$1

0 commit comments

Comments
 (0)