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
Modifier and Type | Field | Description |
---|---|---|
java.awt.Image |
bottom |
Description of the Field
|
protected int |
bottom_fill |
|
protected int |
bottomHeight |
|
java.awt.Image |
bottomleft |
Description of the Field
|
java.awt.Image |
bottomright |
Description of the Field
|
java.awt.Image |
center |
Description of the Field
|
protected 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 Field
|
protected int |
left_fill |
|
protected int |
leftWidth |
|
java.awt.Image |
right |
Description of the Field
|
protected int |
right_fill |
|
protected int |
rightWidth |
|
protected boolean |
tile |
|
java.awt.Image |
top |
Description of the Field
|
protected int |
top_fill |
|
protected int |
topHeight |
|
java.awt.Image |
topleft |
Description of the Field
|
java.awt.Image |
topright |
Description of the Field
|
Constructor | Description |
---|---|
DefaultButton() |
Constructor for the DefaultButton object
|
DefaultButton(java.awt.Image bitmap,
int imageWidth,
int imageHeight,
int topHeight,
int rightWidth,
int bottomHeight,
int leftWidth) |
Constructor for the DefaultButton object
|
DefaultButton(java.awt.Image bitmap,
int imageWidth,
int imageHeight,
int topHeight,
int rightWidth,
int bottomHeight,
int leftWidth,
boolean tile) |
Constructor for the DefaultButton object
|
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(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
|
Modifier and Type | Method | Description |
---|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c) |
Gets the BorderInsets attribute of the DefaultButton object
|
DefaultButton |
getDisabled() |
Gets the Disabled attribute of the DefaultButton object
|
int |
getHeight() |
Gets the Height attribute of the DefaultButton object
|
int |
getIconHeight() |
Gets the IconHeight attribute of the DefaultButton object
|
int |
getIconWidth() |
Gets the IconWidth attribute of the DefaultButton object
|
java.awt.Insets |
getInsets() |
Gets the Insets attribute of the DefaultButton object
|
java.awt.Dimension |
getMinimumSize() |
Gets the MinimumSize attribute of the DefaultButton object
|
java.awt.Dimension |
getPreferredSize() |
Gets the PreferredSize attribute of the DefaultButton object
|
DefaultButton |
getTopToBottom() |
Gets the TopToBottom attribute of the DefaultButton object
|
int |
getWidth() |
Gets the Width attribute of the DefaultButton object
|
boolean |
isBorderOpaque() |
Gets the BorderOpaque attribute of the DefaultButton object
|
void |
paint(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Component b) |
Description of the Method
|
void |
paint(java.awt.Graphics g,
int x,
int y,
java.awt.Component b) |
Description of the Method
|
void |
paint(java.awt.Graphics g,
java.awt.Component b) |
Description of the Method
|
void |
paintBorder(java.awt.Component b,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
Description of the Method
|
void |
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 Method
|
void |
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 Method
|
void |
setCenterFill(int mode) |
Sets the CenterFill attribute of the DefaultButton object
|
java.lang.String |
toString() |
Description of the Method
|
public transient java.awt.Image topleft
public transient java.awt.Image topright
public transient java.awt.Image bottomleft
public transient java.awt.Image bottomright
public transient java.awt.Image top
public transient java.awt.Image right
public transient java.awt.Image bottom
public transient java.awt.Image left
public transient java.awt.Image center
public transient java.awt.Image gap
public transient java.awt.Image gap_start
public transient java.awt.Image gap_end
protected int topHeight
protected int bottomHeight
protected int leftWidth
protected int rightWidth
protected int imageWidth
protected int imageHeight
protected int top_fill
protected int right_fill
protected int bottom_fill
protected int left_fill
protected int center_fill
protected boolean tile
protected java.awt.Insets insets
public DefaultButton()
public DefaultButton(java.awt.Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth)
bitmap
- Description of ParameterimageWidth
- Description of ParameterimageHeight
- Description of ParametertopHeight
- Description of ParameterrightWidth
- Description of ParameterbottomHeight
- Description of ParameterleftWidth
- Description of Parameterpublic 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)
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)
top
- Description of Parameterbottom
- Description of Parameterleft
- Description of Parameterright
- Description of ParametertopLeft
- Description of ParametertopRight
- Description of ParameterbottomLeft
- Description of ParameterbottomRight
- Description of Parameterpublic DefaultButton(java.awt.Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth, boolean tile)
bitmap
- Description of ParameterimageWidth
- Description of ParameterimageHeight
- Description of ParametertopHeight
- Description of ParameterrightWidth
- Description of ParameterbottomHeight
- Description of ParameterleftWidth
- Description of Parametertile
- Description of Parameterpublic void paint(java.awt.Graphics g, int x, int y, int width, int height, java.awt.Component b)
g
- Description of Parameterx
- Description of Parametery
- Description of Parameterwidth
- Description of Parameterheight
- Description of Parameterb
- Description of Parameterpublic void setCenterFill(int mode)
mode
- The new CenterFill valuepublic DefaultButton getDisabled()
public DefaultButton getTopToBottom()
public DefaultButton rotateCounterClockWise()
public DefaultButton rotateClockWise()
public java.awt.Dimension getMinimumSize()
public java.awt.Dimension getPreferredSize()
public int getWidth()
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getHeight()
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public java.awt.Insets getInsets()
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
in interface javax.swing.border.Border
c
- Description of Parameterpublic boolean isBorderOpaque()
isBorderOpaque
in interface javax.swing.border.Border
public java.lang.String toString()
toString
in class java.lang.Object
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
c
- Description of Parameterg
- Description of Parameterx
- Description of Parametery
- Description of Parameterpublic void paint(java.awt.Graphics g, java.awt.Component b)
g
- Description of Parameterb
- Description of Parameterpublic void paint(java.awt.Graphics g, int x, int y, java.awt.Component b)
g
- Description of Parameterx
- Description of Parametery
- Description of Parameterb
- Description of Parameterpublic void paintBorder(java.awt.Component b, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
b
- Description of Parameterg
- Description of Parameterx
- Description of Parametery
- Description of Parameterwidth
- Description of Parameterheight
- Description of Parameterpublic void paintGap(java.awt.Graphics g, int x, int y, int width, java.awt.Component b)
public void paintWindow(java.awt.Graphics g, int width, int height, int windowX, int windowY, int windowWidth, int windowHeight, java.awt.Component b)