Search in sources :

Example 1 with RangeRestriction

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);
}
Also used : RangeRestriction(org.eclipse.swtchart.extensions.core.RangeRestriction)

Example 2 with RangeRestriction

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());
}
Also used : RangeRestriction(org.eclipse.swtchart.extensions.core.RangeRestriction)

Example 3 with RangeRestriction

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());
}
Also used : RangeRestriction(org.eclipse.swtchart.extensions.core.RangeRestriction)

Example 4 with RangeRestriction

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());
}
Also used : RangeRestriction(org.eclipse.swtchart.extensions.core.RangeRestriction)

Example 5 with RangeRestriction

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());
}
Also used : RangeRestriction(org.eclipse.swtchart.extensions.core.RangeRestriction)

Aggregations

RangeRestriction (org.eclipse.swtchart.extensions.core.RangeRestriction)33 IChartSettings (org.eclipse.swtchart.extensions.core.IChartSettings)8 DecimalFormat (java.text.DecimalFormat)4 DecimalFormatSymbols (java.text.DecimalFormatSymbols)4 Color (org.eclipse.swt.graphics.Color)4 IPrimaryAxisSettings (org.eclipse.swtchart.extensions.core.IPrimaryAxisSettings)4 ArrayList (java.util.ArrayList)3 Locale (java.util.Locale)3 IPreferenceStore (org.eclipse.jface.preference.IPreferenceStore)3 ISeriesData (org.eclipse.swtchart.extensions.core.ISeriesData)3 RelativeIntensityConverter (org.eclipse.swtchart.extensions.axisconverter.RelativeIntensityConverter)2 BarSeriesData (org.eclipse.swtchart.extensions.barcharts.BarSeriesData)2 IBarSeriesData (org.eclipse.swtchart.extensions.barcharts.IBarSeriesData)2 ISecondaryAxisSettings (org.eclipse.swtchart.extensions.core.ISecondaryAxisSettings)2 SecondaryAxisSettings (org.eclipse.swtchart.extensions.core.SecondaryAxisSettings)2 HashMap (java.util.HashMap)1 IAxis (org.eclipse.swtchart.IAxis)1 IAxisSet (org.eclipse.swtchart.IAxisSet)1 Range (org.eclipse.swtchart.Range)1 MillisecondsToMinuteConverter (org.eclipse.swtchart.extensions.axisconverter.MillisecondsToMinuteConverter)1