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

Quick Search    Search Deep

com.memoire.bu
Class BuLightBorder  view BuLightBorder download BuLightBorder.java

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended bycom.memoire.bu.BuLightBorder
All Implemented Interfaces:
javax.swing.border.Border, java.io.Serializable

public class BuLightBorder
extends javax.swing.border.AbstractBorder

A simple bevel border of thickness 1.


Field Summary
static int LOWERED
           
protected  int margin_
           
static int RAISED
           
protected  int type_
           
 
Fields inherited from class javax.swing.border.AbstractBorder
 
Constructor Summary
BuLightBorder()
           
BuLightBorder(int _type, int _margin)
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component _c)
          Returns the insets required for drawing this border around the specified component.
 boolean isBorderOpaque()
          Determines whether or not this border is opaque.
 void paintBorder(java.awt.Component _c, java.awt.Graphics _g, int _x, int _y, int _w, int _h)
          Performs nothing, because the default implementation provided by this class is an invisible, zero-width border.
protected  void paintLoweredBevel(java.awt.Component _c, java.awt.Graphics _g, int _x, int _y, int _w, int _h)
           
protected  void paintRaisedBevel(java.awt.Component _c, java.awt.Graphics _g, int _x, int _y, int _w, int _h)
           
 
Methods inherited from class javax.swing.border.AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RAISED

public static final int RAISED
See Also:
Constant Field Values

LOWERED

public static final int LOWERED
See Also:
Constant Field Values

margin_

protected int margin_

type_

protected int type_
Constructor Detail

BuLightBorder

public BuLightBorder()

BuLightBorder

public BuLightBorder(int _type,
                     int _margin)
Method Detail

paintBorder

public void paintBorder(java.awt.Component _c,
                        java.awt.Graphics _g,
                        int _x,
                        int _y,
                        int _w,
                        int _h)
Description copied from class: javax.swing.border.AbstractBorder
Performs nothing, because the default implementation provided by this class is an invisible, zero-width border. Subclasses will likely want to override this method, but they are not required to do so.


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.


isBorderOpaque

public boolean isBorderOpaque()
Description copied from class: javax.swing.border.AbstractBorder
Determines whether or not this border is opaque. An opaque border fills every pixel in its area when painting. Partially translucent borders must return false, or ugly artifacts can appear on screen. The default implementation provided here always returns false.


paintRaisedBevel

protected void paintRaisedBevel(java.awt.Component _c,
                                java.awt.Graphics _g,
                                int _x,
                                int _y,
                                int _w,
                                int _h)

paintLoweredBevel

protected void paintLoweredBevel(java.awt.Component _c,
                                 java.awt.Graphics _g,
                                 int _x,
                                 int _y,
                                 int _w,
                                 int _h)