|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.unca.cs.csci201.LabAids.Triangle
public class Triangle
Creates and draws an upwarding pointing triangle.
| Constructor Summary | |
|---|---|
Triangle(int x,
int y,
int length,
java.awt.Color c)
Constructs the triangle |
|
| Method Summary | |
|---|---|
void |
draw(java.awt.Graphics g)
Draws the triangle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Triangle(int x,
int y,
int length,
java.awt.Color c)
x - X co-ordinate of the top vertex of the triangley - Y co-ordinate of the top vertex of the trianglelength - Length of a side of the trianglec - Color of the triangle| Method Detail |
|---|
public void draw(java.awt.Graphics g)
g - Graphics object for drawing the triangle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||