java.lang.Object
org.monte.media.swing.border.ButtonStateBorder
- All Implemented Interfaces:
Border
ButtonStateBorder.
- Author:
- Werner Randelshofer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionButtonStateBorder(Image tiledImage, int tileCount, boolean isTiledHorizontaly, Insets imageInsets, Insets borderInsets, boolean fill) Creates a new instance.ButtonStateBorder(Border[] borders) Creates a new instance.ButtonStateBorder(Border e, Border es) Creates a new instance.ButtonStateBorder(Border e, Border ep, Border es, Border eps, Border d, Border ds, Border i, Border is, Border di, Border dis) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected BorderbooleanvoidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) void
-
Field Details
-
E
public static final int E- See Also:
-
EP
public static final int EP- See Also:
-
ES
public static final int ES- See Also:
-
EPS
public static final int EPS- See Also:
-
D
public static final int D- See Also:
-
DS
public static final int DS- See Also:
-
I
public static final int I- See Also:
-
IS
public static final int IS- See Also:
-
DI
public static final int DI- See Also:
-
DIS
public static final int DIS- See Also:
-
DEFAULT
public static final int DEFAULT- See Also:
-
-
Constructor Details
-
ButtonStateBorder
Creates a new instance. All borders must have the same insets. If a border is null, nothing is drawn for this state. -
ButtonStateBorder
public ButtonStateBorder(Border e, Border ep, Border es, Border eps, Border d, Border ds, Border i, Border is, Border di, Border dis) Creates a new instance. All borders must have the same insets. If a border is null, nothing is drawn for this state. -
ButtonStateBorder
Creates a new instance. All borders must have the same insets. -
ButtonStateBorder
public ButtonStateBorder(Image tiledImage, int tileCount, boolean isTiledHorizontaly, Insets imageInsets, Insets borderInsets, boolean fill) Creates a new instance. All borders must have the same dimensions.
-
-
Method Details
-
setBorder
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaquein interfaceBorder
-
paintBorder
- Specified by:
paintBorderin interfaceBorder
-
getBorder
-