public class Pixel
extends java.awt.Point
Modifier and Type | Field and Description |
---|---|
int |
val |
Constructor and Description |
---|
Pixel()
empty constructor for the Pixel class.
|
Pixel(int h,
int v)
Standard constructor for the Pixel class.
|
Pixel(int h,
int v,
int aValue)
Standard constructor for the Pixel class.
|
Pixel(java.awt.geom.Point2D aPt)
Standard constructor for the Pixel class.
|
Pixel(java.awt.geom.Point2D aPt,
int val)
Standard constructor for the Pixel class.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Point |
asPoint()
returns the info for the pixel as a Point
|
void |
list()
lists the info for the pixel
|
Pixel |
relativeToFrame(java.awt.Point theOrigin)
calculates coordinates relative to another Point
|
void |
setValue(int val)
sets the value for the pixel coordinates
|
SpatialVector |
toSpatialVector()
returns the info for the pixel as a SpatialVector
|
java.lang.String |
toString()
returns the info for the pixel as a String
|
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, translate
public Pixel(int h, int v, int aValue)
h
- horizontal coordinatev
- vertical coordinateaValue
- the value of the pixelpublic Pixel(int h, int v)
h
- horizontal coordinatev
- vertical coordinatepublic Pixel()
public Pixel(java.awt.geom.Point2D aPt)
aPt
- Point with the coordinatespublic Pixel(java.awt.geom.Point2D aPt, int val)
aPt
- Point with the coordinatesval
- the value of the pixelpublic void setValue(int val)
public java.awt.Point asPoint()
public java.lang.String toString()
toString
in class java.awt.Point
public SpatialVector toSpatialVector()
public Pixel relativeToFrame(java.awt.Point theOrigin) throws java.lang.Exception
theOrigin
- the other pixeljava.lang.Exception
public void list()
RH, 2017