java.lang.Object
org.jfree.chart3d.graphics3d.Face
org.jfree.chart3d.graphics3d.LabelFace
A face that carries a label (and is itself invisible).
- Since:
- 1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the background color.getColor()Returns a transparent color, so that the face is not visible.getFont()Returns the font.getLabel()Returns the label.Returns the foreground color for the label text.voidsetBackgroundColor(Color color) Sets the background color.voidSets the font.voidSets the label.voidsetTextColor(Color color) Sets the foreground color for the label text.Methods inherited from class org.jfree.chart3d.graphics3d.Face
calculateAverageZValue, calculateNormal, createPath, getOffset, getOutline, getOwner, getTag, getVertexCount, getVertexIndex, isFrontFacing, setOffset, toString
-
Constructor Details
-
LabelFace
public LabelFace(Object3D owner, int[] vertices, String label, Font font, Color textColor, Color backgroundColor) Creates a new instance.- Parameters:
owner- the object that this face belongs to (nullnot permitted).vertices- the vertices that define the face (nullnot permitted).label- the label (nullnot permitted).font- the font (nullnot permitted).textColor- the foreground color (nullnot permitted).backgroundColor- the background color for the label (nullnot permitted).
-
-
Method Details
-
getColor
Returns a transparent color, so that the face is not visible. -
getLabel
Returns the label.- Returns:
- The label (never
null).
-
setLabel
Sets the label.- Parameters:
label- the new label (nullnot permitted).
-
getFont
Returns the font.- Returns:
- The font (never
null).
-
setFont
Sets the font.- Parameters:
font- the font (nullnot permitted).
-
getTextColor
Returns the foreground color for the label text.- Returns:
- The foreground color (never
null).
-
setTextColor
Sets the foreground color for the label text.- Parameters:
color- the color (nullnot permitted).
-
getBackgroundColor
Returns the background color. The default value is a fully transparent color.- Returns:
- The background color (never
null).
-
setBackgroundColor
Sets the background color.- Parameters:
color- the color (nullnot permitted).
-