org.minueto.image
Class MinuetoText

java.lang.Object
  extended by org.minueto.image.MinuetoImage
      extended by org.minueto.image.MinuetoText
All Implemented Interfaces:
java.lang.Cloneable, MinuetoDrawingSurface

public class MinuetoText
extends MinuetoImage

The MinuetoText class allows you to build an image of a string of text. You can draw that image on the screen or over another image.

Since MinuetoText extends MinuetoImage, all the important image manipulation fonctionnality (such as draw, drop, scale, etc) are available.

Since:
Minueto 0.4
See Also:
MinuetoImage

Constructor Summary
MinuetoText(java.lang.String text, MinuetoFont font, MinuetoColor color)
          Builds a MinuetoText image of a string of the specified color and font.
MinuetoText(java.lang.String text, MinuetoFont font, MinuetoColor color, boolean antiAliased)
          Builds a MinuetoText image of a string of the specified color and font.
 
Method Summary
 void setUpText(java.lang.String text, MinuetoFont font, MinuetoColor color, boolean antiAliased)
          Builds the actual MinuetoText objects.
 
Methods inherited from class org.minueto.image.MinuetoImage
clear, clear, clone, crop, draw, drawCircle, drawLine, drawPolygon, drawRectangle, flip, getHeight, getPixel, getWidth, mask, rotate, save, scale, setPixel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinuetoText

public MinuetoText(java.lang.String text,
                   MinuetoFont font,
                   MinuetoColor color)
Builds a MinuetoText image of a string of the specified color and font.

Parameters:
text - String denoting the text to be used to create the image.
color - MinuetoColor denoting the color of the string.
font - MinuetoFont describing the font used to draw the string.

MinuetoText

public MinuetoText(java.lang.String text,
                   MinuetoFont font,
                   MinuetoColor color,
                   boolean antiAliased)
Builds a MinuetoText image of a string of the specified color and font. The string can also anti-aliased. Anti-aliasing tries to improve the visibility of a font by introducing variation in the colors used to draw the text. This gives great result for large fonts, but should be avoided with small fonts.

Parameters:
text - String denoting the text to be used to create the image.
color - MinuetoColor denoting the color of the string.
font - MinuetoFont describing the font used to draw the string.
antiAliased - boolean indicating if the text should be anti-aliased.
Since:
0.45
Method Detail

setUpText

public void setUpText(java.lang.String text,
                      MinuetoFont font,
                      MinuetoColor color,
                      boolean antiAliased)
Builds the actual MinuetoText objects. The constructors are wrappers for this function.