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

Allow Zoom True

Few Comments
parent 2a4f6d19
No related branches found
No related tags found
No related merge requests found
...@@ -220,7 +220,7 @@ public final class SpiderChart { ...@@ -220,7 +220,7 @@ public final class SpiderChart {
/** configuration for repainting always */ /** configuration for repainting always */
private boolean repaintAlways = true; private boolean repaintAlways = true;
/** Right MArgin */ /** Right Margin */
private final double rightMargin = 0.125D; private final double rightMargin = 0.125D;
/** Spider Chart Label */ /** Spider Chart Label */
...@@ -229,13 +229,13 @@ public final class SpiderChart { ...@@ -229,13 +229,13 @@ public final class SpiderChart {
/** The data sequence to be used */ /** The data sequence to be used */
private DataSeq selectedSeq = null; private DataSeq selectedSeq = null;
/** the data point as selected */ /** Data point as selected */
private int selectedSeqPoint = -1; private int selectedSeqPoint = -1;
/** Show Tips on the Spider Chart Points */ /** Show Tips on the Spider Chart Points */
private boolean showTips = false; private boolean showTips = true;
/** */ /** Check refresh thread status */
private boolean stopped = false; private boolean stopped = false;
/** Spider Chart Tip Background Color */ /** Spider Chart Tip Background Color */
...@@ -259,10 +259,10 @@ public final class SpiderChart { ...@@ -259,10 +259,10 @@ public final class SpiderChart {
/** */ /** */
private int virtualWidth = 0; private int virtualWidth = 0;
/** */ /** Width of the chart */
private int width = 0; private int width = 0;
/** Scrollable Property */ /** Scrollable Chart Property */
private boolean withScroll = false; private boolean withScroll = false;
/** Constructor */ /** Constructor */
...@@ -791,7 +791,7 @@ public final class SpiderChart { ...@@ -791,7 +791,7 @@ public final class SpiderChart {
this.plotters[0].x + this.plotters[0].width); this.plotters[0].x + this.plotters[0].width);
this.plotters[0] this.plotters[0]
.getxScale() .getxScale()
.setScreenMaxMargin( .setScreenMaxMargin(
(int) (this.plotters[0].getxScale().getScreenMax() * (1.0D - this.axisMargin))); (int) (this.plotters[0].getxScale().getScreenMax() * (1.0D - this.axisMargin)));
if (this.fullXAxis) { if (this.fullXAxis) {
this.plotters[0].getxScale().setScreenMaxMargin( this.plotters[0].getxScale().setScreenMaxMargin(
...@@ -804,7 +804,7 @@ public final class SpiderChart { ...@@ -804,7 +804,7 @@ public final class SpiderChart {
this.plotters[0].y + this.plotters[0].height); this.plotters[0].y + this.plotters[0].height);
this.plotters[0] this.plotters[0]
.getyScale() .getyScale()
.setScreenMaxMargin( .setScreenMaxMargin(
(int) (this.plotters[0].getyScale().getScreenMax() * (1.0D - this.axisMargin))); (int) (this.plotters[0].getyScale().getScreenMax() * (1.0D - this.axisMargin)));
this.plotters[0].getyScale().setScreenMin(this.plotters[0].y); this.plotters[0].getyScale().setScreenMin(this.plotters[0].y);
} }
......
...@@ -44,7 +44,7 @@ import org.fortiss.tooling.spiderchart.listener.SpiderChartAdapter; ...@@ -44,7 +44,7 @@ import org.fortiss.tooling.spiderchart.listener.SpiderChartAdapter;
public final class SpiderChartViewer extends Composite { public final class SpiderChartViewer extends Composite {
/** allows zoom functionality on the chart */ /** allows zoom functionality on the chart */
private boolean allowZoom = false; private boolean allowZoom = true;
/** the actual canvas to be used */ /** the actual canvas to be used */
private SpiderChartCanvas canvas = null; private SpiderChartCanvas canvas = null;
......
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