Package jcckit.graphic
Interface TextAttributes
-
- All Superinterfaces:
GraphicAttributes
- All Known Implementing Classes:
BasicGraphicAttributes
public interface TextAttributes extends GraphicAttributes
Interface for text attributes.- Author:
- Franz-Josef Elmer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetFontName()Returns the font name.doublegetFontSize()Returns the font size in units of the device-independent coordinates.FontStylegetFontStyle()Returns the font style.AnchorgetHorizontalAnchor()Returns the anchor for horizontal position of the text.doublegetOrientationAngle()Returns the orientation angle in degree.java.awt.ColorgetTextColor()Returns the text color.AnchorgetVerticalAnchor()Returns the anchor for vertical position of the text.
-
-
-
Method Detail
-
getTextColor
java.awt.Color getTextColor()
Returns the text color.- Returns:
- null means default color of the renderer.
-
getFontName
java.lang.String getFontName()
Returns the font name.- Returns:
- null means default font name of the renderer.
-
getFontStyle
FontStyle getFontStyle()
Returns the font style.- Returns:
- null means default font style of the renderer.
-
getFontSize
double getFontSize()
Returns the font size in units of the device-independent coordinates.
-
getOrientationAngle
double getOrientationAngle()
Returns the orientation angle in degree. Zero means normal text orientation. Any positive angle means a counter-clockwise rotation of the text.
-
getHorizontalAnchor
Anchor getHorizontalAnchor()
Returns the anchor for horizontal position of the text. Note, that the anchor is related to the text before it is rotated by the orientation angle.- Returns:
- one of the three instances of Anchor.
-
getVerticalAnchor
Anchor getVerticalAnchor()
Returns the anchor for vertical position of the text. Note, that the anchor is related to the text before it is rotated by the orientation angle.- Returns:
- one of the three instances of Anchor.
-
-