public class ImageJ3D extends Object implements ScreenAnnotation
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 . |
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
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.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
ScreenAnnotation
Shape3D
.toDrawable
in interface ScreenAnnotation
display
- the VisAD display for this Image.VisADException
- if there is a VisAD problem.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.