From b67eed28fcb822e29d45bbf417bdc2d7bd4a3861 Mon Sep 17 00:00:00 2001 From: luukkainen Date: Thu, 13 Feb 2014 12:58:16 +0000 Subject: [PATCH] Pie Charts show numeric values in legends Sulca specific chart types refs #8417 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@28834 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/jfreechart/chart/AbstractPlot.java | 7 +++++++ .../src/org/simantics/jfreechart/chart/IPlot.java | 2 ++ 2 files changed, 9 insertions(+) diff --git a/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/AbstractPlot.java b/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/AbstractPlot.java index c00907da..ebfba892 100644 --- a/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/AbstractPlot.java +++ b/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/AbstractPlot.java @@ -141,6 +141,12 @@ public abstract class AbstractPlot implements IPlot { return plot; } + + @Override + public void configurePlot() { + // TODO Auto-generated method stub + + } protected class PlotProperties { public ArrayList ranges; @@ -194,6 +200,7 @@ public abstract class AbstractPlot implements IPlot { @Override public void run() { setPlotProperties(result); + configurePlot(); } }); } diff --git a/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/IPlot.java b/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/IPlot.java index 2fb7d1eb..c040a5f5 100644 --- a/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/IPlot.java +++ b/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/IPlot.java @@ -38,4 +38,6 @@ public interface IPlot extends IJFreeChartComponent { */ public Resource getResource(); + public void configurePlot(); + } -- 2.47.1