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 TypeMethodDescriptionfloat
void
void
void
installListener
(JComponent target) adding anFocusListener
for repainting the pane when the focus changedboolean
void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height) void
paintStrokes
(Graphics g, int x, int y, int width, int height)
-
Field Details
-
focusColor
-
strokes
-
-
Constructor Details
-
FocusBorder
-
-
Method Details
-
installListener
adding anFocusListener
for 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:
paintBorder
in interfaceBorder
-
paintStrokes
-
getBorderInsets
- Specified by:
getBorderInsets
in interfaceBorder
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaque
in interfaceBorder
-