com.drew.metadata.photoshop.Subpath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metadata-extractor Show documentation
Show all versions of metadata-extractor Show documentation
Java library for extracting EXIF, IPTC, XMP, ICC and other metadata from image and video files.
package com.drew.metadata.photoshop;
import java.util.ArrayList;
/**
* Represents a subpath created by Photoshop:
*
* - Closed Bezier knot, linked
* - Closed Bezier knot, unlinked
* - Open Bezier knot, linked
* - Open Bezier knot, unlinked
*
*
* @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;
}
}