Class PolygonVertexLengths

    • Field Detail

      • m_Key

        protected String m_Key
        the meta-data key to store the lengths as comma-separated list.
    • Constructor Detail

      • PolygonVertexLengths

        public PolygonVertexLengths()
    • Method Detail

      • setKey

        public void setKey​(String value)
        Sets the meta-data key for the vertices.
        Parameters:
        value - the key
      • getKey

        public String getKey()
        Returns the meta-data key for the vertices.
        Returns:
        the key
      • keyTipText

        public String keyTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • dist

        protected double dist​(int x0,
                              int y0,
                              int x1,
                              int y1)
        Calculates the distance between the two points.
        Parameters:
        x0 - the x of the 1st point
        y0 - the y of the 1st point
        x1 - the x of the 2nd point
        y1 - the y of the 2nd point
        Returns:
        the distance