public class Label
extends java.lang.Object
| Constructor and Description |
|---|
Label(float graphicOffset,
java.awt.font.TextLayout labelLayout,
java.awt.Graphics2D graphics2D)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getGraphicOffset() |
float |
getHeight() |
java.awt.font.TextLayout |
getLabelLayout() |
static float |
getRotatedHeight(java.awt.Dimension dimension,
float angle) |
float |
getRotatedHeight(float angle) |
static float |
getRotatedWidth(java.awt.Dimension dimension,
float angle) |
float |
getRotatedWidth(float angle) |
float |
getWidth() |
public Label(float graphicOffset,
java.awt.font.TextLayout labelLayout,
java.awt.Graphics2D graphics2D)
graphicOffset - Position offset.labelLayout - Layout for the label.graphics2D - Where it is going to be rendered (more accurate size computationpublic static float getRotatedHeight(java.awt.Dimension dimension,
float angle)
dimension - Unrotated dimensionangle - Anglepublic static float getRotatedWidth(java.awt.Dimension dimension,
float angle)
dimension - Unrotated dimensionangle - Anglepublic final float getWidth()
public final float getHeight()
public final float getGraphicOffset()
public final java.awt.font.TextLayout getLabelLayout()
public float getRotatedWidth(float angle)
angle - Anglepublic float getRotatedHeight(float angle)
angle - Angle