Class TextureUtils

java.lang.Object
com.jtattoo.plaf.texture.TextureUtils

public final class TextureUtils extends Object

TextureUtils class.

Author Michael Hagen
  • Field Details

    • WINDOW_TEXTURE_TYPE

      public static final int WINDOW_TEXTURE_TYPE
      Constant WINDOW_TEXTURE_TYPE=0
      See Also:
    • BACKGROUND_TEXTURE_TYPE

      public static final int BACKGROUND_TEXTURE_TYPE
      Constant BACKGROUND_TEXTURE_TYPE=1
      See Also:
    • ALTER_BACKGROUND_TEXTURE_TYPE

      public static final int ALTER_BACKGROUND_TEXTURE_TYPE
      Constant ALTER_BACKGROUND_TEXTURE_TYPE=2
      See Also:
    • SELECTED_TEXTURE_TYPE

      public static final int SELECTED_TEXTURE_TYPE
      Constant SELECTED_TEXTURE_TYPE=3
      See Also:
    • ROLLOVER_TEXTURE_TYPE

      public static final int ROLLOVER_TEXTURE_TYPE
      Constant ROLLOVER_TEXTURE_TYPE=4
      See Also:
    • PRESSED_TEXTURE_TYPE

      public static final int PRESSED_TEXTURE_TYPE
      Constant PRESSED_TEXTURE_TYPE=5
      See Also:
    • DISABLED_TEXTURE_TYPE

      public static final int DISABLED_TEXTURE_TYPE
      Constant DISABLED_TEXTURE_TYPE=6
      See Also:
    • LAST_TEXTURE_TYPE

      public static final int LAST_TEXTURE_TYPE
      Constant LAST_TEXTURE_TYPE=7
      See Also:
    • WINDOW_TEXTURE_KEY

      public static final String WINDOW_TEXTURE_KEY
      Constant WINDOW_TEXTURE_KEY="WindowTexture"
      See Also:
    • BACKGROUND_TEXTURE_KEY

      public static final String BACKGROUND_TEXTURE_KEY
      Constant BACKGROUND_TEXTURE_KEY="BackgroundTexture"
      See Also:
    • ALTER_BACKGROUND_TEXTURE_KEY

      public static final String ALTER_BACKGROUND_TEXTURE_KEY
      Constant ALTER_BACKGROUND_TEXTURE_KEY="AlterBackgroundTexture"
      See Also:
    • SELECTED_TEXTURE_KEY

      public static final String SELECTED_TEXTURE_KEY
      Constant SELECTED_TEXTURE_KEY="SelectedTexture"
      See Also:
    • ROLLOVER_TEXTURE_KEY

      public static final String ROLLOVER_TEXTURE_KEY
      Constant ROLLOVER_TEXTURE_KEY="RolloverTexture"
      See Also:
    • PRESSED_TEXTURE_KEY

      public static final String PRESSED_TEXTURE_KEY
      Constant PRESSED_TEXTURE_KEY="PressedTexture"
      See Also:
    • DISABLED_TEXTURE_KEY

      public static final String DISABLED_TEXTURE_KEY
      Constant DISABLED_TEXTURE_KEY="DisabledTexture"
      See Also:
  • Method Details

    • fillComponent

      public static void fillComponent(Graphics g, Component c, int textureType)

      fillComponent.

      Parameters:
      g - a Graphics object.
      c - a Component object.
      textureType - a Integer object.
    • fillComponent

      public static void fillComponent(Graphics g, Component c, int x, int y, int w, int h, int textureType)

      fillComponent.

      Parameters:
      g - a Graphics object.
      c - a Component object.
      x - a Integer object.
      y - a Integer object.
      w - a Integer object.
      h - a Integer object.
      textureType - a Integer object.
    • fillRect

      public static void fillRect(Graphics g, Component c, int x, int y, int w, int h, int textureType)

      fillRect.

      Parameters:
      g - a Graphics object.
      c - a Component object.
      x - a Integer object.
      y - a Integer object.
      w - a Integer object.
      h - a Integer object.
      textureType - a Integer object.
    • getTexture

      public static Icon getTexture(int textureType)

      getTexture.

      Parameters:
      textureType - a Integer object.
      Returns:
      a Icon object.
    • getTextureType

      public static int getTextureType(JComponent c)

      getTextureType.

      Parameters:
      c - a JComponent object.
      Returns:
      a Integer object.
    • setUpTextures

      public static void setUpTextures()

      setUpTextures.