Class SwingBorder
java.lang.Object
com.jformdesigner.model.SwingBorder
- All Implemented Interfaces:
SwingResource, Border
Used to specify borders from the Swing UI (look and feel) resources.
Invokes
UIManager.getColor(key) to get the real border.- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionSwingBorder(String key) Constructs a border from the Swing UI resources.SwingBorder(String key, Border border) For internal use only. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether another object is equal to this object.getKey()Returns The name of the Swing border.inthashCode()Returns the hash code for this object.booleanvoidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) toString()Returns a string representation of the object.
-
Constructor Details
-
SwingBorder
Constructs a border from the Swing UI resources.- Parameters:
key- The name of the Swing border.
-
SwingBorder
-
-
Method Details
-
getKey
Returns The name of the Swing border. -
equals
-
hashCode
-
toString
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaquein interfaceBorder
-
paintBorder
- Specified by:
paintBorderin interfaceBorder
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder
-