Class Portrait

All Implemented Interfaces:
Serializable

public class Portrait extends AbstractIcon
Portrait is an implementation of AbstractIcon that contains and displays a Portrait from the Portrait Directory.
See Also:
  • Field Details

  • Constructor Details

    • Portrait

      public Portrait()
    • Portrait

      public Portrait(@Nullable String category, @Nullable String filename)
    • Portrait

      public Portrait(File file)
      Constructs a new portrait with the given file. Even though a file is accepted, this can only be used for portraits of the directories that are parsed automatically, i.e. the MM-internal portrait dir, the user dir and the story arcs directory! This method tries to parse the filename to find the portrait. This requires replacing Windows backslashes with normal slashes in order to find the file in the way portraits are stored (see AbstractDirectory)
      Parameters:
      file - The File, such as a file of "Female/Aerospace Pilot/ASF_F_3.png"
  • Method Details