Skip to content

Commit 526014c

Browse files
authored
Merge pull request #334 from xdev-software/develop
Release
2 parents cc0749b + d5f7e9f commit 526014c

File tree

17 files changed

+540
-875
lines changed

17 files changed

+540
-875
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.8.0
2+
* Synced ``TooltipOptions`` from ChartJS source code #330
3+
14
## 2.7.0
25
* ``Title``: Make it possible to set custom padding and multi-line text #316
36

chartjs-java-model-demo/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
<parent>
88
<groupId>software.xdev</groupId>
99
<artifactId>chartjs-java-model-root</artifactId>
10-
<version>2.7.1-SNAPSHOT</version>
10+
<version>2.8.0-SNAPSHOT</version>
1111
</parent>
1212

1313
<artifactId>chartjs-java-model-demo</artifactId>
14-
<version>2.7.1-SNAPSHOT</version>
14+
<version>2.8.0-SNAPSHOT</version>
1515
<packaging>jar</packaging>
1616

1717
<organization>
@@ -44,7 +44,7 @@
4444
<plugin>
4545
<groupId>org.apache.maven.plugins</groupId>
4646
<artifactId>maven-compiler-plugin</artifactId>
47-
<version>3.13.0</version>
47+
<version>3.14.0</version>
4848
<configuration>
4949
<release>${maven.compiler.release}</release>
5050
<compilerArgs>

chartjs-java-model/pom.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>software.xdev</groupId>
88
<artifactId>chartjs-java-model</artifactId>
9-
<version>2.7.1-SNAPSHOT</version>
9+
<version>2.8.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<name>chartjs-java-model</name>
@@ -48,9 +48,9 @@
4848
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4949
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5050

51-
<slf4j-version>2.0.16</slf4j-version>
51+
<slf4j-version>2.0.17</slf4j-version>
5252
<log4j-version>2.24.3</log4j-version>
53-
<testcontainers-version>1.20.4</testcontainers-version>
53+
<testcontainers-version>1.20.6</testcontainers-version>
5454

5555
<!-- by default run no tests as Docker is required -->
5656
<skipTests>true</skipTests>
@@ -95,7 +95,7 @@
9595
<dependency>
9696
<groupId>com.fasterxml.jackson.core</groupId>
9797
<artifactId>jackson-databind</artifactId>
98-
<version>2.18.2</version>
98+
<version>2.18.3</version>
9999
</dependency>
100100

101101
<!-- Tests -->
@@ -129,7 +129,7 @@
129129
<dependency>
130130
<groupId>org.junit.jupiter</groupId>
131131
<artifactId>junit-jupiter</artifactId>
132-
<version>5.11.4</version>
132+
<version>5.12.0</version>
133133
<scope>test</scope>
134134
</dependency>
135135

@@ -170,7 +170,7 @@
170170
<dependency>
171171
<groupId>org.seleniumhq.selenium</groupId>
172172
<artifactId>selenium-chrome-driver</artifactId>
173-
<version>4.28.1</version>
173+
<version>4.29.0</version>
174174
<scope>test</scope>
175175
<exclusions>
176176
<!-- Tracing is not needed -->
@@ -193,7 +193,7 @@
193193
<plugin>
194194
<groupId>org.apache.maven.plugins</groupId>
195195
<artifactId>maven-project-info-reports-plugin</artifactId>
196-
<version>3.8.0</version>
196+
<version>3.9.0</version>
197197
</plugin>
198198
</plugins>
199199
</pluginManagement>
@@ -230,7 +230,7 @@
230230
<plugin>
231231
<groupId>org.apache.maven.plugins</groupId>
232232
<artifactId>maven-compiler-plugin</artifactId>
233-
<version>3.13.0</version>
233+
<version>3.14.0</version>
234234
<configuration>
235235
<release>${maven.compiler.release}</release>
236236
<compilerArgs>
@@ -295,7 +295,7 @@
295295
<plugin>
296296
<groupId>org.codehaus.mojo</groupId>
297297
<artifactId>flatten-maven-plugin</artifactId>
298-
<version>1.6.0</version>
298+
<version>1.7.0</version>
299299
<configuration>
300300
<flattenMode>ossrh</flattenMode>
301301
</configuration>
@@ -360,7 +360,7 @@
360360
<dependency>
361361
<groupId>com.puppycrawl.tools</groupId>
362362
<artifactId>checkstyle</artifactId>
363-
<version>10.21.2</version>
363+
<version>10.21.4</version>
364364
</dependency>
365365
</dependencies>
366366
<configuration>
@@ -397,12 +397,12 @@
397397
<dependency>
398398
<groupId>net.sourceforge.pmd</groupId>
399399
<artifactId>pmd-core</artifactId>
400-
<version>7.10.0</version>
400+
<version>7.11.0</version>
401401
</dependency>
402402
<dependency>
403403
<groupId>net.sourceforge.pmd</groupId>
404404
<artifactId>pmd-java</artifactId>
405-
<version>7.10.0</version>
405+
<version>7.11.0</version>
406406
</dependency>
407407
</dependencies>
408408
</plugin>

chartjs-java-model/src/main/java/software/xdev/chartjs/model/options/Font.java

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ public String getFamily()
3131
return this.family;
3232
}
3333

34-
/**
35-
* <p>
36-
* Font family for the scale title, follows CSS font-family options.
37-
* </p>
38-
*
39-
* <p>
40-
* Default {@code "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"}
41-
* </p>
42-
*/
4334
public Font setFamily(final String family)
4435
{
4536
this.family = family;
@@ -51,15 +42,6 @@ public Number getSize()
5142
return this.size;
5243
}
5344

54-
/**
55-
* <p>
56-
* Font size for the scale title.
57-
* </p>
58-
*
59-
* <p>
60-
* Default {@code 12}
61-
* </p>
62-
*/
6345
public Font setSize(final Number size)
6446
{
6547
this.size = size;
@@ -71,15 +53,6 @@ public FontStyle getStyle()
7153
return this.style;
7254
}
7355

74-
/**
75-
* <p>
76-
* Font style for the scale title, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
77-
* </p>
78-
*
79-
* <p>
80-
* Default {@code "normal"}
81-
* </p>
82-
*/
8356
public Font setStyle(final FontStyle style)
8457
{
8558
this.style = style;
@@ -97,17 +70,11 @@ public Font setWeight(final Number weight)
9770
return this;
9871
}
9972

100-
/**
101-
* @see #setLineHeight(String)
102-
*/
10373
public String getLineHeight()
10474
{
10575
return this.lineHeight;
10676
}
10777

108-
/**
109-
* Height of an individual line of text
110-
*/
11178
public void setLineHeight(final String lineHeight)
11279
{
11380
this.lineHeight = lineHeight;

chartjs-java-model/src/main/java/software/xdev/chartjs/model/options/Plugins.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616
package software.xdev.chartjs.model.options;
1717

1818
import software.xdev.chartjs.model.options.plugins.zoom.Zoom;
19+
import software.xdev.chartjs.model.options.tooltip.TooltipOptions;
1920

2021

2122
public class Plugins
2223
{
2324
protected Title title;
2425
protected Title subtitle;
2526
protected LegendOptions legend;
26-
protected Tooltip tooltip;
27+
protected TooltipOptions tooltip;
2728
protected Zoom zoom;
2829

2930
/**
@@ -81,9 +82,9 @@ public Plugins setLegend(final LegendOptions legend)
8182
}
8283

8384
/**
84-
* @see #setTooltip(Tooltip)
85+
* @see #setTooltip(TooltipOptions)
8586
*/
86-
public Tooltip getTooltip()
87+
public TooltipOptions getTooltip()
8788
{
8889
return this.tooltip;
8990
}
@@ -98,7 +99,7 @@ public Tooltip getTooltip()
9899
* functions must return either a string or an array of strings. Arrays of strings are treated as multiple lines of
99100
* text.
100101
*/
101-
public Plugins setTooltip(final Tooltip tooltip)
102+
public Plugins setTooltip(final TooltipOptions tooltip)
102103
{
103104
this.tooltip = tooltip;
104105
return this;

0 commit comments

Comments
 (0)