Skip to content

Commit 91a5613

Browse files
authored
Merge pull request #318 from xdev-software/develop
Release
2 parents b3ee96f + 259f5ab commit 91a5613

File tree

10 files changed

+27
-93
lines changed

10 files changed

+27
-93
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: 🐞 Bug
22
description: Create a bug report for something that is broken
33
labels: [bug]
4+
type: bug
45
body:
56
- type: markdown
67
attributes:

.github/ISSUE_TEMPLATE/enhancement.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: ✨ Feature/Enhancement
22
description: Suggest a new feature or enhancement
33
labels: [enhancement]
4+
type: feature
45
body:
56
- type: markdown
67
attributes:

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ jobs:
169169
with:
170170
github_token: ${{ secrets.GITHUB_TOKEN }}
171171
publish_dir: ./${{ env.PRIMARY_MAVEN_MODULE }}/target/site
172+
force_orphan: true
172173

173174
after-release:
174175
runs-on: ubuntu-latest

.idea/checkstyle-idea.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/saveactions_settings.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.7.0
2+
* ``Title``: Make it possible to set custom padding and multi-line text #316
3+
14
## 2.6.0
25
* Synced ``Doughnut/PieOptions`` from ChartJS source code #293
36
* Synced ``GridLineConfiguration`` from ChartJS source code / improved Types for more options #289

chartjs-java-model-demo/pom.xml

Lines changed: 2 additions & 2 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.6.1-SNAPSHOT</version>
10+
<version>2.7.0-SNAPSHOT</version>
1111
</parent>
1212

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

1717
<organization>

chartjs-java-model/pom.xml

Lines changed: 8 additions & 8 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.6.1-SNAPSHOT</version>
9+
<version>2.7.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<name>chartjs-java-model</name>
@@ -49,7 +49,7 @@
4949
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5050

5151
<slf4j-version>2.0.16</slf4j-version>
52-
<log4j-version>2.24.2</log4j-version>
52+
<log4j-version>2.24.3</log4j-version>
5353
<testcontainers-version>1.20.4</testcontainers-version>
5454

5555
<!-- by default run no tests as Docker is required -->
@@ -129,7 +129,7 @@
129129
<dependency>
130130
<groupId>org.junit.jupiter</groupId>
131131
<artifactId>junit-jupiter</artifactId>
132-
<version>5.11.3</version>
132+
<version>5.11.4</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.27.0</version>
173+
<version>4.28.1</version>
174174
<scope>test</scope>
175175
<exclusions>
176176
<!-- Tracing is not needed -->
@@ -241,7 +241,7 @@
241241
<plugin>
242242
<groupId>org.apache.maven.plugins</groupId>
243243
<artifactId>maven-javadoc-plugin</artifactId>
244-
<version>3.11.1</version>
244+
<version>3.11.2</version>
245245
<executions>
246246
<execution>
247247
<id>attach-javadocs</id>
@@ -360,7 +360,7 @@
360360
<dependency>
361361
<groupId>com.puppycrawl.tools</groupId>
362362
<artifactId>checkstyle</artifactId>
363-
<version>10.20.2</version>
363+
<version>10.21.2</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.8.0</version>
400+
<version>7.10.0</version>
401401
</dependency>
402402
<dependency>
403403
<groupId>net.sourceforge.pmd</groupId>
404404
<artifactId>pmd-java</artifactId>
405-
<version>7.8.0</version>
405+
<version>7.10.0</version>
406406
</dependency>
407407
</dependencies>
408408
</plugin>

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

Lines changed: 6 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -26,59 +26,36 @@ public class Title
2626
protected Boolean fullSize;
2727
protected String position;
2828
protected Font font;
29-
protected Integer padding;
30-
protected String text;
29+
protected Object padding;
30+
protected Object text;
3131

32-
/**
33-
* @see #setAlign(String)
34-
*/
3532
public String getAlign()
3633
{
3734
return this.align;
3835
}
3936

40-
/**
41-
* Alignment of the title
42-
*
43-
* <p>Default: center</p>
44-
*/
4537
public Title setAlign(final String align)
4638
{
4739
this.align = align;
4840
return this;
4941
}
5042

51-
/**
52-
* @see #setColor(Object)
53-
*/
5443
public Object getColor()
5544
{
5645
return this.color;
5746
}
5847

59-
/**
60-
* Color of text
61-
*/
6248
public Title setColor(final Object color)
6349
{
6450
this.color = color;
6551
return this;
6652
}
6753

68-
/**
69-
* @see #setFullSize(Boolean)
70-
*/
7154
public Boolean getFullSize()
7255
{
7356
return this.fullSize;
7457
}
7558

76-
/**
77-
* Marks that this box should take the full width/height of the canvas. If false, the box is sized and placed
78-
* above/beside the chart area.
79-
*
80-
* <p>Default: true</p>
81-
*/
8259
public Title setFullSize(final Boolean fullSize)
8360
{
8461
this.fullSize = fullSize;
@@ -96,93 +73,45 @@ public Title setFont(final Font font)
9673
return this;
9774
}
9875

99-
/**
100-
* @see #setDisplay(Boolean)
101-
*/
10276
public Boolean getDisplay()
10377
{
10478
return this.display;
10579
}
10680

107-
/**
108-
* <p>
109-
* Display the title block
110-
* </p>
111-
*
112-
* <p>
113-
* Default {@code false}
114-
* </p>
115-
*/
11681
public Title setDisplay(final Boolean display)
11782
{
11883
this.display = display;
11984
return this;
12085
}
12186

122-
/**
123-
* @see #setPosition(String)
124-
*/
12587
public String getPosition()
12688
{
12789
return this.position;
12890
}
12991

130-
/**
131-
* <p>
132-
* Position of the title. Only 'top' or 'bottom' are currently allowed
133-
* </p>
134-
*
135-
* <p>
136-
* Default {@code 'top'}
137-
* </p>
138-
*/
13992
public Title setPosition(final String position)
14093
{
14194
this.position = position;
14295
return this;
14396
}
14497

145-
/**
146-
* @see #setPadding(Integer)
147-
*/
148-
public Integer getPadding()
98+
public Object getPadding()
14999
{
150100
return this.padding;
151101
}
152102

153-
/**
154-
* <p>
155-
* Number of pixels to add above and below the title text
156-
* </p>
157-
*
158-
* <p>
159-
* Default {@code 10}
160-
* </p>
161-
*/
162-
public Title setPadding(final Integer padding)
103+
public Title setPadding(final Object padding)
163104
{
164105
this.padding = padding;
165106
return this;
166107
}
167108

168-
/**
169-
* @see #setText(String)
170-
*/
171-
public String getText()
109+
public Object getText()
172110
{
173111
return this.text;
174112
}
175113

176-
/**
177-
* <p>
178-
* Title text
179-
* </p>
180-
*
181-
* <p>
182-
* Default {@code ""}
183-
* </p>
184-
*/
185-
public Title setText(final String text)
114+
public Title setText(final Object text)
186115
{
187116
this.text = text;
188117
return this;

pom.xml

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

77
<groupId>software.xdev</groupId>
88
<artifactId>chartjs-java-model-root</artifactId>
9-
<version>2.6.1-SNAPSHOT</version>
9+
<version>2.7.0-SNAPSHOT</version>
1010
<packaging>pom</packaging>
1111

1212
<organization>
@@ -45,7 +45,7 @@
4545
<dependency>
4646
<groupId>com.puppycrawl.tools</groupId>
4747
<artifactId>checkstyle</artifactId>
48-
<version>10.20.2</version>
48+
<version>10.21.2</version>
4949
</dependency>
5050
</dependencies>
5151
<configuration>
@@ -82,12 +82,12 @@
8282
<dependency>
8383
<groupId>net.sourceforge.pmd</groupId>
8484
<artifactId>pmd-core</artifactId>
85-
<version>7.8.0</version>
85+
<version>7.10.0</version>
8686
</dependency>
8787
<dependency>
8888
<groupId>net.sourceforge.pmd</groupId>
8989
<artifactId>pmd-java</artifactId>
90-
<version>7.8.0</version>
90+
<version>7.10.0</version>
9191
</dependency>
9292
</dependencies>
9393
</plugin>

0 commit comments

Comments
 (0)