public class V3DBorder extends VBorder
V3DBorder class implements a 3-D highlighted border.
The 3-D border has a raised state. The 3-D border creates different
visual presentations according to the raised state.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
raised
The boolean that determines whether the 3-D border appears to be
raised above the surface or sunk into the surface.
|
| コンストラクタと説明 |
|---|
V3DBorder()
Constructs a raised 3-D border.
|
V3DBorder(boolean raised)
Constructs a 3-D border with and the boolean that determines
the 3-D border to be raised or sunk.
|
V3DBorder(int width,
int height)
Constructs a raised 3-D border with the specified width and height.
|
V3DBorder(int width,
int height,
boolean raised)
Constructs a 3-D border with the specified width and height,
and the boolean that determines the 3-D border to be raised or sunk.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.Object |
clone()
Returns a clone of this pane border.
|
java.awt.Insets |
getInsets()
Returns the insets of this 3-D border.
|
boolean |
isRaised()
Checks whether this 3-D border appears to be raised or sunk.
|
void |
paint(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the 3-D border at the specified location,
with the specified dimension.
|
protected void |
paintBottomRight(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Color outer,
java.awt.Color inner)
Paints the bottom and right corners at the specified location,
the specified dimension, and the specified colors.
|
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.
|
protected void |
paintTopLeft(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Color outer,
java.awt.Color inner)
Paints the top and left corners at the specified location,
the specified dimension, and the specified colors.
|
void |
setRaised(boolean raised)
Sets this 3-D border to be raised or sunk.
|
getSize, isResizable, setSizeprotected boolean raised
public V3DBorder()
public V3DBorder(boolean raised)
raised - if true, the 3-D border is raised; otherwise, sunk.public V3DBorder(int width,
int height)
width - the width of the 3-D border.height - the height of the 3-D border.public V3DBorder(int width,
int height,
boolean raised)
width - the width of the 3-D border.height - the height of the 3-D border.raised - if true, the 3-D border is raised; otherwise, sunk.public java.awt.Insets getInsets()
getInsets クラス内 VBorderVBorder.getInsets()public boolean isRaised()
true if this 3-D border appears to be raised;
false otherwise (to be sunk).public void setRaised(boolean raised)
raised - if true, this 3-D border is raised; otherwise, sunk.public void paint(java.awt.Graphics g,
int x,
int y,
int width,
int height)
paint クラス内 VBorderg - the graphics.x - the x location in the graphics.y - the y location in the graphics.width - the width of border.height - the height to border.VBorder.paint(java.awt.Graphics, int, int, int, int)public java.lang.Object clone()
clone インタフェース内 Visualizableclone クラス内 VObjectprotected void paintRaised(java.awt.Graphics g,
int x,
int y,
int width,
int height)
protected void paintSunk(java.awt.Graphics g,
int x,
int y,
int width,
int height)
protected void paintTopLeft(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Color outer,
java.awt.Color inner)
protected void paintBottomRight(java.awt.Graphics g,
int x,
int y,
int width,
int height,
java.awt.Color outer,
java.awt.Color inner)