All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.drew.metadata.photoshop.Subpath Maven / Gradle / Ivy

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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy