Class InternalWindowBorder
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class InternalWindowBorder

public class netscape.application.InternalWindowBorder
    extends netscape.application.Border
{
    /* Constructors
     */
    public InternalWindowBorder();
    public InternalWindowBorder(InternalWindow);

    /* Methods
     */
    public int bottomMargin();
    public void decode(Decoder);
    public void describeClassInfo(ClassInfo);
    public void drawBottomBorder(Graphics, int, int, int, int);
    public void drawInRect(Graphics, int, int, int, int);
    public void drawLeftBorder(Graphics, int, int, int, int);
    public void drawRightBorder(Graphics, int, int, int, int);
    public void drawTitleBar(Graphics, int, int, int, int);
    public void encode(Encoder);
    public int leftMargin();
    public int resizePartWidth();
    public int rightMargin();
    public void setWindow(InternalWindow);
    public int topMargin();
    public InternalWindow window();
}
Border subclass that draws a border around an InternalWindow. This border includes the InternalWindow's title and resize bars.

Constructors

InternalWindowBorder

  public InternalWindowBorder()
Constructs an InternalWindowBorder. This constructor is only useful during unarchiving.

InternalWindowBorder

  public InternalWindowBorder(InternalWindow aWindow)
Constructs an InternalWindowBorder for the InternalWindow aWindow.

Methods

setWindow

  public void setWindow(InternalWindow aWindow)
Sets the InternalWindowBorder's InternalWindow.

window

  public InternalWindow window()
Returns the InternalWindowBorder's InternalWindow.
See Also:
setWindow

leftMargin

  public int leftMargin()
Returns the InternalWindowBorder's left margin.
Overrides:
leftMargin in class Border

rightMargin

  public int rightMargin()
Returns the InternalWindowBorder's right margin.
Overrides:
rightMargin in class Border

topMargin

  public int topMargin()
Returns the InternalWindowBorder's top margin (the title bar height).
Overrides:
topMargin in class Border

bottomMargin

  public int bottomMargin()
Returns the InternalWindowBorder's bottom margin (the resize bar or bottom border height).
Overrides:
bottomMargin in class Border

resizePartWidth

  public int resizePartWidth()
Returns the width of the InternalWindowBorder's resize controls, appearing along the InternalWindowBorder's bottom border. Clicking and dragging within these controls lets the user change both the InternalWindow's width and height, while dragging between the controls constrains resizing to just the vertical dimension. Override this method if you implement your own bottom border painting and use a resize control with a different size.

drawTitleBar

  public void drawTitleBar(Graphics g,
                           int x,
                           int y,
                           int width,
                           int height)
Draws the InternalWindowBorder's title bar and border.

drawLeftBorder

  public void drawLeftBorder(Graphics g,
                             int x,
                             int y,
                             int width,
                             int height)
Draws the InternalWindowBorder's left border.

drawRightBorder

  public void drawRightBorder(Graphics g,
                              int x,
                              int y,
                              int width,
                              int height)
Draws the InternalWindowBorder's right border.

drawBottomBorder

  public void drawBottomBorder(Graphics g,
                               int x,
                               int y,
                               int width,
                               int height)
Draws the InternalWindowBorder's bottom border.

drawInRect

  public void drawInRect(Graphics g,
                         int x,
                         int y,
                         int width,
                         int height)
Draws the InternalWindowBorder in the given Rect. Calls drawTitleBar, drawLeftBorder, drawRightBorder and drawBottomBorder.
Overrides:
drawInRect in class Border

describeClassInfo

  public void describeClassInfo(ClassInfo info)
Describes the InternalWindowBorder class' information.
Overrides:
describeClassInfo in class Border
See Also:
describeClassInfo

encode

  public void encode(Encoder encoder) throws CodingException
Encodes the InternalWindowBorder instance.
Overrides:
encode in class Border
See Also:
encode

decode

  public void decode(Decoder decoder) throws CodingException
Decodes the InternalWindowBorder instance.
Overrides:
decode in class Border
See Also:
decode

All Packages  Class Hierarchy  This Package  Previous  Next  Index