Class DoubleInputText

java.lang.Object
org.eclipse.nebula.visualization.internal.xygraph.toolbar.DoubleInputText

public class DoubleInputText
extends java.lang.Object
A SWT text which only allow double input. It also has the possibility for range check.
  • Constructor Summary

    Constructors 
    Constructor Description
    DoubleInputText​(org.eclipse.swt.widgets.Composite parent, int style)  
    DoubleInputText​(org.eclipse.swt.widgets.Composite parent, int style, double max, double min)  
  • Method Summary

    Modifier and Type Method Description
    double getDoubleValue()  
    Range getRange()  
    org.eclipse.swt.widgets.Text getText()  
    void setRange​(Range range)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DoubleInputText

      public DoubleInputText​(org.eclipse.swt.widgets.Composite parent, int style)
    • DoubleInputText

      public DoubleInputText​(org.eclipse.swt.widgets.Composite parent, int style, double max, double min)
  • Method Details

    • getRange

      public Range getRange()
      Returns:
      the range
    • setRange

      public void setRange​(Range range)
      Parameters:
      range - the range to set. null for no range check.
    • getText

      public org.eclipse.swt.widgets.Text getText()
      Returns:
      the text
    • getDoubleValue

      public double getDoubleValue()