Skip to content

Commit

Permalink
Bumped to OpenJFX 23 and added one constructor in YPane
Browse files Browse the repository at this point in the history
  • Loading branch information
HanSolo committed Oct 7, 2024
1 parent 3914cd6 commit 82f59b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ sourceCompatibility = 21
targetCompatibility = 21

group = eu.hansolo.fx
version = 21.0.19
javafxVersion = 21.0.4
version = 21.0.21
javafxVersion = 23
16 changes: 11 additions & 5 deletions src/main/java/eu/hansolo/fx/charts/YPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,24 @@ public class YPane<T extends ValueItem> extends Region implements ChartArea {

// ******************** Constructors **************************************
public YPane(final YSeries<T>... SERIES) {
this(Color.TRANSPARENT, new ArrayList<>(), SERIES);
this(Color.TRANSPARENT, false, new ArrayList<>(), SERIES);
}
public YPane(final List<Category> CATEGORIES, final YSeries<T>... SERIES) {
this(Color.TRANSPARENT, CATEGORIES, SERIES);
this(Color.TRANSPARENT, false, CATEGORIES, SERIES);
}
public YPane(final List<Category> CATEGORIES, final boolean zeroRadarOffset, final YSeries<T>... SERIES) {
this(Color.TRANSPARENT, zeroRadarOffset, CATEGORIES, SERIES);
}
public YPane(final List<Category> CATEGORIES, final List<YSeries<T>> SERIES) {
this(Color.TRANSPARENT, CATEGORIES, SERIES.toArray(new YSeries[SERIES.size()]));
this(Color.TRANSPARENT, false, CATEGORIES, SERIES.toArray(new YSeries[SERIES.size()]));
}
public YPane(final Paint BACKGROUND, final YSeries<T>... SERIES) {
this(BACKGROUND, new ArrayList<>(), SERIES);
this(BACKGROUND, false, new ArrayList<>(), SERIES);
}
public YPane(final Paint BACKGROUND, final List<Category> CATEGORIES, final YSeries<T>... SERIES) {
this(BACKGROUND, false, CATEGORIES, SERIES);
}
public YPane(final Paint BACKGROUND, final boolean ZERO_OFFSET_RADAR, final List<Category> CATEGORIES, final YSeries<T>... SERIES) {
getStylesheets().add(YPane.class.getResource("chart.css").toExternalForm());
aspectRatio = PREFERRED_HEIGHT / PREFERRED_WIDTH;
keepAspect = false;
Expand All @@ -111,7 +117,7 @@ public YPane(final Paint BACKGROUND, final List<Category> CATEGORIES, final YSer
_categoryColor = Color.BLACK;
_lowerBoundY = 0;
_upperBoundY = 100;
_zeroRadarOffset = false;
_zeroRadarOffset = ZERO_OFFSET_RADAR;
categories = FXCollections.observableArrayList(CATEGORIES);
valid = isChartTypeValid();
initGraphics();
Expand Down

0 comments on commit 82f59b7

Please sign in to comment.