Skip to content

Commit 0d2ec3a

Browse files
committed
Make DefaultXYPlot, DefaultCatgoryChart and DefaultSeriesStype public
This makes it easier to extend these classes. For example someone could implement and AdvancedXYPlot based on DefaultXYPlot, and an AdvancedXYPlot-Display. The AdvancedXYPlot can still be displayed with the defaul XYPlot Display, if the advanced display is not available.
1 parent b6f436c commit 0d2ec3a

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/net/imagej/plot/defaultplot/DefaultCategoryChart.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@
4848
*
4949
* @author Matthias Arzt
5050
*/
51-
class DefaultCategoryChart<C> extends AbstractPlot implements CategoryChart {
51+
public class DefaultCategoryChart<C> extends AbstractPlot implements CategoryChart {
5252

5353
private final NumberAxis valueAxis;
5454

5555
private final CategoryAxis categoryAxis;
5656

5757
private final List<CategoryChartItem> items;
5858

59-
DefaultCategoryChart() {
59+
public DefaultCategoryChart() {
6060
valueAxis = new DefaultNumberAxis();
6161
categoryAxis = new DefaultCategoryAxis(this);
6262
items = new LinkedList<>();

src/main/java/net/imagej/plot/defaultplot/DefaultSeriesStyle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141
*
4242
* @author Matthias Arzt
4343
*/
44-
class DefaultSeriesStyle implements SeriesStyle {
44+
public class DefaultSeriesStyle implements SeriesStyle {
4545

4646
private final ColorRGB color;
4747

4848
private final MarkerStyle markerStyle;
4949

5050
private final LineStyle lineStyle;
5151

52-
DefaultSeriesStyle(ColorRGB color, LineStyle lineStyle, MarkerStyle markerStyle) {
52+
public DefaultSeriesStyle(ColorRGB color, LineStyle lineStyle, MarkerStyle markerStyle) {
5353
this.color = color;
5454
this.lineStyle = lineStyle;
5555
this.markerStyle = markerStyle;

src/main/java/net/imagej/plot/defaultplot/DefaultXYPlot.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343
*
4444
* @author Matthias Arzt
4545
*/
46-
class DefaultXYPlot extends AbstractPlot implements XYPlot {
46+
public class DefaultXYPlot extends AbstractPlot implements XYPlot {
4747

4848
private final DefaultNumberAxis xAxis;
4949

5050
private final DefaultNumberAxis yAxis;
5151

5252
private final List<XYPlotItem> items;
5353

54-
DefaultXYPlot() {
54+
public DefaultXYPlot() {
5555
xAxis = new DefaultNumberAxis();
5656
yAxis = new DefaultNumberAxis();
5757
items = new LinkedList<>();

0 commit comments

Comments
 (0)