Class DefaultButton

java.lang.Object
com.l2fprod.gui.plaf.skin.DefaultButton
All Implemented Interfaces:
Serializable, Border, Icon, UIResource

public class DefaultButton extends Object implements Icon, Border, UIResource, Serializable
Stretch/Tile Button.
Version:
$Revision: 1.4 $, $Date: 2005/11/19 09:16:31 $
Author:
$Author: l2fprod $
See Also:
  • Field Details

    • topleft

      public transient Image topleft
      Description of the Field
    • topright

      public transient Image topright
      Description of the Field
    • bottomleft

      public transient Image bottomleft
      Description of the Field
    • bottomright

      public transient Image bottomright
      Description of the Field
    • top

      public transient Image top
      Description of the Field
    • bottom

      public transient Image bottom
      Description of the Field
    • left

      public transient Image left
      Description of the Field
    • center

      public transient Image center
      Description of the Field
    • gap

      public transient Image gap
    • gap_start

      public transient Image gap_start
    • gap_end

      public transient Image gap_end
    • topHeight

      protected int topHeight
    • bottomHeight

      protected int bottomHeight
    • leftWidth

      protected int leftWidth
    • rightWidth

      protected int rightWidth
    • imageWidth

      protected int imageWidth
    • imageHeight

      protected int imageHeight
    • top_fill

      protected int top_fill
    • right_fill

      protected int right_fill
    • bottom_fill

      protected int bottom_fill
    • left_fill

      protected int left_fill
    • center_fill

      protected int center_fill
    • tile

      protected boolean tile
    • insets

      protected Insets insets
  • Constructor Details

    • DefaultButton

      public DefaultButton()
      Constructor for the DefaultButton object
    • DefaultButton

      public DefaultButton(Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth)
      Constructor for the DefaultButton object
      Parameters:
      bitmap - Description of Parameter
      imageWidth - Description of Parameter
      imageHeight - Description of Parameter
      topHeight - Description of Parameter
      rightWidth - Description of Parameter
      bottomHeight - Description of Parameter
      leftWidth - Description of Parameter
    • DefaultButton

      public DefaultButton(Image bitmap, Image gap, Image gap_start, Image gap_end, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth)
    • DefaultButton

      public DefaultButton(Image top, Image bottom, Image left, Image right, Image topLeft, Image topRight, Image bottomLeft, Image bottomRight)
      Constructor for the DefaultButton object
      Parameters:
      top - Description of Parameter
      bottom - Description of Parameter
      left - Description of Parameter
      right - Description of Parameter
      topLeft - Description of Parameter
      topRight - Description of Parameter
      bottomLeft - Description of Parameter
      bottomRight - Description of Parameter
    • DefaultButton

      public DefaultButton(Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth, boolean tile)
      Constructor for the DefaultButton object
      Parameters:
      bitmap - Description of Parameter
      imageWidth - Description of Parameter
      imageHeight - Description of Parameter
      topHeight - Description of Parameter
      rightWidth - Description of Parameter
      bottomHeight - Description of Parameter
      leftWidth - Description of Parameter
      tile - Description of Parameter
  • Method Details

    • paint

      public void paint(Graphics g, int x, int y, int width, int height, Component b)
      Description of the Method
      Parameters:
      g - Description of Parameter
      x - Description of Parameter
      y - Description of Parameter
      width - Description of Parameter
      height - Description of Parameter
      b - Description of Parameter
    • setCenterFill

      public void setCenterFill(int mode)
      Sets the CenterFill attribute of the DefaultButton object
      Parameters:
      mode - The new CenterFill value
    • getDisabled

      public DefaultButton getDisabled()
      Gets the Disabled attribute of the DefaultButton object
      Returns:
      The Disabled value
    • getTopToBottom

      public DefaultButton getTopToBottom()
      Gets the TopToBottom attribute of the DefaultButton object
      Returns:
      The TopToBottom value
    • rotateCounterClockWise

      public DefaultButton rotateCounterClockWise()
      Description of the Method
      Returns:
      Description of the Returned Value
    • rotateClockWise

      public DefaultButton rotateClockWise()
    • getMinimumSize

      public Dimension getMinimumSize()
      Gets the MinimumSize attribute of the DefaultButton object
      Returns:
      The MinimumSize value
    • getPreferredSize

      public Dimension getPreferredSize()
      Gets the PreferredSize attribute of the DefaultButton object
      Returns:
      The PreferredSize value
    • getWidth

      public int getWidth()
      Gets the Width attribute of the DefaultButton object
      Returns:
      The Width value
    • getIconWidth

      public int getIconWidth()
      Gets the IconWidth attribute of the DefaultButton object
      Specified by:
      getIconWidth in interface Icon
      Returns:
      The IconWidth value
    • getHeight

      public int getHeight()
      Gets the Height attribute of the DefaultButton object
      Returns:
      The Height value
    • getIconHeight

      public int getIconHeight()
      Gets the IconHeight attribute of the DefaultButton object
      Specified by:
      getIconHeight in interface Icon
      Returns:
      The IconHeight value
    • getInsets

      public Insets getInsets()
      Gets the Insets attribute of the DefaultButton object
      Returns:
      The Insets value
    • getBorderInsets

      public Insets getBorderInsets(Component c)
      Gets the BorderInsets attribute of the DefaultButton object
      Specified by:
      getBorderInsets in interface Border
      Parameters:
      c - Description of Parameter
      Returns:
      The BorderInsets value
    • isBorderOpaque

      public boolean isBorderOpaque()
      Gets the BorderOpaque attribute of the DefaultButton object
      Specified by:
      isBorderOpaque in interface Border
      Returns:
      The BorderOpaque value
    • toString

      public String toString()
      Description of the Method
      Overrides:
      toString in class Object
      Returns:
      Description of the Returned Value
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Description of the Method
      Specified by:
      paintIcon in interface Icon
      Parameters:
      c - Description of Parameter
      g - Description of Parameter
      x - Description of Parameter
      y - Description of Parameter
    • paint

      public void paint(Graphics g, Component b)
      Description of the Method
      Parameters:
      g - Description of Parameter
      b - Description of Parameter
    • paint

      public void paint(Graphics g, int x, int y, Component b)
      Description of the Method
      Parameters:
      g - Description of Parameter
      x - Description of Parameter
      y - Description of Parameter
      b - Description of Parameter
    • paintBorder

      public void paintBorder(Component b, Graphics g, int x, int y, int width, int height)
      Description of the Method
      Specified by:
      paintBorder in interface Border
      Parameters:
      b - Description of Parameter
      g - Description of Parameter
      x - Description of Parameter
      y - Description of Parameter
      width - Description of Parameter
      height - Description of Parameter
    • paintGap

      public void paintGap(Graphics g, int x, int y, int width, Component b)
    • paintWindow

      public void paintWindow(Graphics g, int width, int height, int windowX, int windowY, int windowWidth, int windowHeight, Component b)