net.jot.image
Class JOTAbstractPixel

java.lang.Object
  extended by net.jot.image.JOTAbstractPixel

public class JOTAbstractPixel
extends java.lang.Object

Represent the (color) data for a pixel (RGBA)

Author:
thibautc

Constructor Summary
JOTAbstractPixel(int red, int green, int blue, int alpha)
           
 
Method Summary
 boolean equals(java.lang.Object comp)
          Compares two pixels (macthing color)
 int getAlpha()
           
 int getBlue()
           
 int getGreen()
           
 int getRed()
           
 int hashCode()
           
 void setAlpha(int alpha)
           
 void setBlue(int blue)
           
 void setGreen(int green)
           
 void setRed(int red)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOTAbstractPixel

public JOTAbstractPixel(int red,
                        int green,
                        int blue,
                        int alpha)
Method Detail

getAlpha

public int getAlpha()

getBlue

public int getBlue()

getGreen

public int getGreen()

getRed

public int getRed()

setAlpha

public void setAlpha(int alpha)

setBlue

public void setBlue(int blue)

setGreen

public void setGreen(int green)

setRed

public void setRed(int red)

hashCode

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

equals

public boolean equals(java.lang.Object comp)
Compares two pixels (macthing color)

Overrides:
equals in class java.lang.Object
Parameters:
comp -
Returns: