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.FrameBorder  view GtkBorders.FrameBorder download GtkBorders.FrameBorder.java

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


Field Summary
static int BORDER_SIZE
           
(package private)  java.awt.Color frameColor
           
(package private)  java.awt.Color frameHighlight
           
(package private)  java.awt.Color frameShadow
           
(package private) static java.awt.Insets insets
           
(package private)  javax.swing.JComponent jcomp
           
 
Fields inherited from class javax.swing.border.AbstractBorder
 
Constructor Summary
GtkBorders.FrameBorder(javax.swing.JComponent comp)
          Constructs an FrameBorder for the JComponent comp.
 
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 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

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
Constructor Detail

GtkBorders.FrameBorder

public GtkBorders.FrameBorder(javax.swing.JComponent comp)
Constructs an FrameBorder for the JComponent comp.

Method Detail

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