public class TextStyle extends AnchorBean<TextStyle>
Constructor and Description |
---|
TextStyle() |
Modifier and Type | Method and Description |
---|---|
void |
drawText(String textToDraw,
BufferedImage image,
Extent extent)
Draws text on a
BufferedImage . |
RGBColorBean |
getFontColor()
Font-color of drawn text
|
String |
getFontName()
Font-name of drawn text
|
int |
getFontSize()
Font-size of drawn text
|
boolean |
isBold()
Whether to bold the drawn text
|
void |
setBold(boolean bold)
Whether to bold the drawn text
|
void |
setFontColor(RGBColorBean fontColor)
Font-color of drawn text
|
void |
setFontName(String fontName)
Font-name of drawn text
|
void |
setFontSize(int fontSize)
Font-size of drawn text
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void drawText(String textToDraw, BufferedImage image, Extent extent)
BufferedImage
.textToDraw
- the text to draw.image
- the image.extent
- the size of the image
.public int getFontSize()
public void setFontSize(int fontSize)
public String getFontName()
public void setFontName(String fontName)
public RGBColorBean getFontColor()
public void setFontColor(RGBColorBean fontColor)
public boolean isBold()
public void setBold(boolean bold)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.