Class SkinSpecification

java.lang.Object
megamek.client.ui.widget.SkinSpecification

public class SkinSpecification extends Object
A class that contains state information that specifies a skin.
  • Field Details

    • MAX_NUM_COLORS

      public static final int MAX_NUM_COLORS
      Indicates the maximum number of colors a skin specification can have. No UI elements will use more than this many colors, so there is no reason to allow more than this, and it prevents the editor UI from expanding out of control.
      See Also:
    • tl_corner

      public String tl_corner
      Path to an image to be used in the top left corner.
    • tr_corner

      public String tr_corner
      Path to an image to be used in the top right corner.
    • bl_corner

      public String bl_corner
      Path to an image to be used in the bottom left corner.
    • br_corner

      public String br_corner
      Path to an image to be used in the bottom right corner.
    • topEdge

      public ArrayList<String> topEdge
      Path to images to be used along the top edge.
    • topShouldTile

      public ArrayList<Boolean> topShouldTile
      Has an entry for each image for the top edge that determines whether that image should be tiled or just drawn once.
    • rightEdge

      public ArrayList<String> rightEdge
      Path to images to be used along the right edge.
    • rightShouldTile

      public ArrayList<Boolean> rightShouldTile
      Has an entry for each image for the right edge that determines whether that image should be tiled or just drawn once.
    • bottomEdge

      public ArrayList<String> bottomEdge
      Path to images to be used along the bottom edge.
    • bottomShouldTile

      public ArrayList<Boolean> bottomShouldTile
      Has an entry for each image for the bottom edge that determines whether that image should be tiled or just drawn once.
    • leftEdge

      public ArrayList<String> leftEdge
      Path to images to be used along the left edge.
    • leftShouldTile

      public ArrayList<Boolean> leftShouldTile
      Has an entry for each image for the left edge that determines whether that image should be tiled or just drawn once.
    • fontColors

      public ArrayList<Color> fontColors
      Specifies the font color for the UI component
    • backgrounds

      public ArrayList<String> backgrounds
      A collection of background images. Most UI components only need one, but some have more. For instance, buttons have a normal background and a pressed background.
    • plain

      public boolean plain
    • noBorder

      public boolean noBorder
      It set, it indicates that no borders should be drawn.
    • tileBackground

      public boolean tileBackground
      Flag that determines whether the background image should be tiled or scaled.
    • showScrollBars

      public boolean showScrollBars
      Used to specify whether a component should display scrollbars, particularly for the board view.
    • fontName

      public String fontName
      Specify a non-standard font, or null to use default.
    • fontSize

      public int fontSize
      Specify a non-standard font size. Only used when a non-standard font name is specified.
    • shouldBoldMouseOver

      public boolean shouldBoldMouseOver
      Used to specify if the font should be bolded on mouseover. Used for buttons.
  • Constructor Details

    • SkinSpecification

      public SkinSpecification(String compName)
  • Method Details

    • hasBorder

      public boolean hasBorder()
    • hasBackgrounds

      public boolean hasBackgrounds()
    • toString

      public String toString()
      Overrides:
      toString in class Object