Package net.sf.gridarta.model.face
Class AbstractFaceObjects
- java.lang.Object
-
- net.sf.gridarta.model.data.AbstractNamedObjects<FaceObject>
-
- net.sf.gridarta.model.face.AbstractFaceObjects
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<FaceObject>,NamedObjects<FaceObject>,FaceObjects
- Direct Known Subclasses:
DefaultFaceObjects
public abstract class AbstractFaceObjects extends AbstractNamedObjects<FaceObject> implements FaceObjects
Abstract base class forFaceObjectsimplementations.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFaceObjects(@NotNull java.lang.String name)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFaceObject(@NotNull java.lang.String faceName, @NotNull java.lang.String originalFilename, int offset, int size)Adds a new face object.-
Methods inherited from class net.sf.gridarta.model.data.AbstractNamedObjects
containsKey, get, getName, getTreeRoot, iterator, put, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.gridarta.model.face.FaceObjects
isIncludeFaceNumbers, loadFacesCollection
-
Methods inherited from interface net.sf.gridarta.model.data.NamedObjects
containsKey, get, getName, getTreeRoot, iterator, size
-
-
-
-
Method Detail
-
addFaceObject
public void addFaceObject(@NotNull @NotNull java.lang.String faceName, @NotNull @NotNull java.lang.String originalFilename, int offset, int size) throws DuplicateFaceException, IllegalFaceExceptionDescription copied from interface:FaceObjectsAdds a new face object.- Specified by:
addFaceObjectin interfaceFaceObjects- Parameters:
faceName- the name of the face, e.g. "robe.101"originalFilename- the original filename, e.g. "arch/objects/misc/robe.101.png"offset- the offset in the file denoted byactualFilename, e.g. 148676size- the size in the file denoted byactualFilename, e.g. 567,- Throws:
DuplicateFaceException- in case the face was not uniqueIllegalFaceException- if the face cannot be added
-
-