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.void
setBackgroundColor
(Color color) Sets the background color.void
Sets the font.void
Sets the label.void
setTextColor
(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 (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).
-
-
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 (null
not permitted).
-
getFont
Returns the font.- Returns:
- The font (never
null
).
-
setFont
Sets the font.- Parameters:
font
- the font (null
not 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 (null
not 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 (null
not permitted).
-