Class MetadataExtractor.Knot

java.lang.Object
gov.nih.mipav.model.file.MetadataExtractor.Knot
Enclosing class:
MetadataExtractor

public class MetadataExtractor.Knot extends Object
Represents a knot created by Photoshop:
  • Linked knot
  • Unlinked knot
Author:
Payton Garland
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final double[]
     
    private final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Knot(String type)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getPoint(int index)
    Get an individual coordinate value (x or y)
    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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _points

      private final double[] _points
    • _type

      private final String _type
  • Constructor Details

    • Knot

      public Knot(String type)
  • Method Details

    • 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 String getType()
      Get the type of knot (linked or unlinked)
      Returns:
      the type of knot