Shorter chart legend

This commit is contained in:
nifi 2010-09-15 15:16:49 +00:00
parent 098f4001e0
commit 66e32facee

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: TimeChartPanel.java,v 1.5 2010/09/14 10:38:12 nifi Exp $ * $Id: TimeChartPanel.java,v 1.6 2010/09/15 15:16:49 nifi Exp $
* *
* ----------------------------------------------------------------- * -----------------------------------------------------------------
* *
@ -34,8 +34,8 @@
* *
* Authors : Joakim Eriksson, Niclas Finne * Authors : Joakim Eriksson, Niclas Finne
* Created : 3 jul 2008 * Created : 3 jul 2008
* Updated : $Date: 2010/09/14 10:38:12 $ * Updated : $Date: 2010/09/15 15:16:49 $
* $Revision: 1.5 $ * $Revision: 1.6 $
*/ */
package se.sics.contiki.collect.gui; package se.sics.contiki.collect.gui;
@ -169,7 +169,7 @@ public abstract class TimeChartPanel extends JPanel implements Visualizer {
timeSeries.removeAllSeries(); timeSeries.removeAllSeries();
if (this.selectedNodes != null) { if (this.selectedNodes != null) {
for(Node node: this.selectedNodes) { for(Node node: this.selectedNodes) {
TimeSeries series = new TimeSeries("Node " + node.getName(), Second.class); TimeSeries series = new TimeSeries(node.getName(), Second.class);
// Reduce the number of items by grouping them and use the average for each group // Reduce the number of items by grouping them and use the average for each group
int groupSize = getGroupSize(node); int groupSize = getGroupSize(node);
if (groupSize > 1) { if (groupSize > 1) {