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,
int angleDegree) |
float |
getRotatedHeight(double angleDegree) |
static float |
getRotatedWidth(java.awt.Dimension dimension,
int angleDegree) |
float |
getRotatedWidth(double angleDegree) |
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 final float getWidth()
public final float getHeight()
public final float getGraphicOffset()
public final java.awt.font.TextLayout getLabelLayout()
public float getRotatedWidth(double angleDegree)
angleDegree - Angle in degreepublic float getRotatedHeight(double angleDegree)
angleDegree - Angle in degreepublic static float getRotatedHeight(java.awt.Dimension dimension,
int angleDegree)
dimension - Unrotated dimensionangleDegree - Angle in degreepublic static float getRotatedWidth(java.awt.Dimension dimension,
int angleDegree)
dimension - Unrotated dimensionangleDegree - Angle in degree