SkinLF
Version 1.1

com.l2fprod.gui.plaf.skin
Class DefaultButton

java.lang.Object
  |
  +--com.l2fprod.gui.plaf.skin.DefaultButton
All Implemented Interfaces:
javax.swing.border.Border, javax.swing.Icon

public class DefaultButton
extends java.lang.Object
implements javax.swing.Icon, javax.swing.border.Border

Stretch/Tile Button.

Version:
$Revision: 1.6 $, $Date: 2001/07/26 21:06:47 $
Author:
$Author: l2fprod $

Field Summary
 java.awt.Image bottom
           
 java.awt.Image bottomleft
           
 java.awt.Image bottomright
           
 java.awt.Image center
           
 java.awt.Image left
           
 java.awt.Image right
           
 java.awt.Image top
           
 java.awt.Image topleft
           
 java.awt.Image topright
           
 
Constructor Summary
DefaultButton()
           
DefaultButton(java.awt.Image top, java.awt.Image bottom, java.awt.Image left, java.awt.Image right, java.awt.Image topLeft, java.awt.Image topRight, java.awt.Image bottomLeft, java.awt.Image bottomRight)
           
DefaultButton(java.awt.Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth)
           
DefaultButton(java.awt.Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth, boolean tile)
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 DefaultButton getDisabled()
           
 int getHeight()
           
 int getIconHeight()
           
 int getIconWidth()
           
 java.awt.Insets getInsets()
           
 java.awt.Dimension getMinimumSize()
           
 java.awt.Dimension getPreferredSize()
           
 int getWidth()
           
 boolean isBorderOpaque()
           
 void paint(java.awt.Graphics g, java.awt.Component b)
           
 void paint(java.awt.Graphics g, int x, int y, java.awt.Component b)
           
 void paint(java.awt.Graphics g, int x, int y, int width, int height, java.awt.Component b)
           
 void paintBorder(java.awt.Component b, java.awt.Graphics g, int x, int y, int width, int height)
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void setCenterFill(int mode)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

topleft

public java.awt.Image topleft

topright

public java.awt.Image topright

bottomleft

public java.awt.Image bottomleft

bottomright

public java.awt.Image bottomright

top

public java.awt.Image top

right

public java.awt.Image right

bottom

public java.awt.Image bottom

left

public java.awt.Image left

center

public java.awt.Image center
Constructor Detail

DefaultButton

public DefaultButton()

DefaultButton

public DefaultButton(java.awt.Image bitmap,
                     int imageWidth,
                     int imageHeight,
                     int topHeight,
                     int rightWidth,
                     int bottomHeight,
                     int leftWidth)

DefaultButton

public DefaultButton(java.awt.Image top,
                     java.awt.Image bottom,
                     java.awt.Image left,
                     java.awt.Image right,
                     java.awt.Image topLeft,
                     java.awt.Image topRight,
                     java.awt.Image bottomLeft,
                     java.awt.Image bottomRight)

DefaultButton

public DefaultButton(java.awt.Image bitmap,
                     int imageWidth,
                     int imageHeight,
                     int topHeight,
                     int rightWidth,
                     int bottomHeight,
                     int leftWidth,
                     boolean tile)
Method Detail

getDisabled

public DefaultButton getDisabled()

getMinimumSize

public java.awt.Dimension getMinimumSize()

getPreferredSize

public java.awt.Dimension getPreferredSize()

getWidth

public int getWidth()

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

getHeight

public int getHeight()

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

setCenterFill

public void setCenterFill(int mode)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon

paint

public void paint(java.awt.Graphics g,
                  java.awt.Component b)

paint

public void paint(java.awt.Graphics g,
                  int x,
                  int y,
                  java.awt.Component b)

getInsets

public java.awt.Insets getInsets()

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Specified by:
getBorderInsets in interface javax.swing.border.Border

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border

paintBorder

public void paintBorder(java.awt.Component b,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface javax.swing.border.Border

paint

public void paint(java.awt.Graphics g,
                  int x,
                  int y,
                  int width,
                  int height,
                  java.awt.Component b)

SkinLF
Version 1.1

www.L2FProd.com
© 2000-2001 L2FProd.com