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
public void setWindow(InternalWindow aWindow)
- Sets the InternalWindowBorder's InternalWindow.
public InternalWindow window()
- Returns the InternalWindowBorder's InternalWindow.
- See Also:
- setWindow
public int leftMargin()
- Returns the InternalWindowBorder's left margin.
- Overrides:
- leftMargin in class Border
public int rightMargin()
- Returns the InternalWindowBorder's right margin.
- Overrides:
- rightMargin in class Border
public int topMargin()
- Returns the InternalWindowBorder's top margin (the title bar height).
- Overrides:
- topMargin in class Border
public int bottomMargin()
- Returns the InternalWindowBorder's bottom margin (the resize bar or
bottom border height).
- Overrides:
- bottomMargin in class Border
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.
public void drawTitleBar(Graphics g,
int x,
int y,
int width,
int height)
- Draws the InternalWindowBorder's title bar and border.
public void drawLeftBorder(Graphics g,
int x,
int y,
int width,
int height)
- Draws the InternalWindowBorder's left border.
public void drawRightBorder(Graphics g,
int x,
int y,
int width,
int height)
- Draws the InternalWindowBorder's right border.
public void drawBottomBorder(Graphics g,
int x,
int y,
int width,
int height)
- Draws the InternalWindowBorder's bottom border.
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
public void describeClassInfo(ClassInfo info)
- Describes the InternalWindowBorder class' information.
- Overrides:
- describeClassInfo in class Border
- See Also:
- describeClassInfo
public void encode(Encoder encoder) throws CodingException
- Encodes the InternalWindowBorder instance.
- Overrides:
- encode in class Border
- See Also:
- encode
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
Copyright © 1997 Netscape Communications Corporation. All rights reserved
Please send any comments or corrections to ifcfeedback@netscape.com
HTML generated on 21 Oct 1997