1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<p style="margin: 5px 5px 0px 5px;">
Create a new Hexagon instance.
</p>
<p style="margin: 5px 5px 0px 5px;">
Hexagon is a class that is a <i>logical</i> sublcass of
{@link Shape} (thanks to the <code>@extends</code> tag), but in
reality it is completely unrelated to Shape.
</p>
<h3 style="margin: 10px 0px 5px 0px">Parameters:</h3>
<table style="margin-left: 10px;">
<tr>
<td valign="top" style="margin-right:5px;">int</td>
<td valign="top" style="margin-right:5px;"><b>sideLength</b></td>
<td>The length of one side for the new Hexagon</td>
</tr>
</table>
<h4 style="margin: 10px 0px 5px 0px">Extends:</h4>
<p style="margin: 0px 14px 0px 14px;">Shape</p>
<h4 style="margin: 10px 0px 5px 0px">Examples:</h4>
<table style="margin-left: 10px;">
<tr>
<td valign="top">var h = new Hexagon(2);</td>
</tr>
<tr>
<td valign="top">if (hasHex) {
hex = new Hexagon(5);
color = hex.getColor();
}</td>
</tr>
</table>
|