oracle.ide.controls
Class ThinBevel
java.lang.Object
|
+--javax.swing.border.AbstractBorder
|
+--javax.swing.border.BevelBorder
|
+--oracle.ide.controls.ThinBevel
- All Implemented Interfaces:
- javax.swing.border.Border, java.io.Serializable
- public class ThinBevel
- extends javax.swing.border.BevelBorder
ThinBevel
is the same as a BevelBorder
, except that
its thickness is 1 pixel instead of 2 pixels. The lowered bevel is
rendered with a slightly brighter inner shadow color than the corresponding
outer shadow color, to give the subtle effect that the
pressed button has a shallower depth than the apparent height
of the unpressed button.
- See Also:
- Serialized Form
Fields inherited from class javax.swing.border.BevelBorder |
bevelType, highlightInner, highlightOuter, LOWERED, RAISED, shadowInner, shadowOuter |
Method Summary |
java.awt.Insets |
getBorderInsets(java.awt.Component c)
|
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
|
protected void |
paintLoweredBevel(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
|
protected void |
paintRaisedBevel(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
|
Methods inherited from class javax.swing.border.BevelBorder |
getBevelType, getHighlightInnerColor, getHighlightInnerColor, getHighlightOuterColor, getHighlightOuterColor, getShadowInnerColor, getShadowInnerColor, getShadowOuterColor, getShadowOuterColor, isBorderOpaque, paintBorder |
Methods inherited from class javax.swing.border.AbstractBorder |
getInteriorRectangle, getInteriorRectangle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThinBevel
public ThinBevel(int type)
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Overrides:
getBorderInsets
in class javax.swing.border.BevelBorder
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
- Overrides:
getBorderInsets
in class javax.swing.border.BevelBorder
paintRaisedBevel
protected void paintRaisedBevel(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
- Overrides:
paintRaisedBevel
in class javax.swing.border.BevelBorder
paintLoweredBevel
protected void paintLoweredBevel(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
- Overrides:
paintLoweredBevel
in class javax.swing.border.BevelBorder