 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.face;
22 import java.util.regex.Matcher;
23 import java.util.regex.Pattern;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
98 private final boolean isUp;
197 final boolean iAmBug =
faceName.equals(
"bug.111") ||
faceName.equals(
"bug.101");
198 final boolean otherIsBug = o.getName().equals(
"bug.111") || o.getName().equals(
"bug.101");
199 if (iAmBug && otherIsBug) {
208 return super.compareTo(o);
213 return faceName.hashCode() ^ super.hashCode();
217 public boolean equals(@Nullable
final Object obj) {
221 if (obj ==
null || obj.getClass() != getClass()) {
final String originalFilename
The filename the face originally came from (origin location).
Base package of all Gridarta classes.
static final long serialVersionUID
The serial version UID.
int getOffset()
Returns the offset of this face in the actual file.
final int offset
The offset in the file the face was loaded from.
int getSize()
Returns the size of this face in the actual file.
static final Pattern ALTERNATIVE_FACE_NAME_PATTERN
A Pattern matching face names having alternative face names.
boolean isUp()
Return whether this face is an up face.
A FaceObject stores information and meta information about a face and provides methods for accessing ...
DefaultFaceObject(@NotNull final String faceName, @NotNull final String originalFilename, final int offset, final int size)
Creates a new instance.
String getOriginalFilename()
Get the original filename of this face.
final boolean isUp
Whether this face is an "up" face.
String getDisplayIconName()
Returns the face name of the display icon for this AbstractNamedObject.
String getAlternativeFaceName()
Returns the alternative face name for image.a.nnn faces.
Classes for handling data that is organized in a tree.
final int size
The size in the file the face was loaded from.
boolean equals(@Nullable final Object obj)
final String faceName
The face name.
final String alternativeFaceName
The alternative face name for image.a.nnn faces.
Common interface for FaceObject.
boolean isDouble()
Return whether this face is a double face.
int compareTo(@NotNull final NamedObject o)
Overridden to sort bug.101 and bug.111 before all other faces.
final boolean isDouble
Whether this face is a "double" face.