com.drew.metadata.photoshop.Knot 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
This is a fork of com.drewnoakes' metadata-extractor that relocates com.adobe.internal to com.adobe.
Java library for extracting EXIF, IPTC, XMP, ICC and other metadata from image and video files.
The newest version!
package com.drew.metadata.photoshop;
/**
* Represents a knot created by Photoshop:
*
*
* - Linked knot
* - Unlinked knot
*
*
* @author Payton Garland
*/
public class Knot
{
private final double[] _points = new double[6];
private final String _type;
public Knot(String type)
{
_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 setPoint(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;
}
}