java.lang.Object
javax.swing.border.AbstractBorder
org.gtk.java.swing.plaf.gtk.GtkBorders.FrameBorder
- All Implemented Interfaces:
- javax.swing.border.Border, java.io.Serializable, javax.swing.plaf.UIResource
- Direct Known Subclasses:
- GtkBorders.InternalFrameBorder
- Enclosing class:
- GtkBorders
- public static class GtkBorders.FrameBorder
- extends javax.swing.border.AbstractBorder
- implements javax.swing.plaf.UIResource
|
Method Summary |
javax.swing.JComponent |
component()
Returns the FrameBorder's JComponent. |
protected boolean |
drawBottomBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draws the FrameBorder's bottom border. |
protected boolean |
drawLeftBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draws the FrameBorder's left border. |
protected boolean |
drawRightBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draws the FrameBorder's right border. |
protected boolean |
drawTopBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draws the FrameBorder's top border. |
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Returns the insets required for drawing this border around the specified
component. |
protected java.awt.Color |
getFrameColor()
|
protected java.awt.Color |
getFrameHighlight()
|
protected java.awt.Color |
getFrameShadow()
|
protected boolean |
isActiveFrame()
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draws the FrameBorder in the given Rect. |
void |
setComponent(javax.swing.JComponent comp)
Sets the FrameBorder's JComponent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jcomp
javax.swing.JComponent jcomp
frameHighlight
java.awt.Color frameHighlight
frameColor
java.awt.Color frameColor
frameShadow
java.awt.Color frameShadow
BORDER_SIZE
public static final int BORDER_SIZE
- See Also:
- Constant Field Values
insets
static java.awt.Insets insets
GtkBorders.FrameBorder
public GtkBorders.FrameBorder(javax.swing.JComponent comp)
- Constructs an FrameBorder for the JComponent comp.
setComponent
public void setComponent(javax.swing.JComponent comp)
- Sets the FrameBorder's JComponent.
component
public javax.swing.JComponent component()
- Returns the FrameBorder's JComponent.
getFrameHighlight
protected java.awt.Color getFrameHighlight()
getFrameColor
protected java.awt.Color getFrameColor()
getFrameShadow
protected java.awt.Color getFrameShadow()
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Description copied from class:
javax.swing.border.AbstractBorder
- Returns the insets required for drawing this border around the specified
component.
- Specified by:
getBorderInsets in interface javax.swing.border.Border
drawTopBorder
protected boolean drawTopBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Draws the FrameBorder's top border.
drawLeftBorder
protected boolean drawLeftBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Draws the FrameBorder's left border.
drawRightBorder
protected boolean drawRightBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Draws the FrameBorder's right border.
drawBottomBorder
protected boolean drawBottomBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Draws the FrameBorder's bottom border.
isActiveFrame
protected boolean isActiveFrame()
paintBorder
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Draws the FrameBorder in the given Rect. Calls
drawTitleBar, drawLeftBorder, drawRightBorder and
drawBottomBorder.
- Specified by:
paintBorder in interface javax.swing.border.Border