de.muntjak.tinylookandfeel.borders
Class TinyToolButtonBorder
java.lang.Object
javax.swing.border.AbstractBorder
de.muntjak.tinylookandfeel.borders.TinyToolButtonBorder
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.border.Border
public class TinyToolButtonBorder
- extends javax.swing.border.AbstractBorder
TinyToolButtonBorder is the border for JButton, JToggleButton and JSpinner buttons.
- See Also:
- Serialized Form
|
Field Summary |
protected static java.awt.Insets |
insets
|
|
Method Summary |
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Gets the border insets for a given component. |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
Draws the button border for the given component. |
| Methods inherited from class javax.swing.border.AbstractBorder |
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
insets
protected static final java.awt.Insets insets
TinyToolButtonBorder
public TinyToolButtonBorder()
paintBorder
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
- Draws the button border for the given component.
- Specified by:
paintBorder in interface javax.swing.border.Border- Overrides:
paintBorder in class javax.swing.border.AbstractBorder
- Parameters:
mainColor - The component to draw its border.g - The graphics context.x - The x coordinate of the top left corner.y - The y coordinate of the top left corner.w - The width.h - The height.
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Gets the border insets for a given component.
- Specified by:
getBorderInsets in interface javax.swing.border.Border- Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder
- Returns:
- some insets...