package com.drew.metadata;


/**
 * Represents a knot created by Photoshop:
 *  Linked knot
 *  Unlinked knot
 *
 * @author Payton Garland
 */
public class Knot
{
    private double[] points;
    private String type;

    public Knot(String type)
    {
        this.points = new double[6];
        this.type = type;
    }

    /**
     * Add an individual coordinate value (x or y) to
     * points array (6 points per knot)
     *
     * @param index location of point to be added in points
     * @param point coordinate value to be added to points
     */
    public void insert(int index, double point) {
        points[index] = point;
    }

    /**
     * Get an individual coordinate value (x or y)
     *
     * @return an individual coordinate value
     */
    public double getPoint(int index) {
        return points[index];
    }

    /**
     * Get the type of knot (linked or unlinked)
     *
     * @return the type of knot
     */
    public String getType() {
        return this.type;
    }
}

@@ -75,39 +75,79 @@
 :%0A *
-  Linked knot%0A *  Unlinked knot
+%0A * %3Cul%3E%0A *   %3Cli%3ELinked knot%3C/li%3E%0A *   %3Cli%3EUnlinked knot%3C/li%3E%0A * %3C/ul%3E
 %0A *%0A

Tweak Javadoc