Class LineBorder
All Packages Class Hierarchy This Package Previous Next Index
Class LineBorder
public class netscape.application.LineBorder
extends netscape.application.Border
{
/* Constructors
*/
public LineBorder();
public LineBorder(Color);
/* Methods
*/
public static Border blackLine();
public static Border grayLine();
public int bottomMargin();
public Color color();
public void decode(Decoder);
public void describeClassInfo(ClassInfo);
public void drawInRect(Graphics, int, int, int, int);
public void encode(Encoder);
public void finishDecoding();
public int leftMargin();
public int rightMargin();
public void setColor(Color);
public int topMargin();
}
Border subclass that draws a 1 pixel wide colored line around the given
Rect.
Constructors
LineBorder
public LineBorder()
- Constructs a LineBorder. You must set the color that it uses to draw.
- See Also:
- setColor
LineBorder
public LineBorder(Color borderColor)
- Constructs a LineBorder that draws with the color borderColor.
Methods
blackLine
public static Border blackLine()
- Convenience method for getting the Color.black LineBorder.
grayLine
public static Border grayLine()
- Convenience method for getting the Color.gray LineBorder.
setColor
public void setColor(Color aColor)
- Sets the LineBorder's Color.
color
public Color color()
- Returns the LinBorder's Color.
leftMargin
public int leftMargin()
- Returns the LineBorder's left margin (1 pixel).
- Overrides:
- leftMargin in class Border
rightMargin
public int rightMargin()
- Returns the LineBorder's right margin (1 pixel).
- Overrides:
- rightMargin in class Border
topMargin
public int topMargin()
- Returns the LineBorder's top margin (1 pixel).
- Overrides:
- topMargin in class Border
bottomMargin
public int bottomMargin()
- Returns the LineBorder's bottom margin (1 pixel).
- Overrides:
- bottomMargin in class Border
drawInRect
public void drawInRect(Graphics g,
int x,
int y,
int width,
int height)
- Draws the LineBorder within the given Rect.
- Overrides:
- drawInRect in class Border
describeClassInfo
public void describeClassInfo(ClassInfo info)
- Describes the LineBorder class' information.
- Overrides:
- describeClassInfo in class Border
- See Also:
- describeClassInfo
encode
public void encode(Encoder encoder) throws CodingException
- Encodes the LineBorder instance.
- Overrides:
- encode in class Border
- See Also:
- encode
decode
public void decode(Decoder decoder) throws CodingException
- Decodes the LineBorder instance.
- Overrides:
- decode in class Border
- See Also:
- decode
finishDecoding
public void finishDecoding() throws CodingException
- Finishes the LineBorder's decoding.
- Overrides:
- finishDecoding in class Border
- See Also:
- finishDecoding
All Packages Class Hierarchy This Package Previous Next Index