public class TransparentRaster extends java.lang.Object implements ERaster
Constructor and Description |
---|
TransparentRaster(int numIntsPerRow,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
copyBits(TransparentRaster src,
int minSrcX,
int maxSrcX,
int minSrcY,
int maxSrcY,
int dx,
int dy)
Method to copy bits from rectangle of source TransparentRaster to thus ERaster.
|
void |
drawHorLine(int y,
int lX,
int hX)
Method to draw a horizontal line [lX,hX] x [y].
|
void |
drawPoint(int x,
int y)
Method to draw a point.
|
void |
drawVerLine(int x,
int lY,
int hY)
Method to draw a vertical line [x] x [lY,hY].
|
void |
eraseAll() |
void |
eraseBox(int lX,
int hX,
int lY,
int hY) |
void |
fillBox(int lX,
int hX,
int lY,
int hY)
Method to fill a box [lX,hX] x [lY,hY].
|
void |
fillHorLine(int y,
int lX,
int hX)
Method to fill a horizontal scanline [lX,hX] x [y].
|
void |
fillPoint(int x,
int y)
Method to fill a point.
|
void |
fillVerLine(int x,
int lY,
int hY)
Method to fill a vertical scanline [x] x [lY,hY].
|
EGraphics.Outline |
getOutline()
Method to return Electric Outline style for this ERaster.
|
public void fillBox(int lX, int hX, int lY, int hY)
ERaster
public void eraseBox(int lX, int hX, int lY, int hY)
public void eraseAll()
public void fillHorLine(int y, int lX, int hX)
ERaster
fillHorLine
in interface ERaster
y
- Y coordinatelX
- left X coordinatehX
- right X coordinatepublic void fillVerLine(int x, int lY, int hY)
ERaster
fillVerLine
in interface ERaster
x
- X coordinatelY
- top Y coordinatehY
- bottom Y coordinatepublic void fillPoint(int x, int y)
ERaster
public void drawHorLine(int y, int lX, int hX)
ERaster
drawHorLine
in interface ERaster
y
- Y coordinatelX
- left X coordinatehX
- right X coordinatepublic void drawVerLine(int x, int lY, int hY)
ERaster
drawVerLine
in interface ERaster
x
- X coordinatelY
- top Y coordinatehY
- bottom Y coordinatepublic void drawPoint(int x, int y)
ERaster
public EGraphics.Outline getOutline()
ERaster
getOutline
in interface ERaster
public void copyBits(TransparentRaster src, int minSrcX, int maxSrcX, int minSrcY, int maxSrcY, int dx, int dy)
ERaster
copyBits
in interface ERaster
src
- source TransparentRaster.minSrcX
- left bound of source rectangle (inclusive).maxSrcX
- right bound of source rectangle (inclusive).minSrcY
- top bound of source rectangle (inclusive).maxSrcY
- bottom bound of source rectangle (inclusive).dx
- the X translation factor from src space to dst space of the copy.dy
- the Y translation factor from src space to dst space of the copy.