public class TextLayer extends Layer
The text layer class
RasterCachedImage.RotateTestMode
BlendSignature, LayerHeaderSize
Modifier and Type | Method and Description |
---|---|
Font |
getFont()
Gets the font.
|
TextFontInfo[] |
getFonts()
Gets the fonts set of the text layer.
|
String |
getInnerText()
Gets the text of the layer
|
String |
getText()
Gets the text.
|
RectangleF |
getTextBoundBox()
Gets or sets the text bound box.
|
Color |
getTextColor()
Gets the color of the text.
|
IText |
getTextData()
Gets the texts portions.
|
double[] |
getTransformMatrix()
Gets or sets the transform matrix
|
void |
setInnerText(String value)
Gets the text of the layer
|
void |
setTextBoundBox(RectangleF value)
Gets or sets the text bound box.
|
void |
setTransformMatrix(double[] value)
Gets or sets the transform matrix
|
void |
updateText(String text)
Updates the text.
|
void |
updateText(String text,
Color color)
Updates the text.
|
void |
updateText(String text,
float fontSize)
Updates the text.
|
void |
updateText(String text,
float fontSize,
Color color)
Updates the text.
|
void |
updateText(String text,
Point leftTopCoordinate) |
void |
updateText(String text,
Point leftTopCoordinate,
Color color)
Updates the text.
|
void |
updateText(String text,
Point leftTopCoordinate,
float fontSize)
Updates the text.
|
void |
updateText(String text,
Point leftTopCoordinate,
float fontSize,
Color color)
Updates the text.
|
addLayerMask, drawImage, equals, getBitsPerPixel, getBlendingOptions, getBlendModeKey, getBlendModeSignature, getBottom, getChannelInformation, getChannelsCount, getClipping, getDisplayName, getExtraLength, getFiller, getFillOpacity, getFlags, getHeight, getLayerBlendingRangesData, getLayerCreationDateTime, getLayerLock, getLayerMaskData, getLayerOptions, getLeft, getLength, getName, getOpacity, getResources, getRight, getSheetColorHighlight, getTop, getWidth, hasAlpha, hashCode, isVisible, isVisibleInGroup, mergeLayerTo, save, save, save, save, setBlendModeKey, setBottom, setChannelInformation, setClipping, setDisplayName, setFiller, setFillOpacity, setFlags, setLayerBlendingRangesData, setLayerCreationDateTime, setLayerLock, setLayerMaskData, setLeft, setName, setOpacity, setResources, setRight, setSheetColorHighlight, setTop, setVisible, shallowCopy
adjustBrightness, adjustContrast, adjustGamma, adjustGamma, binarizeBradley, binarizeBradley, binarizeFixed, binarizeOtsu, cacheData, crop, dither, doRotate, getRotateMode, grayscale, isCached, resize, resize, rotate, rotateFlip
crop, dither, filter, getArgb32Pixel, getDefaultArgb32Pixels, getDefaultPixels, getDefaultRawData, getDefaultRawData, getHorizontalResolution, getImageOpacity, getModifyDate, getPixel, getPremultiplyComponents, getRawCustomColorConverter, getRawDataFormat, getRawDataSettings, getRawFallbackIndex, getRawIndexedColorConverter, getRawLineSize, getSkewAngle, getTransparentColor, getUpdateXmpData, getUseRawData, getVerticalResolution, getXmpData, hasTransparentColor, isRawDataAvailable, isUsePalette, loadArgb32Pixels, loadArgb64Pixels, loadCmyk32Pixels, loadCmykPixels, loadPartialArgb32Pixels, loadPartialPixels, loadPixels, loadRawData, loadRawData, normalizeAngle, normalizeAngle, readArgb32ScanLine, readScanLine, replaceColor, replaceColor, replaceNonTransparentColors, replaceNonTransparentColors, rotate, saveArgb32Pixels, saveCmyk32Pixels, saveCmykPixels, savePixels, saveRawData, setArgb32Pixel, setHorizontalResolution, setPalette, setPixel, setPremultiplyComponents, setRawCustomColorConverter, setRawFallbackIndex, setRawIndexedColorConverter, setResolution, setTransparentColor, setTransparentColor, setUpdateXmpData, setUseRawData, setVerticalResolution, setXmpData, toBitmap, writeArgb32ScanLine, writeScanLine
canLoad, canLoad, canLoad, canLoad, canSave, create, create, create, getBackgroundColor, getBounds, getBufferSizeHint, getContainer, getDefaultOptions, getFileFormat, getFileFormat, getFileFormat, getFittingRectangle, getFittingRectangle, getInterruptMonitor, getOriginalOptions, getPalette, getProgressEventHandler, getProgressEventHandlerInfo, getProportionalHeight, getProportionalWidth, getSize, hasBackgroundColor, isAutoAdjustPalette, load, load, load, load, load, load, resize, resizeHeightProportionally, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, resizeWidthProportionally, save, save, save, save, setAutoAdjustPalette, setBackgroundColor, setBackgroundColor, setBufferSizeHint, setInterruptMonitor, setPalette
getDataStreamContainer, save, save, save, setDataStreamContainer
close, dispose, getDisposed
public final String getText()
Gets the text.
Value: The text.public final RectangleF getTextBoundBox()
Gets or sets the text bound box.
Value: The text bound box.public final void setTextBoundBox(RectangleF value)
Gets or sets the text bound box.
Value: The text bound box.public final String getInnerText()
Gets the text of the layer
Value: The text.public final void setInnerText(String value)
Gets the text of the layer
Value: The text.public final Font getFont()
Gets the font.
Value: The font.public final Color getTextColor()
Gets the color of the text.
PsdImageException
- Error parsing color component data
Value:
The color of the text.public final double[] getTransformMatrix()
Gets or sets the transform matrix
Value: The transform matrixpublic final void setTransformMatrix(double[] value)
Gets or sets the transform matrix
Value: The transform matrixpublic final IText getTextData()
Gets the texts portions.
LayerTextData
that is bound to the current text layer.public final void updateText(String text)
Updates the text.
text
- The text value.public final void updateText(String text, float fontSize)
Updates the text.
text
- The text value.fontSize
- Size of the font.public final void updateText(String text, Color color)
Updates the text.
text
- The text value.color
- The color value.public final void updateText(String text, float fontSize, Color color)
Updates the text.
text
- The text value.fontSize
- Size of the font.color
- The color value.public final void updateText(String text, Point leftTopCoordinate, float fontSize)
Updates the text.
text
- The text value.leftTopCoordinate
- The left top coordinate.fontSize
- Size of the font.public final void updateText(String text, Point leftTopCoordinate, Color color)
Updates the text.
text
- The text value.leftTopCoordinate
- The left top coordinate.color
- The color value.public final void updateText(String text, Point leftTopCoordinate, float fontSize, Color color)
Updates the text.
text
- The text value.leftTopCoordinate
- The left top coordinate.fontSize
- Size of the font.color
- The color value.public final TextFontInfo[] getFonts()
Gets the fonts set of the text layer.