CubeTwister 2.0alpha141 2011-10-13

ch.randelshofer.gui.border
Class FocusBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.EmptyBorder
          extended by javax.swing.border.MatteBorder
              extended by ch.randelshofer.gui.border.FocusBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

public class FocusBorder
extends javax.swing.border.MatteBorder

Author:
werni
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.border.MatteBorder
color, tileIcon
 
Fields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
 
Constructor Summary
FocusBorder(int top, int left, int bottom, int right, java.awt.Color matteColor)
          Creates a focus border with the specified insets and color.
 
Method Summary
 void setMatteColor(java.awt.Color matteColor)
          Sets the matte color of the border.
 
Methods inherited from class javax.swing.border.MatteBorder
getBorderInsets, getBorderInsets, getBorderInsets, getMatteColor, getTileIcon, isBorderOpaque, paintBorder
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusBorder

public FocusBorder(int top,
                   int left,
                   int bottom,
                   int right,
                   java.awt.Color matteColor)
Creates a focus border with the specified insets and color.

Method Detail

setMatteColor

public void setMatteColor(java.awt.Color matteColor)
Sets the matte color of the border. If you set this value to null you must set the tile icon to a non-null value.


(c) Werner Randelshofer.
All rights reserved.