android.image
Class Text

java.lang.Object
  extended by android.image.Image
      extended by android.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")


Field Summary
 
Fields inherited from class android.image.Image
BLACK_OUTLINE, CLEAR, WHITE
 
Constructor Summary
Text(java.lang.String str, int 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 mode, 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(android.graphics.Canvas c, int x, int y)
          Paint this Image into the given graphics
 int width()
          Return the Width of this Image
 
Methods inherited from class android.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,
            int size,
            java.lang.String mode,
            java.lang.String color)
Construct a text Image of the given String, size, and color

Method Detail

paint

public void paint(android.graphics.Canvas c,
                  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