public class SwingBorder extends Object implements Border, SwingResource
UIManager.getColor(key)
to get the real border.Constructor and Description |
---|
SwingBorder(String key)
Constructs a border from the Swing UI resources.
|
SwingBorder(String key,
Border border)
For internal use only.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether another object is equal to this object.
|
Insets |
getBorderInsets(Component c) |
String |
getKey()
Returns The name of the Swing border.
|
int |
hashCode()
Returns the hash code for this object.
|
boolean |
isBorderOpaque() |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
String |
toString()
Returns a string representation of the object.
|
public SwingBorder(String key)
key
- The name of the Swing border.public String getKey()
public boolean equals(Object obj)
public int hashCode()
public String toString()
public boolean isBorderOpaque()
isBorderOpaque
in interface Border
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
paintBorder
in interface Border
public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
Copyright (C) 2004-2019 FormDev Software GmbH. All rights reserved.