|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.zuercher.gpx2map.util.Point
us.zuercher.gpx2map.plotter.Pixel
us.zuercher.gpx2map.plotter.AlphaPixel
public class AlphaPixel
AlphaPixel extends Pixel
to provide a Pixel with alpha blending.
Field Summary | |
---|---|
private int |
alpha
Alpha channel value. |
Constructor Summary | |
---|---|
AlphaPixel(int x,
int y,
Color c,
int alpha)
Constructs a new AlphaPixel with a specific color and arbitrary alpha value. |
|
AlphaPixel(int x,
int y,
int r,
int g,
int b,
int alpha)
Constructs a new AlphaPixel with arbitrary color and alpha values. |
Method Summary | |
---|---|
void |
apply(int[] rgbPixel)
Applies this AlphaPixel's color and alpha values against the given pixel value. |
boolean |
equals(Object other)
Tests whether this AlphaPixel is equal to another AlphaPixel. |
int |
getAlpha()
Returns the alpha channel value for this Pixel. |
int |
hashCode()
Returns a reasonable hash code for this AlphaPixel. |
String |
toString()
Returns a reasonable string representation of this AlphaPixel. |
Methods inherited from class us.zuercher.gpx2map.plotter.Pixel |
---|
asPoint, getBlue, getGreen, getRed |
Methods inherited from class us.zuercher.gpx2map.util.Point |
---|
above, below, distanceTo, equals, getX, getY, leftOf, rightOf, within, within |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final int alpha
Constructor Detail |
---|
public AlphaPixel(int x, int y, int r, int g, int b, int alpha)
x
- x positiony
- y positionr
- red color valueg
- green color valueb
- blue color valuealpha
- alpha valuepublic AlphaPixel(int x, int y, Color c, int alpha)
x
- x positiony
- y positionc
- coloralpha
- alpha valueMethod Detail |
---|
public int getAlpha()
public int hashCode()
hashCode
in class Pixel
public boolean equals(Object other)
equals
in class Pixel
other
- another AlphaPixel
public String toString()
toString
in class Pixel
public void apply(int[] rgbPixel)
apply
in class Pixel
rgbPixel
- a raster line pixel value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |