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
 String getFontName()
          Returns the font name.
 double getFontSize()
          Returns the font size in units of the device-independent coordinates.
 FontStyle getFontStyle()
          Returns the font style.
 Anchor getHorizontalAnchor()
          Returns the anchor for horizontal position of the text.
 double getOrientationAngle()
          Returns the orientation angle in degree.
 Color getTextColor()
          Returns the text color.
 Anchor getVerticalAnchor()
          Returns the anchor for vertical position of the text.
 

Method Detail

getTextColor

Color getTextColor()
Returns the text color.

Returns:
null means default color of the renderer.

getFontName

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.


Copyright © 2013. All Rights Reserved.