|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.bom.annotations.ImageJ3D
public class ImageJ3D
Meant to encapsulate information representing an Image which is going to be rendered on a VisAD display without being subject to the usual VisAD transformations. Thus the Image should stick in Screen Coordinates.
| Field Summary | |
|---|---|
static int |
BOTTOM_LEFT
Image bottom left positioned on x, y |
static int |
BOTTOM_RIGHT
Image bottom right positioned on x, y |
static int |
CENTER
Image centre positioned on x, y |
static int |
TOP_LEFT
Image top left positioned on x, y |
static int |
TOP_RIGHT
Image top right positioned on x, y |
| Constructor Summary | |
|---|---|
ImageJ3D(Image image,
int position,
int x,
int y,
double zValue,
double scaleFactor)
Constructs a ImageJ3D from specified values in screen coordinates. |
|
ImageJ3D(String filename,
int position,
int x,
int y,
double zValue,
double scaleFactor)
Constructs a ImageJ3D from specified values in screen coordinates. |
|
| Method Summary | |
|---|---|
void |
setImage(Image image)
Set the Image for this object. |
void |
setImageJ3Ds(int x,
int y)
Set coordinates for the ImageJ3D. |
void |
setPosition(int position)
Set the relative position for this object. |
void |
setScaleFactor(double scaleFactor)
Set the amount to magnify the image. |
void |
setZValue(double zValue)
|
Object |
toDrawable(DisplayImpl display)
Make the Object into a Shape3D. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TOP_LEFT
public static final int TOP_RIGHT
public static final int BOTTOM_RIGHT
public static final int BOTTOM_LEFT
public static final int CENTER
| Constructor Detail |
|---|
public ImageJ3D(String filename,
int position,
int x,
int y,
double zValue,
double scaleFactor)
throws VisADException
filename - of a valid GIF, JPEG or PNG file.position - how to place the image relative to (x, y);
one of Image.TOP_LEFT (default), Image.TOP_RIGHT,
Image.BOTTOM_RIGHT, Image.BOTTOM_LEFT, Image.CENTERx - x screen coordinate of image location.y - y screen coordinate of image location.zValue - Virtual world value; larger z is in front.scaleFactor - scale factor for image magnification; greater
than 0.0.
VisADException - if the Image is bad.
public ImageJ3D(Image image,
int position,
int x,
int y,
double zValue,
double scaleFactor)
throws VisADException
image - base java.awt.Image object to represent.position - how to place the image relative to (x, y);
one of Image.TOP_LEFT (default), Image.TOP_RIGHT,
Image.BOTTOM_RIGHT, Image.BOTTOM_LEFT, Image.CENTERx - x screen coordinate of image location.y - y screen coordinate of image location.zValue - Virtual world value; larger z is in front.scaleFactor - scale factor for image magnification; greater
than 0.0.
VisADException - if the Image is bad.| Method Detail |
|---|
public void setImage(Image image)
throws VisADException
image - base java.awt.Image object to represent.
VisADException - if the Image is bad.public void setPosition(int position)
position - how to place the image relative to (x, y);
one of Image.TOP_LEFT (default), Image.TOP_RIGHT,
Image.BOTTOM_RIGHT, Image.BOTTOM_LEFT, Image.CENTERpublic void setScaleFactor(double scaleFactor)
scaleFactor - scale factor for image magnification; greater
than 0.0.
public void setImageJ3Ds(int x,
int y)
x - x screen coordinate of image location.y - y screen coordinate of image location.public void setZValue(double zValue)
zValue - Virtual world value; larger z is in front.
public Object toDrawable(DisplayImpl display)
throws VisADException
ScreenAnnotationShape3D.
toDrawable in interface ScreenAnnotationdisplay - the VisAD display for this Image.
VisADException - if there is a VisAD problem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||