Class TransformValidator

java.lang.Object
com.iizigo.prop.editor.TransformValidator

public class TransformValidator extends Object
The transform validator. Angle units:
 deg   Degrees.
 grad  Gradians.
 rad   Radians.
 turn  Turns.
 
Author:
Christopher Mindus
  • Field Details

    • ANGLE_UNITS

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

      public final String input
      The input string.
    • function

      public String function
      Function.
    • values

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

      public String error
      Potential error.
  • Constructor Details

    • TransformValidator

      public TransformValidator(String input)
      Creates the validator for an input.
  • Method Details

    • shortDouble

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

      public 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.