Class BasePointFloat

    • Constructor Detail

      • BasePointFloat

        public BasePointFloat()
        Initializes the string with length 0.
      • BasePointFloat

        public BasePointFloat​(String s)
        Initializes the object with the string to parse.
        Parameters:
        s - the string to parse
      • BasePointFloat

        public BasePointFloat​(Point2D.Float value)
        Initializes the object with the given value.
        Parameters:
        value - the value to use
      • BasePointFloat

        public BasePointFloat​(Float x,
                              Float y)
        Initializes the object with the given value.
        Parameters:
        x - the X value to use
        y - the Y value to use
    • Method Detail

      • isValid

        public boolean isValid​(String value)
        Checks whether the string value is a valid presentation for this class.
        Overrides:
        isValid in class AbstractBaseString
        Parameters:
        value - the string value to check
        Returns:
        true if parseable boolean
      • getTipText

        public String getTipText()
        Returns a tool tip for the GUI editor (ignored if null is returned).
        Specified by:
        getTipText in class AbstractBaseString
        Returns:
        the tool tip
      • toString

        public static String toString​(Point2D.Float d)
        Turns a Point2D.Float object into a string.
        Parameters:
        d - the object to convert
        Returns:
        the generated string
      • parse

        public Point2D.Float parse​(String s)
        Parses the string ("x;y").
        Parameters:
        s - the string to parse
        Returns:
        the generated Point2D.Float object, null if failed to parse