Class Knot


  • public class Knot
    extends java.lang.Object
    Represents a knot created by Photoshop:
    • Linked knot
    • Unlinked knot
    • Constructor Summary

      Constructors 
      Constructor Description
      Knot​(java.lang.String type)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getPoint​(int index)
      Get an individual coordinate value (x or y)
      java.lang.String getType()
      Get the type of knot (linked or unlinked)
      void setPoint​(int index, double point)
      Add an individual coordinate value (x or y) to points array (6 points per knot)
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Knot

        public Knot​(java.lang.String type)
    • Method Detail

      • setPoint

        public void setPoint​(int index,
                             double point)
        Add an individual coordinate value (x or y) to points array (6 points per knot)
        Parameters:
        index - location of point to be added in points
        point - coordinate value to be added to points
      • getPoint

        public double getPoint​(int index)
        Get an individual coordinate value (x or y)
        Returns:
        an individual coordinate value
      • getType

        public java.lang.String getType()
        Get the type of knot (linked or unlinked)
        Returns:
        the type of knot