package com.drew.metadata.photoshop; import java.util.ArrayList; /** * Represents a subpath created by Photoshop: * * * @author Payton Garland */ public class Subpath { private final ArrayList _knots = new ArrayList(); private final String _type; public Subpath() { this(""); } public Subpath(String type) { _type = type; } /** * Appends a knot (set of 3 points) into the list */ public void add(Knot knot) { _knots.add(knot); } /** * Gets size of knots list * * @return size of knots ArrayList */ public int size() { return _knots.size(); } public Iterable getKnots() { return _knots; } public String getType() { return _type; } }