Package ca.cgjennings.ui.dnd
Class DropBorder
- java.lang.Object
- 
- ca.cgjennings.ui.dnd.DropBorder
 
- 
- All Implemented Interfaces:
- javax.swing.border.Border
 
 public class DropBorder extends java.lang.Object implements javax.swing.border.BorderA temporary border that can be installed on drop targets during a drag operation to provide visual feedback. It draws itself over the existing border (or does nothing if the existing border isnull).- Since:
- 3.0
- Author:
- Chris Jennings 
 
- 
- 
Constructor SummaryConstructors Constructor Description DropBorder(javax.swing.JComponent dropTarget)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.InsetsgetBorderInsets(java.awt.Component c)booleanisBorderOpaque()voidpaintBorder(java.awt.Component c, java.awt.Graphics g1, int x, int y, int width, int height)voidrestore()Restores the original border on the drop target.
 
- 
- 
- 
Method Detail- 
paintBorderpublic void paintBorder(java.awt.Component c, java.awt.Graphics g1, int x, int y, int width, int height)- Specified by:
- paintBorderin interface- javax.swing.border.Border
 
 - 
getBorderInsetspublic java.awt.Insets getBorderInsets(java.awt.Component c) - Specified by:
- getBorderInsetsin interface- javax.swing.border.Border
 
 - 
isBorderOpaquepublic boolean isBorderOpaque() - Specified by:
- isBorderOpaquein interface- javax.swing.border.Border
 
 - 
restorepublic void restore() Restores the original border on the drop target.
 
- 
 
-