public static class ImageAccess.Display
extends java.lang.Object
| Constructor and Description |
|---|
Display(boolean rgb,
ImageAccess c1,
ImageAccess c2,
ImageAccess c3,
java.lang.String title)
Create a new Display object.
|
Display(ImageAccess[] images,
java.lang.String title)
Create a new Display object.
|
Display(ImageAccess image,
java.lang.String title)
Create a new Display object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all the overlay components.
|
void |
overlayCircle(int x,
int y,
int radius)
Draw a circle overlaid over the image.
|
void |
overlayCross(int x,
int y,
int length)
Draw a cross overlaid over the image.
|
void |
overlayLine(int x1,
int y1,
int x2,
int y2)
Draw a line overlaid over the image.
|
void |
overlayText(int x,
int y,
java.lang.String text)
Print a message as overlay into a image.
|
void |
overlayValue(int x,
int y,
double value)
Print a numerical value as overlay into a image, 2 decimal digits.
|
void |
overlayValue(int x,
int y,
java.lang.String prefix,
double value)
Print a numerical value as overlay into a image with a prefix, 2
decimal digits.
|
void |
overlayValue(int x,
int y,
java.lang.String prefix,
double value,
int numberOfDigits)
Print a numerical value as overlay into a image with a prefix.
|
void |
setColor(int red,
int green,
int blue)
Change the color of the next overlay compound, opaque.
|
void |
setColor(int red,
int green,
int blue,
int transparency)
Change the color of the next overlay compound.
|
void |
setLocation(int x,
int y)
Change the location of the image window in the screen.
|
void |
setStroke(int stroke)
Change the stroke (thickness) of the next overlay compound.
|
public Display(ImageAccess image, java.lang.String title)
public Display(boolean rgb,
ImageAccess c1,
ImageAccess c2,
ImageAccess c3,
java.lang.String title)
rgb - true the 3 ImageAccess objects are shown in RGB. false,
the 3 ImageAccess objects are shown in HSB.public Display(ImageAccess[] images, java.lang.String title)
public void setLocation(int x,
int y)
x - Horizontal positiony - Vertical positionpublic void setColor(int red,
int green,
int blue,
int transparency)
red - Value for red, between 0 and 255green - Value for green, between 0 and 255blue - Value for blue, between 0 and 255transparency - Value for transparency, between 0 and 255public void setColor(int red,
int green,
int blue)
red - Value for red, between 0 and 255green - Value for green, between 0 and 255blue - Value for blue, between 0 and 255public void setStroke(int stroke)
stroke - public void overlayText(int x,
int y,
java.lang.String text)
x - Horizontal position of the messagey - Vertical position of the messagetext - Message to printpublic void overlayValue(int x,
int y,
java.lang.String prefix,
double value,
int numberOfDigits)
x - Horizontal position of the messagey - Vertical position of the messageprefix - Prefixvalue - Value to printnumberOfDigits - Number of digits of the value to printpublic void overlayValue(int x,
int y,
java.lang.String prefix,
double value)
x - Horizontal position of the messagey - Vertical position of the messageprefix - Prefixvalue - Value to printpublic void overlayValue(int x,
int y,
double value)
x - Horizontal position of the messagey - Vertical position of the messagevalue - Value to printpublic void overlayLine(int x1,
int y1,
int x2,
int y2)
x1 - Horizontal position of the first extremityy1 - Vertical position of the first extremityx2 - Horizontal position of the second extremityy2 - Vertical position of the second extremitypublic void overlayCross(int x,
int y,
int length)
x - Horizontal position of the crossy - Vertical position of the crosslength - Size of the crosspublic void overlayCircle(int x,
int y,
int radius)
x - Horizontal position of the center of the circley - Vertical position of the center of the circleradius - Radius of the circlepublic void clear()