| java.lang.Object org.krysalis.jcharts.chartText.TextTag
TextTag | public class TextTag implements HTMLTestable,Serializable(Code) | | author: John Thomsen, Nathaniel Auvil version: $Id: TextTag.java,v 1.2 2004/05/31 16:27:21 nathaniel_auvil Exp $ |
TextTag | public TextTag(String text, Font baseFont, Font derivedFont, FontRenderContext fontRenderContext)(Code) | | Constructor when using transformed (derived) fonts
The need for this arises because the java metrics classes return either 0 or very strange
values for the width and height of a string (TextLayout, LineMetrics, etc..) when
the font is derived
Parameters: text - Parameters: baseFont - is the original (untransformed) font. Parameters: derivedFont - is the transformed font Parameters: fontRenderContext - |
getBottomSide | public float getBottomSide()(Code) | | |
getFontAscent | public float getFontAscent()(Code) | | |
getFontDescent | public float getFontDescent()(Code) | | |
getHeight | public float getHeight()(Code) | | |
getHidden | public boolean getHidden()(Code) | | |
getRightSide | public float getRightSide()(Code) | | |
getWidth | public float getWidth()(Code) | | |
getXPosition | public float getXPosition()(Code) | | |
getYPosition | public float getYPosition()(Code) | | |
render | public void render(Graphics2D g2d, Paint fontColor)(Code) | | Renders the text, at the position - renders from the top (instead of baseline)
Parameters: g2d - Parameters: fontColor - |
render | public void render(Graphics2D g2d, float x, float y)(Code) | | Renders the text, at the position - renders from the top (instead of baseline)
Parameters: g2d - |
setHidden | public void setHidden(boolean b)(Code) | | |
setPosition | public void setPosition(float x, float y)(Code) | | |
setXPosition | public void setXPosition(float x)(Code) | | |
setYPosition | public void setYPosition(float y)(Code) | | |
toHTML | public void toHTML(HTMLGenerator htmlGenerator)(Code) | | Enables the testing routines to display the contents of this Object.
Parameters: htmlGenerator - |
|
|