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(String text, Color fontColor, Color fontShadowColor, Font font, int minFontSize)
           
 
方法摘要
abstract  void drawText(Graphics2D graphics, int width, int height)
           
 Font getFont()
           
 Color getFontColor()
           
 Color getFontShadowColor()
           
 int getMinFontSize()
           
 int getShadowTranslation(int fontsize)
           
 String getText()
           
 void setFont(Font font)
           
 void setFontColor(Color fontColor)
           
 void setFontShadowColor(Color fontShadowColor)
           
 void setMinFontSize(int minFontSize)
           
 void setText(String text)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

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–2015 Alibaba Group. All rights reserved.