diff --git a/org.fortiss.tooling.spiderchart.ui/trunk/src/org/fortiss/tooling/spiderchart/builder/SpiderChartBuilder.java b/org.fortiss.tooling.spiderchart.ui/trunk/src/org/fortiss/tooling/spiderchart/builder/SpiderChartBuilder.java index f902ab79feff64ceb8a56fa7361b48d47447c319..36372231788f887beebc230f7bbdc3bbeb308af8 100644 --- a/org.fortiss.tooling.spiderchart.ui/trunk/src/org/fortiss/tooling/spiderchart/builder/SpiderChartBuilder.java +++ b/org.fortiss.tooling.spiderchart.ui/trunk/src/org/fortiss/tooling/spiderchart/builder/SpiderChartBuilder.java @@ -88,8 +88,6 @@ public final class SpiderChartBuilder { .getShell().getClientArea().y, parent.getShell() .getClientArea().width, parent.getShell().getClientArea().height - 10); - this.chartViewer.setChangePointer(true); - this.chartViewer.setAllowZoom(true); // Some chart related default configurations this.chart = new SpiderChart(chartConfiguration.getTitle(), diff --git a/org.fortiss.tooling.spiderchart.ui/trunk/src/org/fortiss/tooling/spiderchart/swt/SpiderChartViewer.java b/org.fortiss.tooling.spiderchart.ui/trunk/src/org/fortiss/tooling/spiderchart/swt/SpiderChartViewer.java index 494d72a8449a0393dddce99acd320ec7e2ebc101..306b7901edc1112f82881b4b3a47822d9f163b08 100644 --- a/org.fortiss.tooling.spiderchart.ui/trunk/src/org/fortiss/tooling/spiderchart/swt/SpiderChartViewer.java +++ b/org.fortiss.tooling.spiderchart.ui/trunk/src/org/fortiss/tooling/spiderchart/swt/SpiderChartViewer.java @@ -44,7 +44,7 @@ import org.fortiss.tooling.spiderchart.listener.SpiderChartAdapter; public final class SpiderChartViewer extends Composite { /** allows zoom functionality on the chart */ - private boolean allowZoom = true; + private boolean allowZoom = false; /** the actual canvas to be used */ private SpiderChartCanvas canvas = null; @@ -52,18 +52,18 @@ public final class SpiderChartViewer extends Composite { /** allows to change pointer on hovering data points */ private boolean changePointer = true; - /** Default Chart Listeners for hovering behaviours */ + /** Default Chart Listeners for hovering behaviors */ private final SpiderChartAdapter chartAdapter = new SpiderChartAdapter() { /** {@inheritDoc} */ @Override public void onChartEvent(final SpiderChart c, final int type) { if (type == 2) { SpiderChartViewer.this.canvas - .setCursor(SpiderChartViewer.this.pointCursor); + .setCursor(SpiderChartViewer.this.pointCursor); } if (type == 3) { SpiderChartViewer.this.canvas - .setCursor(SpiderChartViewer.this.defaultCursor); + .setCursor(SpiderChartViewer.this.defaultCursor); } } }; @@ -412,7 +412,7 @@ public final class SpiderChartViewer extends Composite { } if (this.canvas.getChart().getVirtualWidth() > 0) { this.vSlider - .setSize(vSliderWidth, this.getSize().y - hSliderHeight); + .setSize(vSliderWidth, this.getSize().y - hSliderHeight); this.vSlider.setLocation(this.canvas.getSize().x, 0); this.vSlider.setVisible(true); this.canvas.getChart().setWithScroll(true);