org.jhotdraw.gui.plaf.palette
Class BackdropBorder

java.lang.Object
  extended by org.jhotdraw.gui.plaf.palette.BackdropBorder
All Implemented Interfaces:
javax.swing.border.Border
Direct Known Subclasses:
BackdropBorder.UIResource

public class BackdropBorder
extends java.lang.Object
implements javax.swing.border.Border

BackdropBorder.

Author:
Werner Randelshofer  @version $Id: BackdropBorder.java 527 2009-06-07 14:28:19Z rawcoder $

Nested Class Summary
static class BackdropBorder.UIResource
           
 
Field Summary
private  javax.swing.border.Border backgroundBorder
           
private  javax.swing.border.Border foregroundBorder
           
 
Constructor Summary
BackdropBorder(javax.swing.border.Border backgroundBorder)
           
BackdropBorder(javax.swing.border.Border foregroundBorder, javax.swing.border.Border backgroundBorder)
           
 
Method Summary
 javax.swing.border.Border getBackdropBorder()
           
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

backgroundBorder

private javax.swing.border.Border backgroundBorder

foregroundBorder

private javax.swing.border.Border foregroundBorder
Constructor Detail

BackdropBorder

public BackdropBorder(javax.swing.border.Border backgroundBorder)

BackdropBorder

public BackdropBorder(javax.swing.border.Border foregroundBorder,
                      javax.swing.border.Border backgroundBorder)
Method Detail

getBackdropBorder

public javax.swing.border.Border getBackdropBorder()

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface javax.swing.border.Border

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Specified by:
getBorderInsets in interface javax.swing.border.Border

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface javax.swing.border.Border