COSC_4P82_Assignment_1/lib/lilgp/lilgpSetup1.0/javadocs/GridBagPanel.html

104 lines
3.3 KiB
HTML
Raw Normal View History

2024-02-13 21:21:51 -05:00
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Sat May 10 12:20:47 1997 -->
<a name="_top_"></a>
<title>
Class GridBagPanel
</title>
</head>
<body>
<h1>
Class GridBagPanel
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
|
+----<a href="java.awt.Component.html#_top_">java.awt.Component</a>
|
+----<a href="java.awt.Container.html#_top_">java.awt.Container</a>
|
+----<a href="java.awt.Panel.html#_top_">java.awt.Panel</a>
|
+----GridBagPanel
</pre>
<hr>
<dl>
<dt> class <b>GridBagPanel</b>
<dt> extends <a href="java.awt.Panel.html#_top_">Panel</a>
</dl>
This class is simply a <tt>Panel</tt> that is managed
by the <tt>GridBagLayout</tt> manager.
<hr>
<a name="index"></a>
<h2>
<img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
<dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#GridBagPanel()"><b>GridBagPanel</b></a>()
<dd> Instantiate a new <tt>Panel</tt> and set its layout
manager to be <tt>GridBagLayout</tt>.
</dl>
<h2>
<img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#addComponent(java.awt.Component, int, int, int, int, int, int, int, int)"><b>addComponent</b></a>(Component, int, int, int, int, int, int, int, int)
<dd> A generic method that allows you to add a <tt>Component</tt> to the
<tt>GridBagPanel</tt> and specify all of the <tt>GridBagConstraints</tt>
at the same time.
</dl>
<a name="constructors"></a>
<h2>
<img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="GridBagPanel"></a>
<a name="GridBagPanel()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>GridBagPanel</b>
<pre>
public GridBagPanel()
</pre>
<dl>
<dd> Instantiate a new <tt>Panel</tt> and set its layout
manager to be <tt>GridBagLayout</tt>.
</dl>
<a name="methods"></a>
<h2>
<img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="addComponent(java.awt.Component, int, int, int, int, int, int, int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="addComponent"><b>addComponent</b></a>
<pre>
public void addComponent(<a href="java.awt.Component.html#_top_">Component</a> component,
int gx,
int gy,
int gw,
int gh,
int wx,
int wy,
int fill,
int anchor)
</pre>
<dl>
<dd> A generic method that allows you to add a <tt>Component</tt> to the
<tt>GridBagPanel</tt> and specify all of the <tt>GridBagConstraints</tt>
at the same time. Each component has a default <tt>Inset</tt> setting
of (3, 1, 3, 1).
<dl>
<dt> <b>Parameters:</b>
<dd> component - the component being added to the Panel
<dd> gx - the gridx constraint
<dd> gy - the gridy constraint
<dd> gw - the grid width constraint
<dd> gh - the grid height constraint
<dd> wx - the weightx constraint
<dd> wy - the weighty constraint
<dd> fill - the fill constraint
<dd> anchor - the anchor constraint
</dl>
</dl>
</body>
</html>