< prev index next >
src/java.desktop/share/classes/javax/swing/border/BevelBorder.java
Print this page
*** 50,63 ****
--- 50,78 ----
/** Raised bevel type. */
public static final int RAISED = 0;
/** Lowered bevel type. */
public static final int LOWERED = 1;
+ /**
+ * The bevel type.
+ */
protected int bevelType;
+ /**
+ * The color to use for the bevel outer highlight.
+ */
protected Color highlightOuter;
+ /**
+ * The color to use for the bevel inner highlight.
+ */
protected Color highlightInner;
+ /**
+ * The color to use for the bevel inner shadow.
+ */
protected Color shadowInner;
+ /**
+ * the color to use for the bevel outer shadow
+ */
protected Color shadowOuter;
/**
* Creates a bevel border with the specified type and whose
* colors will be derived from the background color of the
*** 260,269 ****
--- 275,295 ----
*
* @return true
*/
public boolean isBorderOpaque() { return true; }
+ /**
+ * Paints a raised bevel for the specified component with the specified
+ * position and size.
+ *
+ * @param c the component for which the raised bevel is being painted
+ * @param g the paint graphics
+ * @param x the x position of the raised bevel
+ * @param y the y position of the raised bevel
+ * @param width the width of the raised bevel
+ * @param height the height of the raised bevel
+ */
protected void paintRaisedBevel(Component c, Graphics g, int x, int y,
int width, int height) {
Color oldColor = g.getColor();
int h = height;
int w = width;
*** 289,298 ****
--- 315,335 ----
g.translate(-x, -y);
g.setColor(oldColor);
}
+ /**
+ * Paints a lowered bevel for the specified component with the specified
+ * position and size.
+ *
+ * @param c the component for which the lowered bevel is being painted
+ * @param g the paint graphics
+ * @param x the x position of the lowered bevel
+ * @param y the y position of the lowered bevel
+ * @param width the width of the lowered bevel
+ * @param height the height of the lowered bevel
+ */
protected void paintLoweredBevel(Component c, Graphics g, int x, int y,
int width, int height) {
Color oldColor = g.getColor();
int h = height;
int w = width;
< prev index next >