| Constructor and Description |
|---|
LabelFace(Object3D owner,
int[] vertices,
java.lang.String label,
java.awt.Font font,
java.awt.Color textColor,
java.awt.Color backgroundColor)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getBackgroundColor()
Returns the background color.
|
java.awt.Color |
getColor()
Returns a transparent color, so that the face is not visible.
|
java.awt.Font |
getFont()
Returns the font.
|
java.lang.String |
getLabel()
Returns the label.
|
java.awt.Color |
getTextColor()
Returns the foreground color for the label text.
|
void |
setBackgroundColor(java.awt.Color color)
Sets the background color.
|
void |
setFont(java.awt.Font font)
Sets the font.
|
void |
setLabel(java.lang.String label)
Sets the label.
|
void |
setTextColor(java.awt.Color color)
Sets the foreground color for the label text.
|
calculateAverageZValue, calculateNormal, createPath, getOffset, getOutline, getOwner, getTag, getVertexCount, getVertexIndex, isFrontFacing, setOffset, toStringpublic LabelFace(Object3D owner, int[] vertices, java.lang.String label, java.awt.Font font, java.awt.Color textColor, java.awt.Color backgroundColor)
owner - the object that this face belongs to (null
not permitted).vertices - the vertices that define the face (null
not permitted).label - the label (null not permitted).font - the font (null not permitted).textColor - the foreground color (null not permitted).backgroundColor - the background color for the label
(null not permitted).public java.awt.Color getColor()
public java.lang.String getLabel()
null).public void setLabel(java.lang.String label)
label - the new label (null not permitted).public java.awt.Font getFont()
null).public void setFont(java.awt.Font font)
font - the font (null not permitted).public java.awt.Color getTextColor()
null).public void setTextColor(java.awt.Color color)
color - the color (null not permitted).public java.awt.Color getBackgroundColor()
null).public void setBackgroundColor(java.awt.Color color)
color - the color (null not permitted).