| java.lang.Object com.sun.jumpimpl.presentation.simplebasis.SimpleBasisAMSBorder
SimpleBasisAMSBorder | public class SimpleBasisAMSBorder implements Cloneable(Code) | | |
Method Summary | |
public static Color | brighter(Color color) Returns a brighter version of this color. | public static Color | darker(Color color) Returns a darker version of this color. | public Insets | getInsets() returns the left, right, top, and bottom insets of the background of the
current style, taking into account thickness and margins. | public int | getRightMargin() Returns the right margin. | public void | paint(Graphics g, Color background, int x, int y, int width, int height) returns the left, right, top, and bottom insets of the background of the
current style, taking into account thickness and margins. | public synchronized void | setJUMPGuiAMSBorderThickness(int JUMPGuiAMSBorderThickness) | public synchronized void | setMargins(int margin) Sets all margins (top, left, bottom, and right) to the same, given value. | public synchronized void | setMargins(int top, int left, int bottom, int right) Sets all margins (top, left, bottom, and right) to the given values. | public synchronized void | setType(int type) |
EMBOSSED_OUT | final public static int EMBOSSED_OUT(Code) | | |
ETCHED_IN | final public static int ETCHED_IN(Code) | | |
LINE | final public static int LINE(Code) | | |
NONE | final public static int NONE(Code) | | |
ROUND_RECT | final public static int ROUND_RECT(Code) | | |
THREED_IN | final public static int THREED_IN(Code) | | |
THREED_OUT | final public static int THREED_OUT(Code) | | |
brighter | public static Color brighter(Color color)(Code) | | Returns a brighter version of this color.
Replaces the "awt.Color" function brighter to use, in my opinion,
a better factor (awt used FACTOR = 0.7)
Parameters: color - the color to which to apply the factor the new, brighter color |
darker | public static Color darker(Color color)(Code) | | Returns a darker version of this color.
Replaces the "awt.Color" function brighter to use, in my opinion,
a better factor (awt used FACTOR = 0.7)
Parameters: color - the color to which to apply the factor the new, darker color |
getInsets | public Insets getInsets()(Code) | | returns the left, right, top, and bottom insets of the background of the
current style, taking into account thickness and margins.
an Insets object containing the inset values |
getRightMargin | public int getRightMargin()(Code) | | Returns the right margin.
the right margin |
paint | public void paint(Graphics g, Color background, int x, int y, int width, int height)(Code) | | returns the left, right, top, and bottom insets of the background of the
current style, taking into account thickness and margins.
Parameters: g - the Graphics in which to paint Parameters: background - the current background color (or null), used if available tocalculate the SimpleBasisAMSBorder color if that is null. Parameters: x - the x location of the upper-left point of the SimpleBasisAMSBorder Parameters: y - the y location of the upper-left point of the SimpleBasisAMSBorder Parameters: width - the width of the rectangle in which to draw the SimpleBasisAMSBorder Parameters: height - the height of the rectangle in which to draw the SimpleBasisAMSBorder |
setJUMPGuiAMSBorderThickness | public synchronized void setJUMPGuiAMSBorderThickness(int JUMPGuiAMSBorderThickness)(Code) | | Sets the SimpleBasisAMSBorder thickness
Parameters: JUMPGuiAMSBorderThickness - the SimpleBasisAMSBorder thickness |
setMargins | public synchronized void setMargins(int margin)(Code) | | Sets all margins (top, left, bottom, and right) to the same, given value.
Parameters: margin - the margin |
setMargins | public synchronized void setMargins(int top, int left, int bottom, int right)(Code) | | Sets all margins (top, left, bottom, and right) to the given values.
Parameters: top - the top margin Parameters: left - the left margin Parameters: bottom - the bottom margin Parameters: right - the right margin |
setType | public synchronized void setType(int type)(Code) | | Sets the SimpleBasisAMSBorder type (e.g., to SimpleBasisAMSBorder.LINE)
Parameters: type - the SimpleBasisAMSBorder type |
|
|