Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Grunberg2012-01-13 17:05:51 -0500
committerRoland Grunberg2012-01-13 17:05:51 -0500
commit790e6d2c515da14c2dd69b136e036d23d0b037f8 (patch)
tree27c939bf136cbf18fa054d53e03839cdffaf1f05 /valgrind
parent2ac954ad2ae57af3914078edc7011a1ca4569127 (diff)
downloadorg.eclipse.linuxtools-790e6d2c515da14c2dd69b136e036d23d0b037f8.tar.gz
org.eclipse.linuxtools-790e6d2c515da14c2dd69b136e036d23d0b037f8.tar.xz
org.eclipse.linuxtools-790e6d2c515da14c2dd69b136e036d23d0b037f8.zip
Set spacing between horizontal grid lines to match original BIRT chart.
Diffstat (limited to 'valgrind')
-rw-r--r--valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/birt/ChartEditor.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/birt/ChartEditor.java b/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/birt/ChartEditor.java
index d63c12e19c..60ae9f5815 100644
--- a/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/birt/ChartEditor.java
+++ b/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/birt/ChartEditor.java
@@ -91,6 +91,7 @@ public class ChartEditor extends EditorPart {
final Color ORANGE = new Color(Display.getDefault(), 255, 165, 0);
final Color GREEN = new Color(Display.getDefault(), 0, 255, 0);
final Color DARK_BLUE = new Color(Display.getDefault(), 64, 128, 128);
+ final int TICK_GAP = 40;
control.setBackground(WHITE);
control.setBackgroundInPlotArea(LIGHTYELLOW);
@@ -118,6 +119,7 @@ public class ChartEditor extends EditorPart {
IAxis yAxis = control.getAxisSet().getYAxis(0);
yAxis.getGrid().setStyle(LineStyle.SOLID);
yAxis.getTick().setForeground(BLACK);
+ yAxis.getTick().setTickMarkStepHint(TICK_GAP);
ITitle yTitle = yAxis.getTitle();
yTitle.setFont(font);
yTitle.setText(heapChart.yUnits);

Back to the top