COSC-4P82-Final-Project/lib/lilgp/lilgpSetup1.0/javadocs/SubPopGraph.html

213 lines
7.0 KiB
HTML

<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Sat May 10 12:20:47 1997 -->
<a name="_top_"></a>
<title>
Class SubPopGraph
</title>
</head>
<body>
<h1>
Class SubPopGraph
</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>
|
+----SubPopGraph
</pre>
<hr>
<dl>
<dt> public class <b>SubPopGraph</b>
<dt> extends <a href="java.awt.Panel.html#_top_">Panel</a>
</dl>
This class is responsible for generating a visual representation
of the sub-population exchanges. It uses double buffering and all
that other cool stuff.....
<dl>
<dt> <b>See Also:</b>
<dd> <a href="SubPopFrame.html#_top_">SubPopFrame</a>
</dl>
<hr>
<a name="index"></a>
<h2>
<img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
<dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#exchanges"><b>exchanges</b></a>
<dd>
<dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#graphHeight"><b>graphHeight</b></a>
<dd>
<dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#graphWidth"><b>graphWidth</b></a>
<dd>
<dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#radius"><b>radius</b></a>
<dd>
</dl>
<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="#SubPopGraph(SubPopFrame, int)"><b>SubPopGraph</b></a>(SubPopFrame, int)
<dd> Initialize instance variables and resize the panel
</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="#backgroundPaint(java.awt.Graphics)"><b>backgroundPaint</b></a>(Graphics)
<dd> The method that actually does all of the drawing.
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#minimumSize()"><b>minimumSize</b></a>()
<dd> Calculate the minimum size of the panel
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#paint(java.awt.Graphics)"><b>paint</b></a>(Graphics)
<dd> The overridden paint method responsible for figuring out if
we are double-buffered or not and then dispatching the drawing
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#preferredSize()"><b>preferredSize</b></a>()
<dd> Calculate the preferred size of the panel
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#refreshGraph(Exchange[])"><b>refreshGraph</b></a>(Exchange[])
<dd> After accepting a new set of exchanges, redraw the sub pop graph
</dl>
<a name="variables"></a>
<h2>
<img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="graphWidth"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>graphWidth</b>
<pre>
public final static int graphWidth
</pre>
<a name="graphHeight"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>graphHeight</b>
<pre>
public final static int graphHeight
</pre>
<a name="radius"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>radius</b>
<pre>
public final static int radius
</pre>
<a name="exchanges"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>exchanges</b>
<pre>
public <a href="Exchange.html#_top_">Exchange</a> exchanges[]
</pre>
<a name="constructors"></a>
<h2>
<img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="SubPopGraph"></a>
<a name="SubPopGraph(SubPopFrame, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>SubPopGraph</b>
<pre>
public SubPopGraph(<a href="SubPopFrame.html#_top_">SubPopFrame</a> spf,
int n)
</pre>
<dl>
<dd> Initialize instance variables and resize the panel
<dl>
<dt> <b>Parameters:</b>
<dd> spf - a reference to the SubPopFrame that created me
<dd> n - the number of sub populations
</dl>
</dl>
<a name="methods"></a>
<h2>
<img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="refreshGraph(Exchange[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="refreshGraph"><b>refreshGraph</b></a>
<pre>
public void refreshGraph(<a href="Exchange.html#_top_">Exchange</a> exArray[])
</pre>
<dl>
<dd> After accepting a new set of exchanges, redraw the sub pop graph
<dl>
<dt> <b>Parameters:</b>
<dd> exArray - an array of <tt>Exchange</tt> objects
</dl>
</dl>
<a name="backgroundPaint(java.awt.Graphics)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="backgroundPaint"><b>backgroundPaint</b></a>
<pre>
public void backgroundPaint(<a href="java.awt.Graphics.html#_top_">Graphics</a> g)
</pre>
<dl>
<dd> The method that actually does all of the drawing. It paints the
background, then the exchange links, the link arrowheads, and
finally the sub pops.
<dl>
<dt> <b>Parameters:</b>
<dd> g - the graphics object
</dl>
</dl>
<a name="paint(java.awt.Graphics)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="paint"><b>paint</b></a>
<pre>
public void paint(<a href="java.awt.Graphics.html#_top_">Graphics</a> g)
</pre>
<dl>
<dd> The overridden paint method responsible for figuring out if
we are double-buffered or not and then dispatching the drawing
<dl>
<dt> <b>Parameters:</b>
<dd> g - the graphics object
<dt> <b>Overrides:</b>
<dd> <a href="java.awt.Component.html#paint(java.awt.Graphics)">paint</a> in class <a href="java.awt.Component.html#_top_">Component</a>
</dl>
</dl>
<a name="minimumSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="minimumSize"><b>minimumSize</b></a>
<pre>
public <a href="java.awt.Dimension.html#_top_">Dimension</a> minimumSize()
</pre>
<dl>
<dd> Calculate the minimum size of the panel
<dl>
<dt> <b>Returns:</b>
<dd> the dimensions of the graph
<dt> <b>Overrides:</b>
<dd> <a href="java.awt.Container.html#minimumSize()">minimumSize</a> in class <a href="java.awt.Container.html#_top_">Container</a>
</dl>
</dl>
<a name="preferredSize()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="preferredSize"><b>preferredSize</b></a>
<pre>
public <a href="java.awt.Dimension.html#_top_">Dimension</a> preferredSize()
</pre>
<dl>
<dd> Calculate the preferred size of the panel
<dl>
<dt> <b>Returns:</b>
<dd> the minimum size of the panel
<dt> <b>Overrides:</b>
<dd> <a href="java.awt.Container.html#preferredSize()">preferredSize</a> in class <a href="java.awt.Container.html#_top_">Container</a>
</dl>
</dl>
</body>
</html>