public interface ILcdText extends ILcdShape
ILcdShape
representing a text string at a given position and with the given dimensions.text string
location
width
and height
, in model unitsrotation
, horizontal
and vertical
alignment (for multi-line text)location
of your text, while the rectangle represents the bounds
or your text object.
Modifier and Type | Field and Description |
---|---|
static int |
ALIGNMENT_BOTTOM
Constant for bottom text alignment.
|
static int |
ALIGNMENT_CENTER
Constant for center text alignment.
|
static int |
ALIGNMENT_LEFT
Constant for left text alignment.
|
static int |
ALIGNMENT_RIGHT
Constant for right text alignment.
|
static int |
ALIGNMENT_TOP
Constant for top text alignment.
|
Modifier and Type | Method and Description |
---|---|
double |
getCharacterHeight()
Returns the height of the individual text characters.
|
double |
getCharacterWidth()
Returns the width of the individual text characters.
|
int |
getHorizontalAlignment()
Returns the horizontal alignment of the text.
|
ILcdPoint |
getLocation()
Returns the location of the text.
|
double |
getRotAngle()
Returns the angle over which this text is rotated.
|
String |
getTextString()
Returns the text string of the text.
|
double |
getTextWidth()
Returns the width of the entire text string.
|
int |
getVerticalAlignment()
Returns the vertical alignment of the text.
|
contains2D, contains2D, contains3D, contains3D, getFocusPoint
getBounds
clone
static final int ALIGNMENT_LEFT
class javadoc
for an illustration.static final int ALIGNMENT_CENTER
class javadoc
for an illustration.static final int ALIGNMENT_RIGHT
class javadoc
for an illustration.static final int ALIGNMENT_TOP
class javadoc
for an illustration.static final int ALIGNMENT_BOTTOM
class javadoc
for an illustration.String getTextString()
ILcdPoint getLocation()
class javadoc
for an illustration how this related to alignment.double getTextWidth()
double getCharacterWidth()
double getCharacterHeight()
int getHorizontalAlignment()
class javadoc
for an illustration.ALIGNMENT_LEFT
,
ALIGNMENT_CENTER
, or ALIGNMENT_RIGHT
.int getVerticalAlignment()
class javadoc
for an illustration.ALIGNMENT_TOP
,
ALIGNMENT_CENTER
, or ALIGNMENT_BOTTOM
.double getRotAngle()
class javadoc
for an illustration how this relates to the text location
and alignment.