Skip navigation links
oracle.jdevimpl.audit.swing
Class FocusBorder
java.lang.Object
javax.swing.border.AbstractBorder
oracle.jdevimpl.audit.swing.FocusBorder
- All Implemented Interfaces:
- java.awt.event.FocusListener, java.io.Serializable, java.util.EventListener, javax.swing.border.Border
-
public class FocusBorder
- extends javax.swing.border.AbstractBorder
- implements java.awt.event.FocusListener
A normally empty border which provides a visual indication when its component is the focus owner.
- See Also:
- Serialized Form
Constructor Summary |
FocusBorder()
|
FocusBorder(java.awt.Component component)
|
FocusBorder(java.awt.Insets innerMargin, java.awt.Insets outerMargin)
|
FocusBorder(java.awt.Insets innerMargin, java.awt.Insets outerMargin, java.awt.Component component)
|
FocusBorder(int innerMargin, int outerMargin)
|
FocusBorder(int innerMargin, int outerMargin, java.awt.Component component)
|
Method Summary |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
|
java.awt.Insets |
getBorderInsets(java.awt.Component c, java.awt.Insets insets)
|
void |
paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
|
Methods inherited from class javax.swing.border.AbstractBorder |
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle, isBorderOpaque |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FocusBorder
public FocusBorder()
FocusBorder
public FocusBorder(java.awt.Component component)
FocusBorder
public FocusBorder(int innerMargin,
int outerMargin)
FocusBorder
public FocusBorder(java.awt.Insets innerMargin,
java.awt.Insets outerMargin)
FocusBorder
public FocusBorder(int innerMargin,
int outerMargin,
java.awt.Component component)
FocusBorder
public FocusBorder(java.awt.Insets innerMargin,
java.awt.Insets outerMargin,
java.awt.Component component)
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
-
- Specified by:
getBorderInsets
in interface javax.swing.border.Border
- Overrides:
getBorderInsets
in class javax.swing.border.AbstractBorder
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
-
- Overrides:
getBorderInsets
in class javax.swing.border.AbstractBorder
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
- Overrides:
paintBorder
in class javax.swing.border.AbstractBorder
focusGained
public void focusGained(java.awt.event.FocusEvent e)
-
- Specified by:
focusGained
in interface java.awt.event.FocusListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
-
- Specified by:
focusLost
in interface java.awt.event.FocusListener
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.