Package quadbase.util
Interface IText
- All Superinterfaces:
Cloneable
- All Known Subinterfaces:
IAnnotation,ILabel,INoDataToPlotMessage,ITextString
- All Known Implementing Classes:
TextString,TextString
This interface is used to modify the font, color, and angle of text strings drawn in the chart.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintgetAngle()Returns the angle of the text string.getColor()Returns the color of the text string.getFont()Returns the font of the text string.voidsetAngle(int angle) Sets the counterclockwise angle of the text string.voidSets the color value for the text string.voidSets the font of the text string.
-
Method Details
-
getColor
Color getColor()Returns the color of the text string.- Returns:
- The Color object containing the RGB color values for the text.
-
setColor
Sets the color value for the text string.- Parameters:
c- The Color object.
-
getFont
Font getFont()Returns the font of the text string.- Returns:
- The Font object containing the text string font information.
-
setFont
Sets the font of the text string.- Parameters:
f- The input Font object.
-
getAngle
int getAngle()Returns the angle of the text string.- Returns:
- The counterclockwise angle of the text string, in degrees.
-
setAngle
void setAngle(int angle) Sets the counterclockwise angle of the text string.- Parameters:
angle- The angle, in degrees, of the text string.
-