| 1 |
package com.drew.metadata.photoshop; |
| 2 |
|
| 3 |
import java.util.ArrayList; |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
public class Subpath |
| 17 |
{ |
| 18 |
private final ArrayList<Knot> _knots = new ArrayList<Knot>(); |
| 19 |
private final String _type; |
| 20 |
|
| 21 |
public Subpath() |
| 22 |
{ |
| 23 |
this(""); |
| 24 |
} |
| 25 |
|
| 26 |
public Subpath(String type) |
| 27 |
{ |
| 28 |
_type = type; |
| 29 |
} |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
public void add(Knot knot) |
| 35 |
{ |
| 36 |
_knots.add(knot); |
| 37 |
} |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
public int size() |
| 45 |
{ |
| 46 |
return _knots.size(); |
| 47 |
} |
| 48 |
|
| 49 |
public Iterable<Knot> getKnots() |
| 50 |
{ |
| 51 |
return _knots; |
| 52 |
} |
| 53 |
|
| 54 |
public String getType() |
| 55 |
{ |
| 56 |
return _type; |
| 57 |
} |
| 58 |
} |