public class V3DButtonBorder extends V3DBorder
V3DButtonBorder class implements a 3-D highlighted
border for the buttons. The border has a style, the trigger style or
the toggle style. The border creates different visual presentations
according to the style.VButton,
VButton.TRIGGER,
VButton.TOGGLE,
直列化された形式| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int |
style
The style of the border.
|
protected boolean |
thin
True if the border is thin.
|
| コンストラクタと説明 |
|---|
V3DButtonBorder()
Constructs a raised border with the trigger style.
|
V3DButtonBorder(boolean raised)
Constructs a border with the trigger style, and the specified
boolean that determines the border to be raised or sunk.
|
V3DButtonBorder(boolean raised,
int style)
Constructs a border with the specified boolean that determines
the border to be raised or sunk, and the specified style.
|
V3DButtonBorder(boolean raised,
int style,
boolean thin)
Constructs a border with the specified boolean that determines
the border to be raised or sunk, and the specified style.
|
V3DButtonBorder(int style)
Constructs a raised border with the specified style.
|
V3DButtonBorder(int width,
int height)
Constructs a raised border with the trigger style, and the
specified width and height.
|
V3DButtonBorder(int width,
int height,
boolean raised)
Constructs a border with the trigger style, the specified width
and height, and the specified boolean that determines the border
to be raised or sunk,
|
V3DButtonBorder(int width,
int height,
boolean raised,
int style)
Constructs a border with the specified width and height,
the specified boolean that determines the border to be
raised or sunk, and the specified style.
|
V3DButtonBorder(int width,
int height,
boolean raised,
int style,
boolean thin)
Constructs a border with the specified width and height,
the specified boolean that determines the border to be
raised or sunk, and the specified style.
|
V3DButtonBorder(int width,
int height,
int style)
Constructs a raised border with the specified width and height,
and the specified style.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.Object |
clone()
Returns a clone of this pane border.
|
java.awt.Insets |
getInsets()
Returns the insets of this 3-D border.
|
int |
getStyle()
Returns the style of the border.
|
protected void |
paintRaised(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the raised 3-D border at the specified location,
with the specified dimension.
|
protected void |
paintSunk(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the sunk 3-D border at the specified location,
with the specified dimension.
|
void |
setStyle(int style)
Sets the style of the border to the specified style.
|
isRaised, paint, paintBottomRight, paintTopLeft, setRaisedgetSize, isResizable, setSizeprotected int style
protected boolean thin
public V3DButtonBorder()
public V3DButtonBorder(boolean raised)
raised - if true, the border is raised; otherwise, sunk.public V3DButtonBorder(int style)
style - the style of the border.public V3DButtonBorder(boolean raised,
int style)
raised - if true, the border is raised; otherwise, sunk.style - the style of the border.public V3DButtonBorder(boolean raised,
int style,
boolean thin)
raised - if true, the border is raised; otherwise, sunk.style - the style of the border.thin - if true, the border is thin.public V3DButtonBorder(int width,
int height)
width - the width of the border.height - the height of the border.public V3DButtonBorder(int width,
int height,
boolean raised)
width - the width of the border.height - the height of the border.raised - if true, the border is raised; otherwise, sunk.public V3DButtonBorder(int width,
int height,
int style)
width - the width of the border.height - the height of the border.style - the style of the border.public V3DButtonBorder(int width,
int height,
boolean raised,
int style)
width - the width of the border.height - the height of the border.raised - if true, the border is raised; otherwise, sunk.style - the style of the border.public V3DButtonBorder(int width,
int height,
boolean raised,
int style,
boolean thin)
width - the width of the border.height - the height of the border.raised - if true, the border is raised; otherwise, sunk.style - the style of the border.thin - if true, the border is thin.public java.awt.Insets getInsets()
getInsets クラス内 V3DBorderVBorder.getInsets()public int getStyle()
VButton.TRIGGER,
VButton.TOGGLEpublic void setStyle(int style)
style - the style of the border.VButton.TRIGGER,
VButton.TOGGLEpublic java.lang.Object clone()
clone インタフェース内 Visualizableclone クラス内 V3DBorderprotected void paintRaised(java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintRaised クラス内 V3DBorder