Interface FacesManager

    • Method Detail

      • getOriginalImageIcon

        @NotNull
        @NotNull javax.swing.ImageIcon getOriginalImageIcon​(int faceNum,
                                                            boolean @Nullable [] isUnknownImage)
        Returns the "original" face for a face ID. This function returns immediately even if the face is not loaded. A not loaded face will be updated as soon as loading has finished.
        Parameters:
        faceNum - the face ID
        isUnknownImage - returns whether the returned face is the "unknown" face; ignored if null
        Returns:
        the face, or the "unknown" face if the face is not loaded
      • getScaledImageIcon

        @NotNull
        @NotNull javax.swing.ImageIcon getScaledImageIcon​(int faceNum,
                                                          boolean @Nullable [] isUnknownImage)
        Returns the "scaled" face for a face ID. This function returns immediately even if the face is not loaded. A not loaded face will be updated as soon as loading has finished.
        Parameters:
        faceNum - the face ID
        isUnknownImage - returns whether the returned face is the "unknown" face; ignored if null
        Returns:
        the face, or the "unknown" face if the face is not loaded
      • getMagicMapImageIcon

        @NotNull
        @NotNull javax.swing.ImageIcon getMagicMapImageIcon​(int faceNum,
                                                            boolean @Nullable [] isUnknownImage)
        Returns the "magic map" face for a face ID. This function returns immediately even if the face is not loaded. A not loaded face will be updated as soon as loading has finished.
        Parameters:
        faceNum - the face ID
        isUnknownImage - returns whether the returned face is the "unknown" face; ignored if null
        Returns:
        the face, or the "unknown" face if the face is not loaded
      • getFace

        @NotNull
        @NotNull Face getFace​(int faceNum)
        Returns the Face instance for a given face ID. Requests the face face from the server if necessary.
        Parameters:
        faceNum - the face ID to request
        Returns:
        the face
      • getFace2

        @Nullable
        @Nullable Face getFace2​(int faceNum)
        Returns the Face instance for a given face ID. Requests the face from the server if necessary.
        Parameters:
        faceNum - the face ID to request
        Returns:
        the face or null for the empty face
      • addFacesManagerListener

        void addFacesManagerListener​(@NotNull
                                     @NotNull FacesManagerListener facesManagerListener)
        Adds a FacesManagerListener to be notified about updated faces.
        Parameters:
        facesManagerListener - the listener
      • removeFacesManagerListener

        void removeFacesManagerListener​(@NotNull
                                        @NotNull FacesManagerListener facesManagerListener)
        Removes a FacesManagerListener to be notified about updated faces.
        Parameters:
        facesManagerListener - the listener
      • reset

        void reset()
        Forgets about pending faces.