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

Quick Search    Search Deep

bojangles.widgets
Class HighlightBorder  view HighlightBorder download HighlightBorder.java

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended bybojangles.widgets.HighlightBorder
All Implemented Interfaces:
javax.swing.border.Border, java.io.Serializable

public class HighlightBorder
extends javax.swing.border.AbstractBorder


Field Summary
private  int borderDepth
           
private  java.awt.Color color
           
 
Fields inherited from class javax.swing.border.AbstractBorder
 
Constructor Summary
HighlightBorder()
           
HighlightBorder(java.awt.Color highlightColor)
           
HighlightBorder(int depth)
           
HighlightBorder(int depth, java.awt.Color highlightColor)
           
 
Method Summary
 int getBorderDepth()
           
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Returns the insets required for drawing this border around the specified component.
 java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets i)
          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.
 
Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

borderDepth

private int borderDepth

color

private java.awt.Color color
Constructor Detail

HighlightBorder

public HighlightBorder()

HighlightBorder

public HighlightBorder(int depth)

HighlightBorder

public HighlightBorder(java.awt.Color highlightColor)

HighlightBorder

public HighlightBorder(int depth,
                       java.awt.Color highlightColor)
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.


getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c,
                                       java.awt.Insets i)
Description copied from class: javax.swing.border.AbstractBorder
Returns the insets required for drawing this border around the specified component. The default implementation provided here sets the left, right, top and bottom fields of the passed insets parameter to zero.


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.


getBorderDepth

public int getBorderDepth()