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 Type Class Description
      static class  TransformValidator.Angle
      Internal angle unit class.
    • Field Summary

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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCSSValue()
      Gets the parameters that were successfully parsed.
      void setEntryFields​(org.eclipse.swt.widgets.Text... texts)
      Helper to fill in values in entry fields.
      static java.lang.String shortDouble​(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.