java.lang.Object
javax.swing.border.AbstractBorder
org.gtk.java.swing.plaf.gtk.GtkBorders.FrameBorder
org.gtk.java.swing.plaf.gtk.GtkBorders.InternalFrameBorder
- All Implemented Interfaces:
- javax.swing.border.Border, java.io.Serializable, javax.swing.plaf.UIResource
- Enclosing class:
- GtkBorders
- public static class GtkBorders.InternalFrameBorder
- extends GtkBorders.FrameBorder
|
Method Summary |
protected boolean |
drawBottomBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draws the InternalFrameBorder's bottom border. |
protected boolean |
drawLeftBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draws the InternalFrameBorder's left border. |
protected boolean |
drawRightBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draws the InternalFrameBorder's right border. |
protected boolean |
drawTopBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Draws the InternalFrameBorder's top border. |
javax.swing.JInternalFrame |
frame()
Returns the InternalFrameBorder's InternalFrame. |
protected boolean |
isActiveFrame()
|
int |
resizePartWidth()
Returns the width of the InternalFrameBorder's resize controls,
appearing along the InternalFrameBorder's bottom border. |
void |
setFrame(javax.swing.JInternalFrame aFrame)
Sets the InternalFrameBorder's InternalFrame. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
frame
javax.swing.JInternalFrame frame
CORNER_SIZE
public static final int CORNER_SIZE
- See Also:
- Constant Field Values
GtkBorders.InternalFrameBorder
public GtkBorders.InternalFrameBorder(javax.swing.JInternalFrame aFrame)
- Constructs an InternalFrameBorder for the InternalFrame
aFrame.
setFrame
public void setFrame(javax.swing.JInternalFrame aFrame)
- Sets the InternalFrameBorder's InternalFrame.
frame
public javax.swing.JInternalFrame frame()
- Returns the InternalFrameBorder's InternalFrame.
resizePartWidth
public int resizePartWidth()
- Returns the width of the InternalFrameBorder's resize controls,
appearing along the InternalFrameBorder's bottom border. Clicking
and dragging within these controls lets the user change both the
InternalFrame's width and height, while dragging between the controls
constrains resizing to just the vertical dimension. Override this
method if you implement your own bottom border painting and use a
resize control with a different size.
drawTopBorder
protected boolean drawTopBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Draws the InternalFrameBorder's top border.
- Overrides:
drawTopBorder in class GtkBorders.FrameBorder
drawLeftBorder
protected boolean drawLeftBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Draws the InternalFrameBorder's left border.
- Overrides:
drawLeftBorder in class GtkBorders.FrameBorder
drawRightBorder
protected boolean drawRightBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Draws the InternalFrameBorder's right border.
- Overrides:
drawRightBorder in class GtkBorders.FrameBorder
drawBottomBorder
protected boolean drawBottomBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Draws the InternalFrameBorder's bottom border.
- Overrides:
drawBottomBorder in class GtkBorders.FrameBorder
isActiveFrame
protected boolean isActiveFrame()
- Overrides:
isActiveFrame in class GtkBorders.FrameBorder