org.metasyntactic.graphics.tracer
Class Pixel

java.lang.Object
  |
  +--org.metasyntactic.graphics.tracer.Pixel

public class Pixel
extends java.lang.Object


Constructor Summary
Pixel(int x, int y, java.awt.Color color)
          Creates a new instance of Pixel
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean equals(Pixel p)
           
 java.awt.Color getColor()
          Getter for property color.
 int getX()
          Getter for property x.
 int getY()
          Getter for property y.
 int hashCode()
           
 void setColor(java.awt.Color color)
          Setter for property color.
 void setX(int x)
          Setter for property x.
 void setY(int y)
          Setter for property y.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pixel

public Pixel(int x,
             int y,
             java.awt.Color color)
Creates a new instance of Pixel

Method Detail

getX

public int getX()
Getter for property x.

Returns:
Value of property x.

setX

public void setX(int x)
Setter for property x.

Parameters:
x - New value of property x.

getY

public int getY()
Getter for property y.

Returns:
Value of property y.

setY

public void setY(int y)
Setter for property y.

Parameters:
y - New value of property y.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(Pixel p)

getColor

public java.awt.Color getColor()
Getter for property color.

Returns:
Value of property color.

setColor

public void setColor(java.awt.Color color)
Setter for property color.

Parameters:
color - New value of property color.