public class JLabelJ3D extends java.lang.Object implements ScreenAnnotation
| Constructor and Description |
|---|
JLabelJ3D(java.lang.String text)
It constructs a JLabelJ3D with text at the
origin, coloured white.
|
JLabelJ3D(java.lang.String text,
int xLocation,
int yLocation,
float[] colour,
java.awt.Font font,
double zValue,
double fontSizeInPixels,
int align,
int path)
Constructor for a JLabel3D - It is filled and should have non
null Font.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setAlign(int align) |
void |
setColour(float[] colour) |
void |
setFont(java.awt.Font font) |
void |
setFontSize(double fontSizeInPixels) |
void |
setLocation(int xLocation,
int yLocation) |
void |
setPath(int path) |
void |
setText(java.lang.String text) |
void |
setZValue(double zValue) |
java.lang.Object |
toDrawable(DisplayImpl display)
Make the JLabelJ3D into a
Shape3D. |
public JLabelJ3D(java.lang.String text)
text - text of the JLabelJ3D.public JLabelJ3D(java.lang.String text,
int xLocation,
int yLocation,
float[] colour,
java.awt.Font font,
double zValue,
double fontSizeInPixels,
int align,
int path)
text - text of the JLabelJ3D.xLocation - x position in screen coordinates.yLocation - y position in screen coordinates.colour - red green blue triple; each value in [0.0, 1.0].font - Font to use.zValue - Virtual world value; larger z is in front.fontSizeInPixels - font size.align - one of: path - one of: public void setText(java.lang.String text)
text - text of the JLabelJ3D.public void setLocation(int xLocation,
int yLocation)
xLocation - x position in screen coordinates.yLocation - y position in screen coordinates.public void setColour(float[] colour)
colour - red green blue triple; each value in [0.0, 1.0].public void setFont(java.awt.Font font)
font - Font to use.public void setZValue(double zValue)
zValue - Virtual world value; larger z is in front.public void setFontSize(double fontSizeInPixels)
fontSizeInPixels - font size; by default characters
are 12 pixels in size.public void setAlign(int align)
align - one of: public void setPath(int path)
path - one of: public java.lang.Object toDrawable(DisplayImpl display) throws VisADException
Shape3D.toDrawable in interface ScreenAnnotationdisplay - the VisAD display for this Label.Shape3D.VisADException - - VisAD couldn't make the geometry array.