com.alibaba.simpleimage.render
类 DrawTextItem
java.lang.Object
com.alibaba.simpleimage.render.DrawTextItem
- 直接已知子类:
- FixDrawTextItem, FootnoteDrawTextItem, ReleatePositionDrawTextItem
public abstract class DrawTextItem
- extends Object
类DrawTextItem.java的实现描述:TODO 类实现描述
- 作者:
- wendell 2011-3-28 下午01:33:53
DrawTextItem
public DrawTextItem(String text,
Color fontColor,
Color fontShadowColor,
Font font,
int minFontSize)
- 参数:
text - fontColor - fontShadowColor - font - minFontSize - textWidthPercent -
drawText
public abstract void drawText(Graphics2D graphics,
int width,
int height)
getText
public String getText()
- 返回:
- the text
getFontColor
public Color getFontColor()
- 返回:
- the fontColor
getFontShadowColor
public Color getFontShadowColor()
- 返回:
- the fontShadowColor
getFont
public Font getFont()
- 返回:
- the font
getMinFontSize
public int getMinFontSize()
- 返回:
- the minFontSize
setText
public void setText(String text)
- 参数:
text - the text to set
setFontColor
public void setFontColor(Color fontColor)
- 参数:
fontColor - the fontColor to set
setFontShadowColor
public void setFontShadowColor(Color fontShadowColor)
- 参数:
fontShadowColor - the fontShadowColor to set
setFont
public void setFont(Font font)
- 参数:
font - the font to set
setMinFontSize
public void setMinFontSize(int minFontSize)
- 参数:
minFontSize - the minFontSize to set
getShadowTranslation
public int getShadowTranslation(int fontsize)
Copyright © 2012–2013 Alibaba Group. All rights reserved.