Enum Class SpecialHexDisplay.Type

java.lang.Object
java.lang.Enum<SpecialHexDisplay.Type>
megamek.common.SpecialHexDisplay.Type
All Implemented Interfaces:
Serializable, Comparable<SpecialHexDisplay.Type>, Constable
Enclosing class:
SpecialHexDisplay

public static enum SpecialHexDisplay.Type extends Enum<SpecialHexDisplay.Type>
  • Enum Constant Details

  • Method Details

    • values

      public static SpecialHexDisplay.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SpecialHexDisplay.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • init

      public void init()
    • useFolderStructure

      public boolean useFolderStructure()
    • getDefaultImage

      public Image getDefaultImage()
    • getImage

      public Image getImage(String imageName)
      Get the image for this type of special hex display.
      Parameters:
      imageName - The name of the image to get
      Returns:
      The image
    • setDefaultImage

      @Deprecated(since="0.51.0", forRemoval=true) public void setDefaultImage(Image defaultImage)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • drawBefore

      public boolean drawBefore()
    • drawAfter

      public boolean drawAfter()