Home » openjdk-7 » net.jbeans » ui » border » [javadoc | source]
net.jbeans.ui.border
public class: TiledMatteBorder [javadoc | source]
java.lang.Object
   javax.swing.border.AbstractBorder
      javax.swing.border.EmptyBorder
         javax.swing.border.MatteBorder
            net.jbeans.ui.border.TiledMatteBorder

All Implemented Interfaces:
    Serializable, Border

A class which is similar to the javax.swing.border.MatteBorder. This border, however, can alternate two tiled icons to create border.
Field Summary
protected  Icon tileIconAlt     
Fields inherited from javax.swing.border.MatteBorder:
color,  tileIcon
Fields inherited from javax.swing.border.EmptyBorder:
left,  right,  top,  bottom
Constructor:
 public TiledMatteBorder(Icon tileIcon,
    Icon tileIconAlt) 
    Creates a matte border with the specified tile icon. The insets will be calculated dynamically based on the size of the tile icon, where the top and bottom will be equal to the tile icon's height, and the left and right will be equal to the tile icon's width.
    Parameters:
    tileIcon - the icon to be used for tiling the border
    tileIconAlt - the alternate icon to be used for tiling the border
 public TiledMatteBorder(int top,
    int left,
    int bottom,
    int right,
    Icon tileIcon,
    Icon tileIconAlt) 
    Creates a matte border with the specified insets and tile icon. The two tile icons have to be the same size.
    Parameters:
    top - the top inset of the border
    left - the left inset of the border
    bottom - the bottom inset of the border
    right - the right inset of the border
    tileIcon - the icon to be used for tiling the border
    tileIconAlt - the alternate icon to be used for tiling the border
Method from net.jbeans.ui.border.TiledMatteBorder Summary:
paintBorder
Methods from javax.swing.border.MatteBorder:
getBorderInsets,   getBorderInsets,   getMatteColor,   getTileIcon,   isBorderOpaque,   paintBorder
Methods from javax.swing.border.EmptyBorder:
getBorderInsets,   getBorderInsets,   isBorderOpaque,   paintBorder
Methods from javax.swing.border.AbstractBorder:
getBaseline,   getBaselineResizeBehavior,   getBorderInsets,   getBorderInsets,   getInteriorRectangle,   getInteriorRectangle,   isBorderOpaque,   isLeftToRight,   paintBorder
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.jbeans.ui.border.TiledMatteBorder Detail:
 public  void paintBorder(Component c,
    Graphics g,
    int x,
    int y,
    int width,
    int height) 
    Paints the matte border.