Package com.jformdesigner.model
Class SwingBorder
- java.lang.Object
-
- com.jformdesigner.model.SwingBorder
-
- All Implemented Interfaces:
SwingResource,Border
public class SwingBorder extends Object implements Border, SwingResource
Used to specify borders from the Swing UI (look and feel) resources. InvokesUIManager.getColor(key)to get the real border.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description SwingBorder(String key)Constructs a border from the Swing UI resources.SwingBorder(String key, Border border)For internal use only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Determines whether another object is equal to this object.InsetsgetBorderInsets(Component c)StringgetKey()Returns The name of the Swing border.inthashCode()Returns the hash code for this object.booleanisBorderOpaque()voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height)StringtoString()Returns a string representation of the object.
-
-
-
Method Detail
-
getKey
public String getKey()
Returns The name of the Swing border.
-
equals
public boolean equals(Object obj)
Determines whether another object is equal to this object.
-
hashCode
public int hashCode()
Returns the hash code for this object.
-
toString
public String toString()
Returns a string representation of the object.
-
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaquein interfaceBorder
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
- Specified by:
paintBorderin interfaceBorder
-
getBorderInsets
public Insets getBorderInsets(Component c)
- Specified by:
getBorderInsetsin interfaceBorder
-
-