|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.border.BevelBorder
org.ascape.util.swing.ShadowBorder
public class ShadowBorder
A class which implements a shadow border, or BevelBorder of thickness 1. Copied from sun's BevelBorder.
| Field Summary |
|---|
| Fields inherited from class javax.swing.border.BevelBorder |
|---|
bevelType, highlightInner, highlightOuter, LOWERED, RAISED, shadowInner, shadowOuter |
| Constructor Summary | |
|---|---|
ShadowBorder(int bevelType)
Creates a bevel border with the specified type and whose colors will be derived from the background color of the component passed into the paintBorder method. |
|
ShadowBorder(int bevelType,
java.awt.Color highlight,
java.awt.Color shadow)
Creates a bevel border with the specified type, highlight and shadow colors. |
|
ShadowBorder(int bevelType,
java.awt.Color highlightOuter,
java.awt.Color highlightInner,
java.awt.Color shadowOuter,
java.awt.Color shadowInner)
Creates a bevel border with the specified type, highlight shadow colors. |
|
| Method Summary | |
|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Returns the insets of the border. |
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
Reinitialize the insets parameter with this Border's current Insets. |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
protected void |
paintLoweredBevel(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
protected void |
paintRaisedBevel(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
| Methods inherited from class javax.swing.border.BevelBorder |
|---|
getBevelType, getHighlightInnerColor, getHighlightInnerColor, getHighlightOuterColor, getHighlightOuterColor, getShadowInnerColor, getShadowInnerColor, getShadowOuterColor, getShadowOuterColor, isBorderOpaque |
| 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 |
| Constructor Detail |
|---|
public ShadowBorder(int bevelType)
bevelType - the type of bevel for the border
public ShadowBorder(int bevelType,
java.awt.Color highlight,
java.awt.Color shadow)
bevelType - the type of bevel for the borderhighlight - the color to use for the bevel highlightshadow - the color to use for the bevel shadow
public ShadowBorder(int bevelType,
java.awt.Color highlightOuter,
java.awt.Color highlightInner,
java.awt.Color shadowOuter,
java.awt.Color shadowInner)
bevelType - the type of bevel for the borderhighlightOuter - the color to use for the bevel outer highlighthighlightInner - the color to use for the bevel inner highlightshadowOuter - the color to use for the bevel outer shadowshadowInner - the color to use for the bevel inner shadow| Method Detail |
|---|
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.BevelBorderc - the component for which this border insets value applies
public java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
getBorderInsets in class javax.swing.border.BevelBorderc - the component for which this border insets value appliesinsets - the object to be reinitialized
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.BevelBorderc - the component for which this border is being paintedg - the paint graphicsx - the x position of the painted bordery - the y position of the painted borderwidth - the width of the painted borderheight - the height of the painted border
protected void paintRaisedBevel(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintRaisedBevel in class javax.swing.border.BevelBorder
protected void paintLoweredBevel(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintLoweredBevel in class javax.swing.border.BevelBorder
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||