Class WindowContentView
All Packages Class Hierarchy This Package Previous Next Index
Class WindowContentView
public class netscape.application.WindowContentView
extends netscape.application.View
{
/* Constructors
*/
public WindowContentView();
public WindowContentView(Rect);
public WindowContentView(int, int, int, int);
/* Methods
*/
public Color backgroundColor();
public void decode(Decoder);
public void describeClassInfo(ClassInfo);
public void drawView(Graphics);
public void encode(Encoder);
public boolean isTransparent();
public void setBackgroundColor(Color);
public void setColor(Color);
public void setTransparent(boolean);
}
View subclass used by an InternalWindow to hold its contents.
Constructors
.WindowContentView
public WindowContentView()
- Constructs a WindowContentView with origin (0, 0) and zero width and
height.
.WindowContentView
public WindowContentView(Rect rect)
- Convenience constructor for instantiating a WindowContentView with
bounds rect.
.WindowContentView
public WindowContentView(int x,
int y,
int width,
int height)
- Convenience constructor for instantiating a WindowContentView with
bounds (x, y, width, height).
Methods
public void setColor(Color aColor)
- Sets the background color displayed by the WindowContentView. By
default, this color is Color.lightGray.
This is IFC 1.0 API that has been replaced by setBackgroundColor()
- See Also:
- setBackgroundColor
public void setBackgroundColor(Color aColor)
- Sets the background color displayed by the WindowContentView. By
default, this color is Color.lightGray.
public Color backgroundColor()
- Returns the background color displayed by the WindowContentView.
public void setTransparent(boolean flag)
- Sets the WindowContentView to be transparent or opaque.
public boolean isTransparent()
- Overridden to return true if the WindowContentView is
transparent.
- Overrides:
- isTransparent in class View
- See Also:
- setTransparent
public void drawView(Graphics g)
- Fills the WindowContentView with its color, unless it or its
InternalWindow is transparent.
- Overrides:
- drawView in class View
public void describeClassInfo(ClassInfo info)
- Describes the WindowContentView class' coding information.
- Overrides:
- describeClassInfo in class View
- See Also:
- describeClassInfo
public void encode(Encoder encoder) throws CodingException
- Encodes the WindowContentView.
- Overrides:
- encode in class View
- See Also:
- encode
public void decode(Decoder decoder) throws CodingException
- Decodes the WindowContentView.
- Overrides:
- decode in class View
- 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