![]() |
Gridarta Editor
|
Abstract base class for FaceObjects implementations. More...
Public Member Functions | |
void | addFaceObject (@NotNull final String faceName, @NotNull final String originalFilename, final int offset, final int size) throws DuplicateFaceException, IllegalFaceException |
Adds a new face object. More... | |
![]() | |
boolean | containsKey (@NotNull final String name) |
E | get (@NotNull final String objectName) |
String | getName () |
NamedTreeNode< E > | getTreeRoot () |
Iterator< E > | iterator () |
int | size () |
![]() | |
boolean | containsKey ( @NotNull String name) |
Check whether an object is defined. More... | |
E | get ( @NotNull String objectName) |
Gets a AbstractNamedObject. More... | |
String | getName () |
Returns the tree name. More... | |
NamedTreeNode< E > | getTreeRoot () |
Get the object tree root. More... | |
Iterator< E > | iterator () |
NamedObjects are iterated in Unicode (=case sensitive ASCII) order. More... | |
int | size () |
Get the number of objects. More... | |
![]() | |
boolean | isIncludeFaceNumbers () |
Returns whether the images file contains face numbers. More... | |
FaceProvider | loadFacesCollection (@NotNull ErrorView errorView, @NotNull File collectedDirectory) |
Loads all faces from a png collection file. More... | |
![]() | |
boolean | containsKey (@NotNull String name) |
Check whether an object is defined. More... | |
E | get (@NotNull String objectName) |
Gets a AbstractNamedObject. More... | |
String | getName () |
Returns the tree name. More... | |
NamedTreeNode< E > | getTreeRoot () |
Get the object tree root. More... | |
Iterator< E > | iterator () |
NamedObjects are iterated in Unicode (=case sensitive ASCII) order. More... | |
int | size () |
Get the number of objects. More... | |
Protected Member Functions | |
AbstractFaceObjects (@NotNull final String name) | |
Creates a new instance. More... | |
![]() | |
AbstractNamedObjects (final String name) | |
Creates a new instance. More... | |
void | put (@NotNull final E object) throws IllegalNamedObjectException |
Stores an AbstractNamedObject. More... | |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
The serial version UID. More... | |
Abstract base class for FaceObjects implementations.
Definition at line 31 of file AbstractFaceObjects.java.
|
protected |
Creates a new instance.
name | localized name of the object type, e.g. used in dialogs |
Definition at line 42 of file AbstractFaceObjects.java.
References net.sf.gridarta.model.data.AbstractNamedObjects< E extends NamedObject >.name.
void net.sf.gridarta.model.face.AbstractFaceObjects.addFaceObject | ( | @NotNull final String | faceName, |
@NotNull final String | originalFilename, | ||
final int | offset, | ||
final int | size | ||
) | throws DuplicateFaceException, IllegalFaceException |
Adds a new face object.
faceName | the name of the face, e.g. <samp>"robe.101"</samp> |
originalFilename | the original filename, e.g. <samp>"arch/objects/misc/robe.101.png"</samp> |
offset | the offset in the file denoted by actualFilename
|
size | the size in the file denoted by actualFilename
|
DuplicateFaceException | in case the face was not unique |
IllegalFaceException | if the face cannot be added |
Implements net.sf.gridarta.model.face.FaceObjects.
Definition at line 47 of file AbstractFaceObjects.java.
References net.sf.gridarta.model.data.AbstractNamedObjects< E extends NamedObject >.put(), and net.sf.gridarta.model.data.AbstractNamedObjects< E extends NamedObject >.size().
Referenced by net.sf.gridarta.model.face.DefaultFaceObjects.loadFacesCollection().
|
staticprivate |
The serial version UID.
Definition at line 36 of file AbstractFaceObjects.java.