Package com.l2fprod.gui.plaf.skin
Class DefaultButton
- java.lang.Object
-
- com.l2fprod.gui.plaf.skin.DefaultButton
-
- All Implemented Interfaces:
java.io.Serializable,javax.swing.border.Border,javax.swing.Icon,javax.swing.plaf.UIResource
public class DefaultButton extends java.lang.Object implements javax.swing.Icon, javax.swing.border.Border, javax.swing.plaf.UIResource, java.io.SerializableStretch/Tile Button.- Version:
- $Revision: 1.4 $, $Date: 2005/11/19 09:16:31 $
- Author:
- $Author: l2fprod $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.awt.ImagebottomDescription of the Fieldprotected intbottom_fillprotected intbottomHeightjava.awt.ImagebottomleftDescription of the Fieldjava.awt.ImagebottomrightDescription of the Fieldjava.awt.ImagecenterDescription of the Fieldprotected intcenter_filljava.awt.Imagegapjava.awt.Imagegap_endjava.awt.Imagegap_startprotected intimageHeightprotected intimageWidthprotected java.awt.Insetsinsetsjava.awt.ImageleftDescription of the Fieldprotected intleft_fillprotected intleftWidthjava.awt.ImagerightDescription of the Fieldprotected intright_fillprotected intrightWidthprotected booleantilejava.awt.ImagetopDescription of the Fieldprotected inttop_fillprotected inttopHeightjava.awt.ImagetopleftDescription of the Fieldjava.awt.ImagetoprightDescription of the Field
-
Constructor Summary
Constructors Constructor Description DefaultButton()Constructor for the DefaultButton objectDefaultButton(java.awt.Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth)Constructor for the DefaultButton objectDefaultButton(java.awt.Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth, boolean tile)Constructor for the DefaultButton objectDefaultButton(java.awt.Image bitmap, java.awt.Image gap, java.awt.Image gap_start, java.awt.Image gap_end, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth)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)Constructor for the DefaultButton object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.InsetsgetBorderInsets(java.awt.Component c)Gets the BorderInsets attribute of the DefaultButton objectDefaultButtongetDisabled()Gets the Disabled attribute of the DefaultButton objectintgetHeight()Gets the Height attribute of the DefaultButton objectintgetIconHeight()Gets the IconHeight attribute of the DefaultButton objectintgetIconWidth()Gets the IconWidth attribute of the DefaultButton objectjava.awt.InsetsgetInsets()Gets the Insets attribute of the DefaultButton objectjava.awt.DimensiongetMinimumSize()Gets the MinimumSize attribute of the DefaultButton objectjava.awt.DimensiongetPreferredSize()Gets the PreferredSize attribute of the DefaultButton objectDefaultButtongetTopToBottom()Gets the TopToBottom attribute of the DefaultButton objectintgetWidth()Gets the Width attribute of the DefaultButton objectbooleanisBorderOpaque()Gets the BorderOpaque attribute of the DefaultButton objectvoidpaint(java.awt.Graphics g, int x, int y, int width, int height, java.awt.Component b)Description of the Methodvoidpaint(java.awt.Graphics g, int x, int y, java.awt.Component b)Description of the Methodvoidpaint(java.awt.Graphics g, java.awt.Component b)Description of the MethodvoidpaintBorder(java.awt.Component b, java.awt.Graphics g, int x, int y, int width, int height)Description of the MethodvoidpaintGap(java.awt.Graphics g, int x, int y, int width, java.awt.Component b)voidpaintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)Description of the MethodvoidpaintWindow(java.awt.Graphics g, int width, int height, int windowX, int windowY, int windowWidth, int windowHeight, java.awt.Component b)DefaultButtonrotateClockWise()DefaultButtonrotateCounterClockWise()Description of the MethodvoidsetCenterFill(int mode)Sets the CenterFill attribute of the DefaultButton objectjava.lang.StringtoString()Description of the Method
-
-
-
Field Detail
-
topleft
public transient java.awt.Image topleft
Description of the Field
-
topright
public transient java.awt.Image topright
Description of the Field
-
bottomleft
public transient java.awt.Image bottomleft
Description of the Field
-
bottomright
public transient java.awt.Image bottomright
Description of the Field
-
top
public transient java.awt.Image top
Description of the Field
-
right
public transient java.awt.Image right
Description of the Field
-
bottom
public transient java.awt.Image bottom
Description of the Field
-
left
public transient java.awt.Image left
Description of the Field
-
center
public transient java.awt.Image center
Description of the Field
-
gap
public transient java.awt.Image gap
-
gap_start
public transient java.awt.Image gap_start
-
gap_end
public transient java.awt.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 java.awt.Insets insets
-
-
Constructor Detail
-
DefaultButton
public DefaultButton()
Constructor for the DefaultButton object
-
DefaultButton
public DefaultButton(java.awt.Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth)Constructor for the DefaultButton object- Parameters:
bitmap- Description of ParameterimageWidth- Description of ParameterimageHeight- Description of ParametertopHeight- Description of ParameterrightWidth- Description of ParameterbottomHeight- Description of ParameterleftWidth- Description of Parameter
-
DefaultButton
public DefaultButton(java.awt.Image bitmap, java.awt.Image gap, java.awt.Image gap_start, java.awt.Image gap_end, 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)Constructor for the DefaultButton object- Parameters:
top- Description of Parameterbottom- Description of Parameterleft- Description of Parameterright- Description of ParametertopLeft- Description of ParametertopRight- Description of ParameterbottomLeft- Description of ParameterbottomRight- Description of Parameter
-
DefaultButton
public DefaultButton(java.awt.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 ParameterimageWidth- Description of ParameterimageHeight- Description of ParametertopHeight- Description of ParameterrightWidth- Description of ParameterbottomHeight- Description of ParameterleftWidth- Description of Parametertile- Description of Parameter
-
-
Method Detail
-
paint
public void paint(java.awt.Graphics g, int x, int y, int width, int height, java.awt.Component b)Description of the Method- Parameters:
g- Description of Parameterx- Description of Parametery- Description of Parameterwidth- Description of Parameterheight- Description of Parameterb- 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 java.awt.Dimension getMinimumSize()
Gets the MinimumSize attribute of the DefaultButton object- Returns:
- The MinimumSize value
-
getPreferredSize
public java.awt.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:
getIconWidthin interfacejavax.swing.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:
getIconHeightin interfacejavax.swing.Icon- Returns:
- The IconHeight value
-
getInsets
public java.awt.Insets getInsets()
Gets the Insets attribute of the DefaultButton object- Returns:
- The Insets value
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
Gets the BorderInsets attribute of the DefaultButton object- Specified by:
getBorderInsetsin interfacejavax.swing.border.Border- Parameters:
c- Description of Parameter- Returns:
- The BorderInsets value
-
isBorderOpaque
public boolean isBorderOpaque()
Gets the BorderOpaque attribute of the DefaultButton object- Specified by:
isBorderOpaquein interfacejavax.swing.border.Border- Returns:
- The BorderOpaque value
-
toString
public java.lang.String toString()
Description of the Method- Overrides:
toStringin classjava.lang.Object- Returns:
- Description of the Returned Value
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)Description of the Method- Specified by:
paintIconin interfacejavax.swing.Icon- Parameters:
c- Description of Parameterg- Description of Parameterx- Description of Parametery- Description of Parameter
-
paint
public void paint(java.awt.Graphics g, java.awt.Component b)Description of the Method- Parameters:
g- Description of Parameterb- Description of Parameter
-
paint
public void paint(java.awt.Graphics g, int x, int y, java.awt.Component b)Description of the Method- Parameters:
g- Description of Parameterx- Description of Parametery- Description of Parameterb- Description of Parameter
-
paintBorder
public void paintBorder(java.awt.Component b, java.awt.Graphics g, int x, int y, int width, int height)Description of the Method- Specified by:
paintBorderin interfacejavax.swing.border.Border- Parameters:
b- Description of Parameterg- Description of Parameterx- Description of Parametery- Description of Parameterwidth- Description of Parameterheight- Description of Parameter
-
paintGap
public void paintGap(java.awt.Graphics g, int x, int y, int width, java.awt.Component b)
-
paintWindow
public void paintWindow(java.awt.Graphics g, int width, int height, int windowX, int windowY, int windowWidth, int windowHeight, java.awt.Component b)
-
-