From b5e767ce793e6d7eab9b263bb9d66a80c70e8522 Mon Sep 17 00:00:00 2001 From: Matthew Khouzam Date: Fri, 15 Apr 2016 13:06:23 -0400 Subject: [PATCH] tmf.ui: make CommonXLineChartViewer hide the X axis label by default. The X axis label is always "Time" for the common line chart viewer, this patch saves some vertical space by not displaying it. The legend is moved by default to the bottom, this saves a lot of space due to time alignment. Change-Id: I965290de363d2196140e03e60f3abe69fe35efb0 Signed-off-by: Matthew Khouzam Reviewed-on: https://git.eclipse.org/r/70776 Reviewed-by: Hudson CI Reviewed-by: Genevieve Bastien Tested-by: Genevieve Bastien Reviewed-by: Bernd Hufmann Tested-by: Bernd Hufmann --- .../viewers/xycharts/linecharts/TmfCommonXLineChartViewer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/xycharts/linecharts/TmfCommonXLineChartViewer.java b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/xycharts/linecharts/TmfCommonXLineChartViewer.java index 6342a2b96a..9671165c8e 100644 --- a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/xycharts/linecharts/TmfCommonXLineChartViewer.java +++ b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/viewers/xycharts/linecharts/TmfCommonXLineChartViewer.java @@ -80,7 +80,8 @@ public abstract class TmfCommonXLineChartViewer extends TmfXYChartViewer { */ public TmfCommonXLineChartViewer(Composite parent, String title, String xLabel, String yLabel) { super(parent, title, xLabel, yLabel); - + getSwtChart().getLegend().setPosition(SWT.BOTTOM); + getSwtChart().getAxisSet().getXAxes()[0].getTitle().setVisible(false); setResolution(RESOLUTION); setTooltipProvider(new TmfCommonXLineChartTooltipProvider(this)); } -- 2.34.1