Package gov.nasa.arc.mct.fastplot.view

Examples of gov.nasa.arc.mct.fastplot.view.TimeDuration


    JLabel max = (JLabel) axisGroup.getControl(true , BoundOption.AUTO, true);
   
    TimeSpanTextField span =  (TimeSpanTextField) axisGroup.getSpanControl(true);
   
    ((JRadioButton) axisGroup.getControl(false, BoundOption.CURRENT, false)).doClick();
    span.setTime(new TimeDuration(15000l));
    ((JRadioButton) axisGroup.getControl(true , BoundOption.AUTO, false)).doClick();     
    Assert.assertEquals(max.getText().replaceAll("[\\(\\)]", ""), "001/00:00:16 1969");
  }
View Full Code Here


   
    public void setSpanValue(double value) {
      if (value > 0) {
        if (temporal) {
          TimeSpanTextField field = (TimeSpanTextField) spanValue;
          field.setTime(new TimeDuration((long)value));
        } else {
          NumericTextField field = (NumericTextField) spanValue;
          field.setValue(value);     
        }
      }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.fastplot.view.TimeDuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.