public final class TextRenderer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
render(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y)
Draw text at the given coordinates.
|
static void |
render(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
boolean antiAliasing)
Draw text at the given coordinates.
|
static void |
render(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location) |
static void |
render(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
boolean antiAliasing) |
static void |
renderRotated(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
double angle) |
static void |
renderRotated(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
double angle,
boolean antiAliasing) |
static void |
renderRotated(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
double angle) |
static void |
renderRotated(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
double angle,
boolean antiAliasing) |
static void |
renderWithLinebreaks(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
double lineWidth)
Draw text at the given coordinates with a maximum line width for automatic line breaks.
|
static void |
renderWithLinebreaks(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
double lineWidth,
boolean antiAliasing)
Draw text at the given coordinates with a maximum line width for automatic line breaks and a provided Anti-Aliasing parameter.
|
static void |
renderWithLinebreaks(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
double lineWidth) |
static void |
renderWithLinebreaks(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
double lineWidth,
boolean antiAliasing) |
static void |
renderWithOutline(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
java.awt.Color outlineColor)
Draw text at the given coordinates with an outline in the provided color.
|
static void |
renderWithOutline(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
java.awt.Color outlineColor,
boolean antiAliasing) |
static void |
renderWithOutline(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
java.awt.Color outlineColor,
float stroke,
boolean antiAliasing)
Draw text at the given coordinates with an outline in the provided color and a provided Anti-Aliasing parameter.
|
static void |
renderWithOutline(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
java.awt.Color outlineColor) |
static void |
renderWithOutline(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
java.awt.Color outlineColor,
boolean antiAliasing) |
public static void render(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y)
g - the Graphics2D object to draw ontext - the String to be distributed over all generated linesx - the min x coordinatey - the min y coordinatepublic static void render(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location)
public static void render(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
boolean antiAliasing)
g - the Graphics2D object to draw ontext - the String to be distributed over all generated linesx - the min x coordinatey - the min y coordinateantiAliasing - Configure whether or not to render the text with antialiasing.RenderingHintspublic static void render(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
boolean antiAliasing)
public static void renderRotated(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
double angle,
boolean antiAliasing)
public static void renderRotated(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
double angle)
public static void renderRotated(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
double angle)
public static void renderRotated(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
double angle,
boolean antiAliasing)
public static void renderWithLinebreaks(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
double lineWidth)
g - the Graphics2D object to draw ontext - the String to be distributed over all generated linesx - the min x coordinatey - the min y coordinatelineWidth - the max line widthpublic static void renderWithLinebreaks(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
double lineWidth)
public static void renderWithLinebreaks(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
double lineWidth,
boolean antiAliasing)
g - the Graphics2D object to draw ontext - the String to be distributed over all generated linesx - the min x coordinatey - the min y coordinatelineWidth - the max line widthantiAliasing - Configure whether or not to render the text with antialiasing.RenderingHintspublic static void renderWithLinebreaks(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
double lineWidth,
boolean antiAliasing)
public static void renderWithOutline(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
java.awt.Color outlineColor)
g - the Graphics2D object to draw ontext - the String to be distributed over all generated linesx - the min x coordinatey - the min y coordinateoutlineColor - the outline colorpublic static void renderWithOutline(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
java.awt.Color outlineColor)
public static void renderWithOutline(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
java.awt.Color outlineColor,
boolean antiAliasing)
public static void renderWithOutline(java.awt.Graphics2D g,
java.lang.String text,
double x,
double y,
java.awt.Color outlineColor,
float stroke,
boolean antiAliasing)
g - the Graphics2D object to draw ontext - the String to be distributed over all generated linesx - the min x coordinatey - the min y coordinateoutlineColor - the outline colorstroke - the width of the outlineantiAliasing - the Anti-Aliasing object (e.g. RenderingHints.VALUE_TEXT_ANTIALIAS_OFF)RenderingHintspublic static void renderWithOutline(java.awt.Graphics2D g,
java.lang.String text,
java.awt.geom.Point2D location,
java.awt.Color outlineColor,
boolean antiAliasing)