quoggles.auxiliary
Class InsetLineBorder
java.lang.Object
|
+--javax.swing.border.AbstractBorder
|
+--javax.swing.border.LineBorder
|
+--quoggles.auxiliary.InsetLineBorder
- All Implemented Interfaces:
- javax.swing.border.Border, java.io.Serializable
- public class InsetLineBorder
- extends javax.swing.border.LineBorder
A LineBorder with additional space between the border and the component.
- See Also:
- Serialized Form
|
Field Summary |
private java.awt.Insets |
insets
|
| Fields inherited from class javax.swing.border.LineBorder |
lineColor, roundedCorners, thickness |
|
Constructor Summary |
InsetLineBorder(java.awt.Color color)
insets: 8, 8, 8, 8
thickness: 1
roundedCorners: false |
InsetLineBorder(java.awt.Color color,
int thickness)
insets: 8, 8, 8, 8
roundedCorners: false |
InsetLineBorder(java.awt.Color color,
int thickness,
boolean roundedCorners)
insets: 8, 8, 8, 8
* @param color |
InsetLineBorder(java.awt.Color color,
int thickness,
boolean roundedCorners,
java.awt.Insets insets)
|
InsetLineBorder(java.awt.Color color,
int thickness,
java.awt.Insets insets)
roundedCorners: false |
| Methods inherited from class javax.swing.border.LineBorder |
createBlackLineBorder, createGrayLineBorder, getBorderInsets, getLineColor, getRoundedCorners, getThickness, paintBorder |
| Methods inherited from class javax.swing.border.AbstractBorder |
getInteriorRectangle, getInteriorRectangle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
insets
private java.awt.Insets insets
InsetLineBorder
public InsetLineBorder(java.awt.Color color)
- insets: 8, 8, 8, 8
thickness: 1
roundedCorners: false
- Parameters:
color -
InsetLineBorder
public InsetLineBorder(java.awt.Color color,
int thickness)
- insets: 8, 8, 8, 8
roundedCorners: false
- Parameters:
color - thickness -
InsetLineBorder
public InsetLineBorder(java.awt.Color color,
int thickness,
boolean roundedCorners)
- insets: 8, 8, 8, 8
* @param color
- Parameters:
thickness - roundedCorners -
InsetLineBorder
public InsetLineBorder(java.awt.Color color,
int thickness,
boolean roundedCorners,
java.awt.Insets insets)
- Parameters:
color - thickness - roundedCorners - insets -
InsetLineBorder
public InsetLineBorder(java.awt.Color color,
int thickness,
java.awt.Insets insets)
- roundedCorners: false
- Parameters:
color - thickness - insets -
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.LineBorder
- See Also:
Border.getBorderInsets(java.awt.Component)
isBorderOpaque
public boolean isBorderOpaque()
- Returns true.
- Specified by:
isBorderOpaque in interface javax.swing.border.Border- Overrides:
isBorderOpaque in class javax.swing.border.LineBorder
- See Also:
Border.isBorderOpaque()