image
Class Text

java.lang.Object
  extended by image.Image
      extended by image.Text

public class Text
extends Image

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

Text

public Text(java.lang.String str,
            int size,
            java.lang.String color)
Construct a text Image of the given String, size, and color


Text

public Text(java.lang.String str,
            double size,
            java.lang.String color)
Construct a text Image of the given String, size, and color

Method Detail

paint

public void paint(java.awt.Graphics g,
                  int x,
                  int y)
Paint this Image into the given graphics

Specified by:
paint in class Image

width

public int width()
Return the Width of this Image

Specified by:
width in class Image

height

public int height()
Return the Height of this Image

Specified by:
height in class Image