Class ArrayDimensions

    • Field Detail

      • m_Dimensions

        protected int[] m_Dimensions
        the parsed dimensions.
    • Constructor Detail

      • ArrayDimensions

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

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

      • convert

        protected String convert​(String value)
        Converts the string according to the specified conversion.

        Simply unsets the m_Dimensions member.
        Overrides:
        convert in class AbstractBaseString
        Parameters:
        value - the string to convert
        Returns:
        the converted string
      • parse

        protected int[] parse​(String s)
        Parses the dimension string.
        Parameters:
        s - the string to parse
        Returns:
        the dimensions or null if failed to parse
      • 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
      • dimensionsValue

        public int[] dimensionsValue()
        Returns the dimensions.
        Returns:
        the dimensions
      • 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