Class DefaultButton
java.lang.Object
com.l2fprod.gui.plaf.skin.DefaultButton
- All Implemented Interfaces:
Serializable, Border, Icon, UIResource
Stretch/Tile Button.
- Version:
- $Revision: 1.4 $, $Date: 2005/11/19 09:16:31 $
- Author:
- $Author: l2fprod $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionDescription of the Fieldprotected intprotected intDescription of the FieldDescription of the FieldDescription of the Fieldprotected intprotected intprotected intprotected InsetsDescription of the Fieldprotected intprotected intDescription of the Fieldprotected intprotected intprotected booleanDescription of the Fieldprotected intprotected intDescription of the FieldDescription of the Field -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the DefaultButton objectDefaultButton(Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth) Constructor for the DefaultButton objectDefaultButton(Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth, boolean tile) Constructor for the DefaultButton objectDefaultButton(Image bitmap, Image gap, Image gap_start, Image gap_end, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth) DefaultButton(Image top, Image bottom, Image left, Image right, Image topLeft, Image topRight, Image bottomLeft, Image bottomRight) Constructor for the DefaultButton object -
Method Summary
Modifier and TypeMethodDescriptionGets the BorderInsets attribute of the DefaultButton objectGets the Disabled attribute of the DefaultButton objectintGets the Height attribute of the DefaultButton objectintGets the IconHeight attribute of the DefaultButton objectintGets the IconWidth attribute of the DefaultButton objectGets the Insets attribute of the DefaultButton objectGets the MinimumSize attribute of the DefaultButton objectGets the PreferredSize attribute of the DefaultButton objectGets the TopToBottom attribute of the DefaultButton objectintgetWidth()Gets the Width attribute of the DefaultButton objectbooleanGets the BorderOpaque attribute of the DefaultButton objectvoidDescription of the MethodvoidDescription of the MethodvoidDescription of the MethodvoidpaintBorder(Component b, Graphics g, int x, int y, int width, int height) Description of the MethodvoidvoidDescription of the MethodvoidpaintWindow(Graphics g, int width, int height, int windowX, int windowY, int windowWidth, int windowHeight, Component b) Description of the MethodvoidsetCenterFill(int mode) Sets the CenterFill attribute of the DefaultButton objecttoString()Description of the Method
-
Field Details
-
topleft
Description of the Field -
topright
Description of the Field -
bottomleft
Description of the Field -
bottomright
Description of the Field -
top
Description of the Field -
right
Description of the Field -
bottom
Description of the Field -
left
Description of the Field -
center
Description of the Field -
gap
-
gap_start
-
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
-
-
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 ParameterimageWidth- Description of ParameterimageHeight- Description of ParametertopHeight- Description of ParameterrightWidth- Description of ParameterbottomHeight- Description of ParameterleftWidth- Description of Parameter
-
DefaultButton
-
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 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(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 Details
-
paint
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
Gets the Disabled attribute of the DefaultButton object- Returns:
- The Disabled value
-
getTopToBottom
Gets the TopToBottom attribute of the DefaultButton object- Returns:
- The TopToBottom value
-
rotateCounterClockWise
Description of the Method- Returns:
- Description of the Returned Value
-
rotateClockWise
-
getMinimumSize
Gets the MinimumSize attribute of the DefaultButton object- Returns:
- The MinimumSize value
-
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 interfaceIcon- 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 interfaceIcon- Returns:
- The IconHeight value
-
getInsets
Gets the Insets attribute of the DefaultButton object- Returns:
- The Insets value
-
getBorderInsets
Gets the BorderInsets attribute of the DefaultButton object- Specified by:
getBorderInsetsin interfaceBorder- Parameters:
c- Description of Parameter- Returns:
- The BorderInsets value
-
isBorderOpaque
public boolean isBorderOpaque()Gets the BorderOpaque attribute of the DefaultButton object- Specified by:
isBorderOpaquein interfaceBorder- Returns:
- The BorderOpaque value
-
toString
-
paintIcon
-
paint
-
paint
-
paintBorder
Description of the Method- Specified by:
paintBorderin interfaceBorder- Parameters:
b- Description of Parameterg- Description of Parameterx- Description of Parametery- Description of Parameterwidth- Description of Parameterheight- Description of Parameter
-
paintGap
-
paintWindow
-