public class ScreenLabel
extends java.lang.Object
It works in combination with a LabelInfo class to describe more broad attributes such as color and font size.
Modifier and Type | Field and Description |
---|---|
float |
layoutImportance
The layout engine controls how text is displayed.
|
int |
layoutPlacement
The layout placement controls where we can put the label relative to
its point.
|
Point2d |
layoutSize
If set, this is the size of the object as seen by the layout engine.
|
Point2d |
loc
The location in geographic (WGS84) radians.
|
Point2d |
offset
If non-null an offset to tweak the label by.
|
double |
rotation
If non-zero we'll rotate the label that number of radians around the attachment
point.
|
boolean |
selectable |
java.lang.String |
text
The text to display for the label.
|
java.lang.String |
uniqueID |
java.lang.Object |
userObject
For selection, we include a user accessible object pointer.
|
Constructor and Description |
---|
ScreenLabel() |
public Point2d loc
public double rotation
public java.lang.String text
public Point2d offset
public boolean selectable
public float layoutImportance
Defaults to MAXFLOAT, which is off. That means the layout engine does not control the associated labels.
public int layoutPlacement
public Point2d layoutSize
public java.lang.String uniqueID
public java.lang.Object userObject