Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gtk.java.swing.plaf.gtk
Class GtkBorders.InternalFrameBorder  view GtkBorders.InternalFrameBorder download GtkBorders.InternalFrameBorder.java

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended byorg.gtk.java.swing.plaf.gtk.GtkBorders.FrameBorder
          extended byorg.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


Field Summary
static int CORNER_SIZE
           
(package private)  javax.swing.JInternalFrame frame
           
 
Fields inherited from class org.gtk.java.swing.plaf.gtk.GtkBorders.FrameBorder
BORDER_SIZE, frameColor, frameHighlight, frameShadow, insets, jcomp
 
Fields inherited from class javax.swing.border.AbstractBorder
 
Constructor Summary
GtkBorders.InternalFrameBorder(javax.swing.JInternalFrame aFrame)
          Constructs an InternalFrameBorder for the InternalFrame aFrame.
 
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 org.gtk.java.swing.plaf.gtk.GtkBorders.FrameBorder
component, getBorderInsets, getFrameColor, getFrameHighlight, getFrameShadow, paintBorder, setComponent
 
Methods inherited from class javax.swing.border.AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

javax.swing.JInternalFrame frame

CORNER_SIZE

public static final int CORNER_SIZE
See Also:
Constant Field Values
Constructor Detail

GtkBorders.InternalFrameBorder

public GtkBorders.InternalFrameBorder(javax.swing.JInternalFrame aFrame)
Constructs an InternalFrameBorder for the InternalFrame aFrame.

Method Detail

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