Class UnderlineBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- com.inductiveautomation.ignition.designer.gui.border.UnderlineBorder
-
- All Implemented Interfaces:
java.io.Serializable,javax.swing.border.Border
- Direct Known Subclasses:
UnderlineBorder
public class UnderlineBorder extends javax.swing.border.AbstractBorderUnderline border that is best used for JLabels. It will underline the text of the component while ignoring the icon element. This can be used for any component really, but the results may be undesirable.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnderlineBorder(int style, java.awt.Color color)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnderlineBorderdashed(java.awt.Color color)java.awt.InsetsgetBorderInsets(java.awt.Component c)java.awt.InsetsgetBorderInsets(java.awt.Component c, java.awt.Insets insets)voidpaintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)voidsetColor(java.awt.Color color)static UnderlineBorderwavy(java.awt.Color color)
-
-
-
Field Detail
-
DASHED
protected static final int DASHED
- See Also:
- Constant Field Values
-
WAVY
protected static final int WAVY
- See Also:
- Constant Field Values
-
-
Method Detail
-
wavy
public static UnderlineBorder wavy(java.awt.Color color)
-
dashed
public static UnderlineBorder dashed(java.awt.Color color)
-
setColor
public void setColor(java.awt.Color color)
-
paintBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)- Specified by:
paintBorderin interfacejavax.swing.border.Border- Overrides:
paintBorderin classjavax.swing.border.AbstractBorder
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Specified by:
getBorderInsetsin interfacejavax.swing.border.Border- Overrides:
getBorderInsetsin classjavax.swing.border.AbstractBorder
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)- Overrides:
getBorderInsetsin classjavax.swing.border.AbstractBorder
-
-