Class TransformValidator


  • public class TransformValidator
    extends java.lang.Object
    The transform validator. Angle units:
     deg   Degrees.
     grad  Gradians.
     rad   Radians.
     turn  Turns.
     
    Author:
    Christopher Mindus
    • Nested Class Summary

      Nested Classes 
      Modifier and TypeClassDescription
      static class TransformValidator.Angle
      Internal angle unit class.
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      static java.lang.String[]ANGLE_UNITS
      Angle units.
      java.lang.Stringerror
      Potential error.
      java.lang.Stringfunction
      Function.
      java.lang.Stringinput
      The input string.
      java.util.ArrayList<java.lang.Object>values
      List of value objects, either GUnit, Double or Angle.
    • Constructor Summary

      Constructors 
      ConstructorDescription
      TransformValidator​(java.lang.String input)
      Creates the validator for an input.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.lang.StringgetCSSValue()
      Gets the parameters that were successfully parsed.
      voidsetEntryFields​(org.eclipse.swt.widgets.Text... texts)
      Helper to fill in values in entry fields.
      static java.lang.StringshortDouble​(double d)
      Short double formatting to string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ANGLE_UNITS

        public static final java.lang.String[] ANGLE_UNITS
        Angle units.
      • input

        public final java.lang.String input
        The input string.
      • function

        public java.lang.String function
        Function.
      • values

        public final java.util.ArrayList<java.lang.Object> values
        List of value objects, either GUnit, Double or Angle.
      • error

        public java.lang.String error
        Potential error.
    • Constructor Detail

      • TransformValidator

        public TransformValidator​(java.lang.String input)
        Creates the validator for an input.
    • Method Detail

      • shortDouble

        public static java.lang.String shortDouble​(double d)
        Short double formatting to string.
      • getCSSValue

        public java.lang.String getCSSValue()
        Gets the parameters that were successfully parsed.
      • setEntryFields

        public void setEntryFields​(org.eclipse.swt.widgets.Text... texts)
        Helper to fill in values in entry fields.