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.Serializable
Stretch/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.Image
bottom
Description of the Fieldprotected int
bottom_fill
protected int
bottomHeight
java.awt.Image
bottomleft
Description of the Fieldjava.awt.Image
bottomright
Description of the Fieldjava.awt.Image
center
Description of the Fieldprotected int
center_fill
java.awt.Image
gap
java.awt.Image
gap_end
java.awt.Image
gap_start
protected int
imageHeight
protected int
imageWidth
protected java.awt.Insets
insets
java.awt.Image
left
Description of the Fieldprotected int
left_fill
protected int
leftWidth
java.awt.Image
right
Description of the Fieldprotected int
right_fill
protected int
rightWidth
protected boolean
tile
java.awt.Image
top
Description of the Fieldprotected int
top_fill
protected int
topHeight
java.awt.Image
topleft
Description of the Fieldjava.awt.Image
topright
Description 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.Insets
getBorderInsets(java.awt.Component c)
Gets the BorderInsets attribute of the DefaultButton objectDefaultButton
getDisabled()
Gets the Disabled attribute of the DefaultButton objectint
getHeight()
Gets the Height attribute of the DefaultButton objectint
getIconHeight()
Gets the IconHeight attribute of the DefaultButton objectint
getIconWidth()
Gets the IconWidth attribute of the DefaultButton objectjava.awt.Insets
getInsets()
Gets the Insets attribute of the DefaultButton objectjava.awt.Dimension
getMinimumSize()
Gets the MinimumSize attribute of the DefaultButton objectjava.awt.Dimension
getPreferredSize()
Gets the PreferredSize attribute of the DefaultButton objectDefaultButton
getTopToBottom()
Gets the TopToBottom attribute of the DefaultButton objectint
getWidth()
Gets the Width attribute of the DefaultButton objectboolean
isBorderOpaque()
Gets the BorderOpaque attribute of the DefaultButton objectvoid
paint(java.awt.Graphics g, int x, int y, int width, int height, java.awt.Component b)
Description of the Methodvoid
paint(java.awt.Graphics g, int x, int y, java.awt.Component b)
Description of the Methodvoid
paint(java.awt.Graphics g, java.awt.Component b)
Description of the Methodvoid
paintBorder(java.awt.Component b, java.awt.Graphics g, int x, int y, int width, int height)
Description of the Methodvoid
paintGap(java.awt.Graphics g, int x, int y, int width, java.awt.Component b)
void
paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
Description of the Methodvoid
paintWindow(java.awt.Graphics g, int width, int height, int windowX, int windowY, int windowWidth, int windowHeight, java.awt.Component b)
DefaultButton
rotateClockWise()
DefaultButton
rotateCounterClockWise()
Description of the Methodvoid
setCenterFill(int mode)
Sets the CenterFill attribute of the DefaultButton objectjava.lang.String
toString()
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:
getIconWidth
in 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:
getIconHeight
in 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:
getBorderInsets
in 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:
isBorderOpaque
in interfacejavax.swing.border.Border
- Returns:
- The BorderOpaque value
-
toString
public java.lang.String toString()
Description of the Method- Overrides:
toString
in 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:
paintIcon
in 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:
paintBorder
in 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)
-
-