Class Triangle

java.lang.Object
  |
  +--Triangle

public class Triangle
extends java.lang.Object


Constructor Summary
Triangle()
          Constructor which initalizes all instance variables in Triangle Class.
 
Method Summary
 java.awt.Color getTriangleColor()
           
 int getX1()
           
 int getX2()
           
 int getX3()
           
 int getY1()
           
 int getY2()
           
 int getY3()
           
 void setPoint1(int x, int y)
           
 void setPoint2(int x, int y)
           
 void setPoint3(int x, int y)
           
 void setTriangleColor(java.awt.Color x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Triangle

public Triangle()
Constructor which initalizes all instance variables in Triangle Class.
Method Detail

setPoint1

public void setPoint1(int x,
                      int y)
Parameters:
x -  
y - Set point 1 values

setPoint2

public void setPoint2(int x,
                      int y)
Parameters:
x -  
y - Set point 2 values

setPoint3

public void setPoint3(int x,
                      int y)
Parameters:
x -  
y - Set point 3 values

setTriangleColor

public void setTriangleColor(java.awt.Color x)
Parameters:
x - Set triangle color

getTriangleColor

public java.awt.Color getTriangleColor()
Returns:
Color of the Tirangle

getX1

public int getX1()
Returns:
Integer value of x of point 1

getX2

public int getX2()
Returns:
Integer value of x of point 2

getX3

public int getX3()
Returns:
Integer value of x of point 3

getY1

public int getY1()
Returns:
Integer value of Y of point 1

getY2

public int getY2()
Returns:
Integer value of Y of point 2

getY3

public int getY3()
Returns:
Integer value of Y of point 3


Hosted by www.Geocities.ws

1