|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object image.Image image.Text
public class Text
A Class representing an Image of a String.
new Text("Hello", 24, "olive")
new Text("Goodbye", 36, "indigo")
Constructor Summary | |
---|---|
Text(java.lang.String str,
double size,
java.lang.String color)
Construct a text Image of the given String, size, and color |
|
Text(java.lang.String str,
int size,
java.lang.String color)
Construct a text Image of the given String, size, and color |
Method Summary | |
---|---|
int |
height()
Return the Height of this Image |
void |
paint(java.awt.Graphics g,
int x,
int y)
Paint this Image into the given graphics |
int |
width()
Return the Width of this Image |
Methods inherited from class image.Image |
---|
flipHorizontal, flipVertical, overlay, overlay, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, overlayxy, rasterize, rotate, rotate, toFile, toScene, toWhiteFile, toWhiteScene |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Text(java.lang.String str, int size, java.lang.String color)
public Text(java.lang.String str, double size, java.lang.String color)
Method Detail |
---|
public void paint(java.awt.Graphics g, int x, int y)
paint
in class Image
public int width()
width
in class Image
public int height()
height
in class Image
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |