Package com.jtattoo.plaf.texture
Class TextureUtils
java.lang.Object
com.jtattoo.plaf.texture.TextureUtils
TextureUtils class.
Author Michael Hagen-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Constant ALTER_BACKGROUND_TEXTURE_KEY="AlterBackgroundTexture"static final int
Constant ALTER_BACKGROUND_TEXTURE_TYPE=2static final String
Constant BACKGROUND_TEXTURE_KEY="BackgroundTexture"static final int
Constant BACKGROUND_TEXTURE_TYPE=1static final String
Constant DISABLED_TEXTURE_KEY="DisabledTexture"static final int
Constant DISABLED_TEXTURE_TYPE=6static final int
Constant LAST_TEXTURE_TYPE=7static final String
Constant MENUBAR_TEXTURE_KEY="MenubarTexture"static final int
Constant MENUBAR_TEXTURE_TYPE=7static final String
Constant PRESSED_TEXTURE_KEY="PressedTexture"static final int
Constant PRESSED_TEXTURE_TYPE=5static final String
Constant ROLLOVER_TEXTURE_KEY="RolloverTexture"static final int
Constant ROLLOVER_TEXTURE_TYPE=4static final String
Constant SELECTED_TEXTURE_KEY="SelectedTexture"static final int
Constant SELECTED_TEXTURE_TYPE=3static final String
Constant WINDOW_TEXTURE_KEY="WindowTexture"static final int
Constant WINDOW_TEXTURE_TYPE=0 -
Method Summary
Modifier and TypeMethodDescriptionstatic void
fillComponent
(Graphics g, Component c, int textureType) fillComponent.static void
fillComponent
(Graphics g, Component c, int x, int y, int w, int h, int textureType) fillComponent.static void
fillRect.static Icon
getTexture
(int textureType) getTexture.static int
getTextureType.static void
setUpTextures.
-
Field Details
-
WINDOW_TEXTURE_TYPE
public static final int WINDOW_TEXTURE_TYPEConstant WINDOW_TEXTURE_TYPE=0- See Also:
-
BACKGROUND_TEXTURE_TYPE
public static final int BACKGROUND_TEXTURE_TYPEConstant BACKGROUND_TEXTURE_TYPE=1- See Also:
-
ALTER_BACKGROUND_TEXTURE_TYPE
public static final int ALTER_BACKGROUND_TEXTURE_TYPEConstant ALTER_BACKGROUND_TEXTURE_TYPE=2- See Also:
-
SELECTED_TEXTURE_TYPE
public static final int SELECTED_TEXTURE_TYPEConstant SELECTED_TEXTURE_TYPE=3- See Also:
-
ROLLOVER_TEXTURE_TYPE
public static final int ROLLOVER_TEXTURE_TYPEConstant ROLLOVER_TEXTURE_TYPE=4- See Also:
-
PRESSED_TEXTURE_TYPE
public static final int PRESSED_TEXTURE_TYPEConstant PRESSED_TEXTURE_TYPE=5- See Also:
-
DISABLED_TEXTURE_TYPE
public static final int DISABLED_TEXTURE_TYPEConstant DISABLED_TEXTURE_TYPE=6- See Also:
-
MENUBAR_TEXTURE_TYPE
public static final int MENUBAR_TEXTURE_TYPEConstant MENUBAR_TEXTURE_TYPE=7- See Also:
-
LAST_TEXTURE_TYPE
public static final int LAST_TEXTURE_TYPEConstant LAST_TEXTURE_TYPE=7- See Also:
-
WINDOW_TEXTURE_KEY
Constant WINDOW_TEXTURE_KEY="WindowTexture"- See Also:
-
BACKGROUND_TEXTURE_KEY
Constant BACKGROUND_TEXTURE_KEY="BackgroundTexture"- See Also:
-
ALTER_BACKGROUND_TEXTURE_KEY
Constant ALTER_BACKGROUND_TEXTURE_KEY="AlterBackgroundTexture"- See Also:
-
SELECTED_TEXTURE_KEY
Constant SELECTED_TEXTURE_KEY="SelectedTexture"- See Also:
-
ROLLOVER_TEXTURE_KEY
Constant ROLLOVER_TEXTURE_KEY="RolloverTexture"- See Also:
-
PRESSED_TEXTURE_KEY
Constant PRESSED_TEXTURE_KEY="PressedTexture"- See Also:
-
DISABLED_TEXTURE_KEY
Constant DISABLED_TEXTURE_KEY="DisabledTexture"- See Also:
-
MENUBAR_TEXTURE_KEY
Constant MENUBAR_TEXTURE_KEY="MenubarTexture"- See Also:
-
-
Method Details
-
fillComponent
fillComponent.
-
fillComponent
public static void fillComponent(Graphics g, Component c, int x, int y, int w, int h, int textureType) fillComponent.
-
fillRect
fillRect.
-
getTexture
getTexture.
-
getTextureType
getTextureType.
- Parameters:
c
- aJComponent
object.- Returns:
- a
Integer
object.
-
setUpTextures
public static void setUpTextures()setUpTextures.
-