public class DefaultFaceObject extends AbstractNamedObject implements FaceObject
| Constructor and Description |
|---|
DefaultFaceObject(@NotNull java.lang.String faceName,
@NotNull java.lang.String originalFilename,
int offset,
int size)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull NamedObject o)
Overridden to sort bug.101 and bug.111 before all other
faces.
|
boolean |
equals(@Nullable java.lang.Object obj) |
@Nullable java.lang.String |
getAlternativeFaceName()
Returns the alternative face name for image.a.nnn faces.
|
@NotNull java.lang.String |
getDisplayIconName()
Returns the face name of the display icon for this AbstractNamedObject.
|
@NotNull java.lang.String |
getFaceName()
Get the faceName, which is the name of the face as usable by the "face"
attribute.
|
@NotNull java.lang.String |
getName()
Get the name of this AbstractNamedObject.
|
int |
getOffset()
Returns the offset of this face in the actual file.
|
@NotNull java.lang.String |
getOriginalFilename()
Get the original filename of this face.
|
int |
getSize()
Returns the size of this face in the actual file.
|
int |
hashCode() |
boolean |
isDouble()
Return whether this face is a double face.
|
boolean |
isUp()
Return whether this face is an up face.
|
getPath, setPath, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPath, setPath, toStringpublic DefaultFaceObject(@NotNull
@NotNull java.lang.String faceName,
@NotNull
@NotNull java.lang.String originalFilename,
int offset,
int size)
faceName - name of face, e.g. "bug.111"originalFilename - original filename without .png extension, e.g.
"/system/bug.111"offset - offset in the file denoted by actualFilename, e.g.
148676size - size in the file denoted by actualFilename, e.g.
567,@NotNull public @NotNull java.lang.String getName()
NamedObjectgetName in interface NamedObjectgetFaceName()@NotNull public @NotNull java.lang.String getFaceName()
FaceObjectgetFaceName in interface FaceObjectgetName()@NotNull public @NotNull java.lang.String getOriginalFilename()
FaceObjectgetOriginalFilename in interface FaceObjectpublic int getOffset()
public int getSize()
public boolean isUp()
FaceObjectisUp in interface FaceObjectpublic boolean isDouble()
FaceObjectisDouble in interface FaceObject@Nullable public @Nullable java.lang.String getAlternativeFaceName()
FaceObjectgetAlternativeFaceName in interface FaceObjectnull@NotNull public @NotNull java.lang.String getDisplayIconName()
NamedObjectgetDisplayIconName in interface NamedObjectpublic int compareTo(@NotNull
@NotNull NamedObject o)
compareTo in interface java.lang.Comparable<NamedObject>compareTo in class AbstractNamedObjectpublic int hashCode()
hashCode in class AbstractNamedObjectpublic boolean equals(@Nullable
@Nullable java.lang.Object obj)
equals in class AbstractNamedObject