aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Ferrazzutti2013-11-12 10:24:54 (EST)
committerAlexander Kurtakov2013-11-27 02:56:18 (EST)
commit2feae5fc35a2f7f2effd72ae150f38e4ac97285e (patch)
treeb27326e5fbe7f24524ea3d5e327d374a55da840f
parent49500c93d82a033974317c080f48e55c82505e34 (diff)
downloadorg.eclipse.linuxtools-2feae5fc35a2f7f2effd72ae150f38e4ac97285e.zip
org.eclipse.linuxtools-2feae5fc35a2f7f2effd72ae150f38e4ac97285e.tar.gz
org.eclipse.linuxtools-2feae5fc35a2f7f2effd72ae150f38e4ac97285e.tar.bz2
Systemtap: Update version of dataviewers.refs/changes/39/18939/2
Increase the version number of linuxtools.dataviewers to account for the new public API added by 64bbd52. Also add some public documentation. Change-Id: I8c1cc683da9b292b95498d11d5ff21bf605a44a8 Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com> Reviewed-on: https://git.eclipse.org/r/18939 Tested-by: Hudson CI Reviewed-by: Alexander Kurtakov <akurtako@redhat.com> IP-Clean: Alexander Kurtakov <akurtako@redhat.com> Tested-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--profiling/org.eclipse.linuxtools.dataviewers.piechart/META-INF/MANIFEST.MF2
-rw-r--r--profiling/org.eclipse.linuxtools.dataviewers.piechart/pom.xml2
-rw-r--r--profiling/org.eclipse.linuxtools.dataviewers.piechart/src/org/eclipse/linuxtools/dataviewers/piechart/PieChart.java19
-rw-r--r--profiling/org.eclipse.linuxtools.dataviewers.piechart/src/org/eclipse/linuxtools/dataviewers/piechart/PieChartPaintListener.java12
4 files changed, 31 insertions, 4 deletions
diff --git a/profiling/org.eclipse.linuxtools.dataviewers.piechart/META-INF/MANIFEST.MF b/profiling/org.eclipse.linuxtools.dataviewers.piechart/META-INF/MANIFEST.MF
index d0a33a8..0e8fcce 100644
--- a/profiling/org.eclipse.linuxtools.dataviewers.piechart/META-INF/MANIFEST.MF
+++ b/profiling/org.eclipse.linuxtools.dataviewers.piechart/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %bundleName
Bundle-SymbolicName: org.eclipse.linuxtools.dataviewers.piechart
-Bundle-Version: 1.0.0.qualifier
+Bundle-Version: 1.1.0.qualifier
Bundle-Vendor: %bundleProvider
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
diff --git a/profiling/org.eclipse.linuxtools.dataviewers.piechart/pom.xml b/profiling/org.eclipse.linuxtools.dataviewers.piechart/pom.xml
index 3f575b8..f023bea 100644
--- a/profiling/org.eclipse.linuxtools.dataviewers.piechart/pom.xml
+++ b/profiling/org.eclipse.linuxtools.dataviewers.piechart/pom.xml
@@ -18,7 +18,7 @@
</parent>
<artifactId>org.eclipse.linuxtools.dataviewers.piechart</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.1.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<name>Linux Tools PieChart plug-in</name>
diff --git a/profiling/org.eclipse.linuxtools.dataviewers.piechart/src/org/eclipse/linuxtools/dataviewers/piechart/PieChart.java b/profiling/org.eclipse.linuxtools.dataviewers.piechart/src/org/eclipse/linuxtools/dataviewers/piechart/PieChart.java
index adabc5f..5711571 100644
--- a/profiling/org.eclipse.linuxtools.dataviewers.piechart/src/org/eclipse/linuxtools/dataviewers/piechart/PieChart.java
+++ b/profiling/org.eclipse.linuxtools.dataviewers.piechart/src/org/eclipse/linuxtools/dataviewers/piechart/PieChart.java
@@ -26,10 +26,23 @@ public class PieChart extends Chart {
protected List<RGB> colorList = new ArrayList<RGB>();
+ /**
+ * A PieChart with no titles given to its pies.
+ * @param parent
+ * @param style
+ */
public PieChart(Composite parent, int style) {
this(parent, style, new String[0]);
}
+ /**
+ * A PieChart with titles given to each pie it draws.
+ * @param parent The parent composite.
+ * @param style The style of the parent composite.
+ * @param labels The title of each pie chart that is to be drawn.
+ * A null / not present title indicates no title.
+ * @since 1.1
+ */
public PieChart(Composite parent, int style, String labels[]) {
super(parent, style);
Control plotArea = null;
@@ -51,8 +64,9 @@ public class PieChart extends Chart {
}
}
- /*
+ /**
* Add data to this Pie Chart. A single pie Chart will be drawn with the data provided.
+ * @deprecated see {@link #addPieChartSeries(String[], double[][])}
*/
@Deprecated
public void addPieChartSeries(String labels[], double val[]) {
@@ -66,11 +80,12 @@ public class PieChart extends Chart {
addPieChartSeries(labels, newVal);
}
- /*
+ /**
* Add data to this Pie Chart. We'll build one pie chart for each value in the array provided. The val matrix must
* have an array of an array of values. Ex. labels = {'a', 'b'} val = {{1,2,3}, {4,5,6}} This will create 3 pie
* charts. For the first one, 'a' will be 1 and 'b' will be 4. For the second chart 'a' will be 2 and 'b' will be 5.
* For the third 'a' will be 3 and 'b' will be 6.
+ * @param labels The titles of each series. (These are not the same as titles given to pies.)
*/
public void addPieChartSeries(String labels[], double val[][]) {
for (ISeries s : this.getSeriesSet().getSeries()) {
diff --git a/profiling/org.eclipse.linuxtools.dataviewers.piechart/src/org/eclipse/linuxtools/dataviewers/piechart/PieChartPaintListener.java b/profiling/org.eclipse.linuxtools.dataviewers.piechart/src/org/eclipse/linuxtools/dataviewers/piechart/PieChartPaintListener.java
index 50cc59b..31752f0 100644
--- a/profiling/org.eclipse.linuxtools.dataviewers.piechart/src/org/eclipse/linuxtools/dataviewers/piechart/PieChartPaintListener.java
+++ b/profiling/org.eclipse.linuxtools.dataviewers.piechart/src/org/eclipse/linuxtools/dataviewers/piechart/PieChartPaintListener.java
@@ -32,10 +32,22 @@ public class PieChartPaintListener implements PaintListener {
protected static final Color WHITE = Display.getDefault().getSystemColor(SWT.COLOR_WHITE);
protected static final Color BLACK = Display.getDefault().getSystemColor(SWT.COLOR_BLACK);
+ /**
+ * Draws pie charts with no titles given to each pie.
+ * @param chart
+ * @param plotArea
+ */
public PieChartPaintListener(PieChart chart, Control plotArea) {
this(chart, plotArea, new String[0]);
}
+ /**
+ * Handles drawing & updating of a PieChart, with titles given to each of its pies.
+ * @param chart The PieChart to draw & update.
+ * @param plotArea The area in which to draw the pies.
+ * @param seriesNames The titles given to individual pies.
+ * @since 1.1
+ */
public PieChartPaintListener(PieChart chart, Control plotArea, String[] seriesNames) {
this.chart = chart;
this.plotArea = plotArea;