public class DefaultFaceObject extends AbstractNamedObject implements FaceObject
Constructor and Description |
---|
DefaultFaceObject(java.lang.String faceName,
java.lang.String originalFilename,
int offset,
int size)
Create a FaceObject.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NamedObject o)
Overridden to sort bug.101 and bug.111 before all other
faces.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlternativeFaceName()
Returns the alternative face name for image.a.nnn faces.
|
java.lang.String |
getDisplayIconName()
Returns the face name of the display icon for this AbstractNamedObject.
|
java.lang.String |
getFaceName()
Get the faceName, which is the name of the face as usable by the "face"
attribute.
|
java.lang.String |
getName()
Get the name of this AbstractNamedObject.
|
int |
getOffset()
Get the offset of this face in the actualFilename.
|
java.lang.String |
getOriginalFilename()
Get the original filename of this face.
|
int |
getSize()
Get the size of this face in the actualFilename.
|
int |
hashCode() |
boolean |
isDouble()
Return whether this face is a double face.
|
boolean |
isUp()
Return whether this face is an up face.
|
getPath, setPath, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPath, setPath, toString
public DefaultFaceObject(@NotNull java.lang.String faceName, @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 java.lang.String getName()
getName
in interface NamedObject
getFaceName()
@NotNull public java.lang.String getFaceName()
getFaceName
in interface FaceObject
getName()
@NotNull public java.lang.String getOriginalFilename()
getOriginalFilename
in interface FaceObject
public int getOffset()
public int getSize()
public boolean isUp()
isUp
in interface FaceObject
public boolean isDouble()
isDouble
in interface FaceObject
@Nullable public java.lang.String getAlternativeFaceName()
getAlternativeFaceName
in interface FaceObject
null
@NotNull public java.lang.String getDisplayIconName()
getDisplayIconName
in interface NamedObject
public int compareTo(@NotNull NamedObject o)
compareTo
in interface java.lang.Comparable<NamedObject>
compareTo
in class AbstractNamedObject
public int hashCode()
hashCode
in class AbstractNamedObject
public boolean equals(@Nullable java.lang.Object obj)
equals
in class AbstractNamedObject