Class Pixel

java.lang.Object
  
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Pixel
extends java.awt.Point

Die Klasse Pixel erweitert die AWT-Klasse Point um die Möglichkeit dem Pixel eine Farbe zuzuweisen.

Version:
02.03.2016
Author:
Henning Ainödhofer
See Also:
Serialized Form

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

color

java.awt.Color color
Das Attribut color dient dazu, jedem Pixel eine Farbe zuzuweisen. Zu Beginn wird jeder erstellte Pixel in schwarz dargestellt.

Constructor Detail

Pixel

public Pixel(int x,
             int y,
             java.awt.Color color)
Konstruktor der Klasse Pixel

Parameters:
x -
y -
color -
Method Detail

getColor

public java.awt.Color getColor()
Die Methode getColor gibt die Farbe des Pixels aus.

Returns:
color