Package megamek.client.ui.widget
Class SkinSpecification
java.lang.Object
megamek.client.ui.widget.SkinSpecification
A class that contains state information that specifies a skin.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionA collection of background images.Path to an image to be used in the bottom left corner.Path to images to be used along the bottom edge.Has an entry for each image for the bottom edge that determines whether that image should be tiled or just drawn once.Path to an image to be used in the bottom right corner.Specifies the font color for the UI componentSpecify a non-standard font, or null to use default.intSpecify a non-standard font size.Path to images to be used along the left edge.Has an entry for each image for the left edge that determines whether that image should be tiled or just drawn once.static final intIndicates the maximum number of colors a skin specification can have.booleanIt set, it indicates that no borders should be drawn.booleanPath to images to be used along the right edge.Has an entry for each image for the right edge that determines whether that image should be tiled or just drawn once.booleanUsed to specify if the font should be bolded on mouseover.booleanUsed to specify whether a component should display scrollbars, particularly for the board view.booleanFlag that determines whether the background image should be tiled or scaled.Path to an image to be used in the top left corner.Path to images to be used along the top edge.Has an entry for each image for the top edge that determines whether that image should be tiled or just drawn once.Path to an image to be used in the top right corner. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAX_NUM_COLORS
public static final int MAX_NUM_COLORSIndicates 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
Path to an image to be used in the top left corner. -
tr_corner
Path to an image to be used in the top right corner. -
bl_corner
Path to an image to be used in the bottom left corner. -
br_corner
Path to an image to be used in the bottom right corner. -
topEdge
Path to images to be used along the top edge. -
topShouldTile
Has an entry for each image for the top edge that determines whether that image should be tiled or just drawn once. -
rightEdge
Path to images to be used along the right edge. -
rightShouldTile
Has an entry for each image for the right edge that determines whether that image should be tiled or just drawn once. -
bottomEdge
Path to images to be used along the bottom edge. -
bottomShouldTile
Has an entry for each image for the bottom edge that determines whether that image should be tiled or just drawn once. -
leftEdge
Path to images to be used along the left edge. -
leftShouldTile
Has an entry for each image for the left edge that determines whether that image should be tiled or just drawn once. -
fontColors
Specifies the font color for the UI component -
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 noBorderIt set, it indicates that no borders should be drawn. -
tileBackground
public boolean tileBackgroundFlag that determines whether the background image should be tiled or scaled. -
showScrollBars
public boolean showScrollBarsUsed to specify whether a component should display scrollbars, particularly for the board view. -
fontName
Specify a non-standard font, or null to use default. -
fontSize
public int fontSizeSpecify a non-standard font size. Only used when a non-standard font name is specified. -
shouldBoldMouseOver
public boolean shouldBoldMouseOverUsed to specify if the font should be bolded on mouseover. Used for buttons.
-
-
Constructor Details
-
SkinSpecification
-
-
Method Details