java.lang.Object
org.autogui.swing.util.FocusBorder
- All Implemented Interfaces:
Border
- Direct Known Subclasses:
GuiSwingViewLabel.FocusBorder
border for indicating focusing
- Since:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatvoidvoidvoidinstallListener(JComponent target) adding anFocusListenerfor repainting the pane when the focus changedbooleanvoidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) voidpaintStrokes(Graphics g, int x, int y, int width, int height)
-
Field Details
-
Constructor Details
-
Method Details
-
installListener
adding anFocusListenerfor repainting the pane when the focus changed- Parameters:
target- the target comopnent
-
initFocusColor
public void initFocusColor() -
initStrokes
public void initStrokes() -
getStrokeSize
public float getStrokeSize() -
paintBorder
- Specified by:
paintBorderin interfaceBorder
-
paintStrokes
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaquein interfaceBorder
-