public interface FacesManager
original size
,
scaled data for map views
, or
reduced size for minimap
views
.
Listeners can be
attached
to be notified when face data has been loaded.Modifier and Type | Method and Description |
---|---|
void |
addFacesManagerListener(@NotNull FacesManagerListener facesManagerListener)
Adds a
FacesManagerListener to be notified about updated faces. |
@NotNull Face |
getFace(int faceNum)
Returns the
Face instance for a given face ID. |
@Nullable Face |
getFace2(int faceNum)
Returns the
Face instance for a given face ID. |
@NotNull javax.swing.ImageIcon |
getMagicMapImageIcon(int faceNum,
@Nullable java.util.concurrent.atomic.AtomicBoolean returnIsUnknownImage)
Returns the "magic map" face for a face ID.
|
@NotNull javax.swing.ImageIcon |
getOriginalImageIcon(int faceNum,
@Nullable java.util.concurrent.atomic.AtomicBoolean returnIsUnknownImage)
Returns the "original" face for a face ID.
|
@NotNull javax.swing.ImageIcon |
getScaledImageIcon(int faceNum,
@Nullable java.util.concurrent.atomic.AtomicBoolean returnIsUnknownImage)
Returns the "scaled" face for a face ID.
|
void |
removeFacesManagerListener(@NotNull FacesManagerListener facesManagerListener)
Removes a
FacesManagerListener to be notified about updated
faces. |
void |
reset()
Forgets about pending faces.
|
@NotNull @NotNull javax.swing.ImageIcon getOriginalImageIcon(int faceNum, @Nullable @Nullable java.util.concurrent.atomic.AtomicBoolean returnIsUnknownImage)
faceNum
- the face IDreturnIsUnknownImage
- returns whether the returned face is the
"unknown" face; ignored if null
@NotNull @NotNull javax.swing.ImageIcon getScaledImageIcon(int faceNum, @Nullable @Nullable java.util.concurrent.atomic.AtomicBoolean returnIsUnknownImage)
faceNum
- the face IDreturnIsUnknownImage
- returns whether the returned face is the
"unknown" face; ignored if null
@NotNull @NotNull javax.swing.ImageIcon getMagicMapImageIcon(int faceNum, @Nullable @Nullable java.util.concurrent.atomic.AtomicBoolean returnIsUnknownImage)
faceNum
- the face IDreturnIsUnknownImage
- returns whether the returned face is the
"unknown" face; ignored if null
@NotNull @NotNull Face getFace(int faceNum)
Face
instance for a given face ID. Requests the face
from the server if necessary.faceNum
- the face ID to request@Nullable @Nullable Face getFace2(int faceNum)
Face
instance for a given face ID. Requests the face
from the server if necessary.faceNum
- the face ID to requestnull
for the empty facevoid addFacesManagerListener(@NotNull @NotNull FacesManagerListener facesManagerListener)
FacesManagerListener
to be notified about updated faces.facesManagerListener
- the listenervoid removeFacesManagerListener(@NotNull @NotNull FacesManagerListener facesManagerListener)
FacesManagerListener
to be notified about updated
faces.facesManagerListener
- the listenervoid reset()