Skip to content

Commit bfe5b93

Browse files
committed
Make it possible to set custom padding and multi-line text
Fixes #316
1 parent dc0e311 commit bfe5b93

File tree

1 file changed

+6
-6
lines changed
  • chartjs-java-model/src/main/java/software/xdev/chartjs/model/options

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ 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

3232
/**
3333
* @see #setAlign(String)
@@ -145,7 +145,7 @@ public Title setPosition(final String position)
145145
/**
146146
* @see #setPadding(Integer)
147147
*/
148-
public Integer getPadding()
148+
public Object getPadding()
149149
{
150150
return this.padding;
151151
}
@@ -159,7 +159,7 @@ public Integer getPadding()
159159
* Default {@code 10}
160160
* </p>
161161
*/
162-
public Title setPadding(final Integer padding)
162+
public Title setPadding(final Object padding)
163163
{
164164
this.padding = padding;
165165
return this;
@@ -168,7 +168,7 @@ public Title setPadding(final Integer padding)
168168
/**
169169
* @see #setText(String)
170170
*/
171-
public String getText()
171+
public Object getText()
172172
{
173173
return this.text;
174174
}
@@ -182,7 +182,7 @@ public String getText()
182182
* Default {@code ""}
183183
* </p>
184184
*/
185-
public Title setText(final String text)
185+
public Title setText(final Object text)
186186
{
187187
this.text = text;
188188
return this;

0 commit comments

Comments
 (0)