| java.lang.Object javax.swing.border.AbstractBorder javax.swing.border.EmptyBorder snow.utils.gui.CustomEtchedBorder
CustomEtchedBorder | public class CustomEtchedBorder extends EmptyBorder (Code) | | Like MatteBorder, but with two lines. ( dark and bright usually )
The effect from the two lines is like an etched border, but one
can specify :
on_top,on_left,on_bottom and on_right define if it should be painted at these locations.
|
Constructor Summary | |
public | CustomEtchedBorder(boolean on_top, boolean on_left, boolean on_bottom, boolean on_right, Color lightColor, Color darkColor) Version with passed constant colors. | public | CustomEtchedBorder(boolean on_top, boolean on_left, boolean on_bottom, boolean on_right) Version with automatically calculated colors, which then follow UI changes. |
doUpdateColors | boolean doUpdateColors(Code) | | |
CustomEtchedBorder | public CustomEtchedBorder(boolean on_top, boolean on_left, boolean on_bottom, boolean on_right, Color lightColor, Color darkColor)(Code) | | Version with passed constant colors.
|
CustomEtchedBorder | public CustomEtchedBorder(boolean on_top, boolean on_left, boolean on_bottom, boolean on_right)(Code) | | Version with automatically calculated colors, which then follow UI changes.
|
getBorderInsets | public Insets getBorderInsets(Component c)(Code) | | Returns the insets of the border.
Parameters: c - the component for which this border insets value applies |
getBorderInsets | public Insets getBorderInsets(Component c, Insets insets)(Code) | | Reinitialize the insets parameter with this Border's current Insets.
Parameters: c - the component for which this border insets value applies Parameters: insets - the object to be reinitialized |
getBorderInsets | public Insets getBorderInsets()(Code) | | Returns the insets of the border.
|
isBorderOpaque | public boolean isBorderOpaque()(Code) | | whether or not the border is opaque. |
paintBorder | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)(Code) | | Paints the matte border.
|
Fields inherited from javax.swing.border.EmptyBorder | protected int leftrighttopbottom(Code)(Java Doc)
|
Methods inherited from javax.swing.border.AbstractBorder | public int getBaseline(Component c, int width, int height)(Code)(Java Doc) public Component.BaselineResizeBehavior getBaselineResizeBehavior(Component c)(Code)(Java Doc) public Insets getBorderInsets(Component c)(Code)(Java Doc) public Insets getBorderInsets(Component c, Insets insets)(Code)(Java Doc) public Rectangle getInteriorRectangle(Component c, int x, int y, int width, int height)(Code)(Java Doc) public static Rectangle getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)(Code)(Java Doc) public boolean isBorderOpaque()(Code)(Java Doc) public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)(Code)(Java Doc)
|
|
|