Skip to content
Snippets Groups Projects
Commit 2a4f6d19 authored by Amit Kumar Mondal's avatar Amit Kumar Mondal
Browse files

Allow Zoom Default false

Allow Change Pointer Default True
parent dcb39e31
No related branches found
No related tags found
No related merge requests found
......@@ -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(),
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment