use of org.eclipse.swtchart.extensions.core.RangeRestriction in project swtchart by eclipse.
the class RangeRestriction_7_Test method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
rangeRestriction = new RangeRestriction(RangeRestriction.Y_ZOOM_ONLY);
}
use of org.eclipse.swtchart.extensions.core.RangeRestriction in project swtchart by eclipse.
the class RangeRestriction_9_Test method test4.
public void test4() {
rangeRestriction = new RangeRestriction(RangeRestriction.ZERO_X | RangeRestriction.ZERO_Y);
assertTrue(rangeRestriction.isZeroX());
assertTrue(rangeRestriction.isZeroY());
assertFalse(rangeRestriction.isRestrictZoom());
assertFalse(rangeRestriction.isXZoomOnly());
assertFalse(rangeRestriction.isYZoomOnly());
}
use of org.eclipse.swtchart.extensions.core.RangeRestriction in project swtchart by eclipse.
the class RangeRestriction_9_Test method test1.
public void test1() {
rangeRestriction = new RangeRestriction(RangeRestriction.ZERO_X | RangeRestriction.ZERO_Y | RangeRestriction.RESTRICT_ZOOM | RangeRestriction.X_ZOOM_ONLY | RangeRestriction.Y_ZOOM_ONLY);
assertTrue(rangeRestriction.isZeroX());
assertTrue(rangeRestriction.isZeroY());
assertTrue(rangeRestriction.isRestrictZoom());
assertTrue(rangeRestriction.isXZoomOnly());
assertTrue(rangeRestriction.isYZoomOnly());
}
use of org.eclipse.swtchart.extensions.core.RangeRestriction in project swtchart by eclipse.
the class RangeRestriction_9_Test method test2.
public void test2() {
rangeRestriction = new RangeRestriction(RangeRestriction.ZERO_X | RangeRestriction.RESTRICT_ZOOM);
assertTrue(rangeRestriction.isZeroX());
assertFalse(rangeRestriction.isZeroY());
assertTrue(rangeRestriction.isRestrictZoom());
assertFalse(rangeRestriction.isXZoomOnly());
assertFalse(rangeRestriction.isYZoomOnly());
}
use of org.eclipse.swtchart.extensions.core.RangeRestriction in project swtchart by eclipse.
the class RangeRestriction_9_Test method test6.
public void test6() {
rangeRestriction = new RangeRestriction(RangeRestriction.ZERO_X | RangeRestriction.X_ZOOM_ONLY);
assertTrue(rangeRestriction.isZeroX());
assertFalse(rangeRestriction.isZeroY());
assertFalse(rangeRestriction.isRestrictZoom());
assertTrue(rangeRestriction.isXZoomOnly());
assertFalse(rangeRestriction.isYZoomOnly());
}
Aggregations