net.sourceforge.mlf.metouia.borders
Class MetouiaToggleButtonBorder
java.lang.Object
javax.swing.border.AbstractBorder
net.sourceforge.mlf.metouia.borders.MetouiaButtonBorder
net.sourceforge.mlf.metouia.borders.MetouiaToggleButtonBorder
- All Implemented Interfaces:
- javax.swing.border.Border, java.io.Serializable, javax.swing.plaf.UIResource
- public class MetouiaToggleButtonBorder
- extends MetouiaButtonBorder
This is a simple 3d border class used for toggle buttons.
- See Also:
- Serialized Form
Method Summary |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
Draws a simple 3d border for the given component. |
Methods inherited from class javax.swing.border.AbstractBorder |
getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetouiaToggleButtonBorder
public MetouiaToggleButtonBorder()
paintBorder
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
- Draws a simple 3d border for the given component.
- Specified by:
paintBorder
in interface javax.swing.border.Border
- Overrides:
paintBorder
in class MetouiaButtonBorder
- Parameters:
c
- 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.