com.birosoft.liquid.borders
Class LiquidTextFieldBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by com.birosoft.liquid.borders.LiquidTextFieldBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border, javax.swing.plaf.UIResource

public class LiquidTextFieldBorder
extends javax.swing.border.AbstractBorder
implements javax.swing.plaf.UIResource

The border for a Textfield.

See Also:
Serialized Form

Constructor Summary
LiquidTextFieldBorder()
           
LiquidTextFieldBorder(java.awt.Insets insets)
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Gets the border insets for a given component.
 Skin getSkin()
          lazy initialization of the skin
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
          Use the skin to paint the border
 void setInsets(java.awt.Insets i)
           
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiquidTextFieldBorder

public LiquidTextFieldBorder()

LiquidTextFieldBorder

public LiquidTextFieldBorder(java.awt.Insets insets)
Method Detail

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Gets the border insets for a given component.

Specified by:
getBorderInsets in interface javax.swing.border.Border
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder
Parameters:
c - The component to get its border insets.
Returns:
Always returns the same insets as defined in insets.

setInsets

public void setInsets(java.awt.Insets i)

getSkin

public Skin getSkin()
lazy initialization of the skin


paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int w,
                        int h)
Use the skin to paint the border

Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.AbstractBorder
See Also:
Border.paintBorder(Component, Graphics, int, int, int, int)