Home » openjdk-7 » javax.swing.plaf.nimbus » [javadoc | source]
class: LoweredBorder [javadoc | source]

All Implemented Interfaces:
    Border, Painter

LoweredBorder - A recessed rounded inner shadowed border. Used as the standard Nimbus TitledBorder. This class is both a painter and a swing border.
Method from javax.swing.plaf.nimbus.LoweredBorder Summary:
doPaint,   getBorderInsets,   getExtendedCacheKeys,   getPaintContext,   isBorderOpaque,   paintBorder
Methods from javax.swing.plaf.nimbus.AbstractRegionPainter:
configureGraphics,   decodeAnchorX,   decodeAnchorY,   decodeColor,   decodeColor,   decodeGradient,   decodeRadialGradient,   decodeX,   decodeY,   doPaint,   getComponentColor,   getExtendedCacheKeys,   getPaintContext,   paint
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.nimbus.LoweredBorder Detail:
 protected  void doPaint(Graphics2D g,
    JComponent c,
    int width,
    int height,
    Object[] extendedCacheKeys) 
    Actually performs the painting operation. Subclasses must implement this method. The graphics object passed may represent the actual surface being rendererd to, or it may be an intermediate buffer. It has also been pre-translated. Simply render the component as if it were located at 0, 0 and had a width of width and a height of height. For performance reasons, you may want to read the clip from the Graphics2D object and only render within that space.
 public Insets getBorderInsets(Component c) 
    Returns the insets of the border.
 protected Object[] getExtendedCacheKeys(JComponent c) 
 protected PaintContext getPaintContext() 

    Gets the PaintContext for this painting operation. This method is called on every paint, and so should be fast and produce no garbage. The PaintContext contains information such as cache hints. It also contains data necessary for decoding points at runtime, such as the stretching insets, the canvas size at which the encoded points were defined, and whether the stretching insets are inverted.

    This method allows for subclasses to package the painting of different states with possibly different canvas sizes, etc, into one AbstractRegionPainter implementation.

 public boolean isBorderOpaque() 
    Returns whether or not the border is opaque. If the border is opaque, it is responsible for filling in it's own background when painting.
 public  void paintBorder(Component c,
    Graphics g,
    int x,
    int y,
    int width,
    int height) 
    Paints the border for the specified component with the specified position and size.