java.lang.Object
public class Pixel
Die Klasse Pixel erweitert die AWT-Klasse Point um die Möglichkeit dem Pixel eine Farbe zuzuweisen.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class |
---|
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
Field Summary | |
---|---|
(package private) java.awt.Color |
color
Das Attribut color dient dazu, jedem Pixel eine Farbe zuzuweisen. |
Fields inherited from class |
---|
x, y |
Constructor Summary | |
---|---|
Pixel(int x,
int y,
java.awt.Color color)
Konstruktor der Klasse Pixel |
Method Summary | |
---|---|
java.awt.Color |
getColor()
Die Methode getColor gibt die Farbe des Pixels aus. |
Methods inherited from class |
---|
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, toString, translate |
Methods inherited from class |
---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation |
Methods inherited from class |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.awt.Color color
Constructor Detail |
---|
public Pixel(int x, int y, java.awt.Color color)
x
- y
- color
- Method Detail |
---|
public java.awt.Color getColor()