TypeToolInfoResource

Inheritance: java.lang.Object, com.aspose.psd.fileformats.psd.layers.LayerResource

public class TypeToolInfoResource extends LayerResource

The type tool information. For PSD version lower than 6.0.

Constructors

ConstructorDescription
TypeToolInfoResource()

Fields

FieldDescription
PsbHeaderVersion_internalizedThe PSB header version
PsbResourceSignatureThe PSB-specific resource signature.
PsdHeaderVersion_internalizedThe PSD header version
ResourceSignatureThe common resource signature.
TypeToolKey_internalizedThe type tool info key.
ventureLicense_internalizedThe venture license.

Methods

MethodDescription
checkAndSetIfResourceIsPsbSpecific_internalized(int key)Checks the and set if resource is PSB specific.
equals(Object arg0)
getAComponent()Gets or sets a component.
getBComponent()Gets or sets the b component.
getCharacterCount()Gets or sets the character count.
getClass()
getColorSpaceValue()Gets or sets the color space value.
getFontVersion()Gets or sets the font version.
getFonts()Gets or sets the fonts.
getFontsCount()Gets the fonts count.
getGComponent()Gets or sets the g component.
getHeader_internalized()Gets or sets the header.
getHorizontalPlacement()Gets or sets the horizontal placement.
getKey()Gets the layer resource key.
getLength()Gets the layer resource length in bytes.
getLineCount()Gets the line count.
getLines()Gets or sets the lines.
getPrefixLength_internalized(int psdVersion)Gets the prefix length.
getPsdVersion()Gets the minimal psd version required for layer resource.
getRComponent()Gets or sets the r component.
getScaleFactor()Gets or sets the scale factor.
getSelectionEnd()Gets or sets the selection end.
getSelectionStart()Gets or sets the selection start.
getSignature()Gets the layer resource signature.
getStyles()Gets or sets the font styles.
getStylesCount()Gets the styles count.
getTransformMatrix()Gets or sets the transform matrix.
getTypeValue()Gets or sets the type value.
getVersion()Gets or sets the version.
getVerticalPlacement()Gets or sets the vertical placement.
hashCode()
isResourcePsbSpecificByKey_internalized(int key)Determines whether the resource is PSB specific.
isResourcePsbSpecific_internalized()Gets a value indicating whether this instance is resource PSB specific.
notify()
notifyAll()
save(StreamContainer streamContainer, int psdVersion)Saves the specified stream container.
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)Saves the custom resource header.
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong)Saves the header signature, identifier and length.
setAComponent(short value)Gets or sets a component.
setBComponent(short value)Gets or sets the b component.
setCharacterCount(int value)Gets or sets the character count.
setColorDataRaw_internalized(byte[] value)Gets or sets the color data raw.
setColorSpaceValue(short value)Gets or sets the color space value.
setFontVersion(short value)Gets or sets the font version.
setFonts(TypeToolFontInfo[] value)Gets or sets the fonts.
setGComponent(short value)Gets or sets the g component.
setHeader_internalized(PsdHeader value)Gets or sets the header.
setHorizontalPlacement(int value)Gets or sets the horizontal placement.
setLines(TypeToolLineInfo[] value)Gets or sets the lines.
setRComponent(short value)Gets or sets the r component.
setScaleFactor(int value)Gets or sets the scale factor.
setSelectionEnd(int value)Gets or sets the selection end.
setSelectionStart(int value)Gets or sets the selection start.
setStyles(TypeToolStyleInfo[] value)Gets or sets the font styles.
setTransformMatrix(double[] value)Gets or sets the transform matrix.
setTypeValue(short value)Gets or sets the type value.
setVersion(short value)Gets or sets the version.
setVerticalPlacement(int value)Gets or sets the vertical placement.
toString()Returns a String that represents this instance.
wait()
wait(long arg0)
wait(long arg0, int arg1)

TypeToolInfoResource()

public TypeToolInfoResource()

PsbHeaderVersion_internalized

public static final int PsbHeaderVersion_internalized

The PSB header version

PsbResourceSignature

public static final int PsbResourceSignature

The PSB-specific resource signature.

PsdHeaderVersion_internalized

public static final int PsdHeaderVersion_internalized

The PSD header version

ResourceSignature

public static final int ResourceSignature

The common resource signature.

TypeToolKey_internalized

public static final int TypeToolKey_internalized

The type tool info key.

ventureLicense_internalized

public Object ventureLicense_internalized

The venture license.

checkAndSetIfResourceIsPsbSpecific_internalized(int key)

public final void checkAndSetIfResourceIsPsbSpecific_internalized(int key)

Checks the and set if resource is PSB specific. Some resources are not recognized for now, but we have full list of PSB specific resources which changes their behaviour on save. So we need to check this in UnknownResource at least

Parameters:

ParameterTypeDescription
keyintThe key.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAComponent()

public final short getAComponent()

Gets or sets a component.

Value: a component.

Returns: short

getBComponent()

public final short getBComponent()

Gets or sets the b component.

Value: The b component.

Returns: short

getCharacterCount()

public final int getCharacterCount()

Gets or sets the character count.

Value: The character count.

Returns: int

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColorSpaceValue()

public final short getColorSpaceValue()

Gets or sets the color space value.

Value: The color space value.

Returns: short

getFontVersion()

public final short getFontVersion()

Gets or sets the font version.

Value: The font version.

Returns: short

getFonts()

public final TypeToolFontInfo[] getFonts()

Gets or sets the fonts.

Value: The fonts.

Returns: com.aspose.psd.fileformats.psd.layers.layerresources.TypeToolFontInfo[]

getFontsCount()

public final short getFontsCount()

Gets the fonts count.

Returns: short

getGComponent()

public final short getGComponent()

Gets or sets the g component.

Value: The g component.

Returns: short

getHeader_internalized()

public final PsdHeader getHeader_internalized()

Gets or sets the header.

Value: The header.

Returns: com.aspose.internal.fileformats.psd.sections.PsdHeader

getHorizontalPlacement()

public final int getHorizontalPlacement()

Gets or sets the horizontal placement.

Value: The horizontal placement.

Returns: int

getKey()

public int getKey()

Gets the layer resource key.

Returns: int

getLength()

public int getLength()

Gets the layer resource length in bytes.

Returns: int

getLineCount()

public final short getLineCount()

Gets the line count.

Value: The line count.

Returns: short

getLines()

public final TypeToolLineInfo[] getLines()

Gets or sets the lines.

Value: The lines.

Returns: com.aspose.psd.fileformats.psd.layers.layerresources.TypeToolLineInfo[]

getPrefixLength_internalized(int psdVersion)

public final int getPrefixLength_internalized(int psdVersion)

Gets the prefix length. Default value is 12 for 8BIM resources. and 16 for 8B64

Parameters:

ParameterTypeDescription
psdVersionintThe PSD version.

Returns: int - The Prefix Length.

getPsdVersion()

public int getPsdVersion()

Gets the minimal psd version required for layer resource. 0 indicates no restrictions.

Returns: int

getRComponent()

public final short getRComponent()

Gets or sets the r component.

Value: The r component.

Returns: short

getScaleFactor()

public final int getScaleFactor()

Gets or sets the scale factor.

Value: The scale factor.

Returns: int

getSelectionEnd()

public final int getSelectionEnd()

Gets or sets the selection end.

Value: The selection end.

Returns: int

getSelectionStart()

public final int getSelectionStart()

Gets or sets the selection start.

Value: The selection start.

Returns: int

getSignature()

public int getSignature()

Gets the layer resource signature.

Returns: int

getStyles()

public final TypeToolStyleInfo[] getStyles()

Gets or sets the font styles.

Value: The font styles.

Returns: com.aspose.psd.fileformats.psd.layers.layerresources.TypeToolStyleInfo[]

getStylesCount()

public final short getStylesCount()

Gets the styles count.

Returns: short

getTransformMatrix()

public final double[] getTransformMatrix()

Gets or sets the transform matrix.

Value: The transform matrix.

Returns: double[]

getTypeValue()

public final short getTypeValue()

Gets or sets the type value.

Value: The type value.

Returns: short

getVersion()

public final short getVersion()

Gets or sets the version.

Value: The version.

Returns: short

getVerticalPlacement()

public final int getVerticalPlacement()

Gets or sets the vertical placement.

Value: The vertical placement.

Returns: int

hashCode()

public native int hashCode()

Returns: int

isResourcePsbSpecificByKey_internalized(int key)

public static boolean isResourcePsbSpecificByKey_internalized(int key)

Determines whether the resource is PSB specific.

Parameters:

ParameterTypeDescription
keyintThe resource key.

Returns: boolean - true if the resource is PSB specific; otherwise, false .

isResourcePsbSpecific_internalized()

public final boolean isResourcePsbSpecific_internalized()

Gets a value indicating whether this instance is resource PSB specific.

Value: true if this instance is resource PSB specific; otherwise, false .

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

save(StreamContainer streamContainer, int psdVersion)

public void save(StreamContainer streamContainer, int psdVersion)

Saves the specified stream container.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.
psdVersionintThe PSD version.

saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)

public final void saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)

Saves the custom resource header.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.
signatureintThe signature.

saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong)

public final void saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong)

Saves the header signature, identifier and length.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.
signatureintThe signature.
isLengthLongbooleanif set to true length is long.

setAComponent(short value)

public final void setAComponent(short value)

Gets or sets a component.

Value: a component.

Parameters:

ParameterTypeDescription
valueshort

setBComponent(short value)

public final void setBComponent(short value)

Gets or sets the b component.

Value: The b component.

Parameters:

ParameterTypeDescription
valueshort

setCharacterCount(int value)

public final void setCharacterCount(int value)

Gets or sets the character count.

Value: The character count.

Parameters:

ParameterTypeDescription
valueint

setColorDataRaw_internalized(byte[] value)

public final void setColorDataRaw_internalized(byte[] value)

Gets or sets the color data raw.

Value: The color data raw.

Parameters:

ParameterTypeDescription
valuebyte[]

setColorSpaceValue(short value)

public final void setColorSpaceValue(short value)

Gets or sets the color space value.

Value: The color space value.

Parameters:

ParameterTypeDescription
valueshort

setFontVersion(short value)

public final void setFontVersion(short value)

Gets or sets the font version.

Value: The font version.

Parameters:

ParameterTypeDescription
valueshort

setFonts(TypeToolFontInfo[] value)

public final void setFonts(TypeToolFontInfo[] value)

Gets or sets the fonts.

Value: The fonts.

Parameters:

ParameterTypeDescription
valueTypeToolFontInfo[]

setGComponent(short value)

public final void setGComponent(short value)

Gets or sets the g component.

Value: The g component.

Parameters:

ParameterTypeDescription
valueshort

setHeader_internalized(PsdHeader value)

public final void setHeader_internalized(PsdHeader value)

Gets or sets the header.

Value: The header.

Parameters:

ParameterTypeDescription
valuecom.aspose.internal.fileformats.psd.sections.PsdHeader

setHorizontalPlacement(int value)

public final void setHorizontalPlacement(int value)

Gets or sets the horizontal placement.

Value: The horizontal placement.

Parameters:

ParameterTypeDescription
valueint

setLines(TypeToolLineInfo[] value)

public final void setLines(TypeToolLineInfo[] value)

Gets or sets the lines.

Value: The lines.

Parameters:

ParameterTypeDescription
valueTypeToolLineInfo[]

setRComponent(short value)

public final void setRComponent(short value)

Gets or sets the r component.

Value: The r component.

Parameters:

ParameterTypeDescription
valueshort

setScaleFactor(int value)

public final void setScaleFactor(int value)

Gets or sets the scale factor.

Value: The scale factor.

Parameters:

ParameterTypeDescription
valueint

setSelectionEnd(int value)

public final void setSelectionEnd(int value)

Gets or sets the selection end.

Value: The selection end.

Parameters:

ParameterTypeDescription
valueint

setSelectionStart(int value)

public final void setSelectionStart(int value)

Gets or sets the selection start.

Value: The selection start.

Parameters:

ParameterTypeDescription
valueint

setStyles(TypeToolStyleInfo[] value)

public final void setStyles(TypeToolStyleInfo[] value)

Gets or sets the font styles.

Value: The font styles.

Parameters:

ParameterTypeDescription
valueTypeToolStyleInfo[]

setTransformMatrix(double[] value)

public final void setTransformMatrix(double[] value)

Gets or sets the transform matrix.

Value: The transform matrix.

Parameters:

ParameterTypeDescription
valuedouble[]

setTypeValue(short value)

public final void setTypeValue(short value)

Gets or sets the type value.

Value: The type value.

Parameters:

ParameterTypeDescription
valueshort

setVersion(short value)

public final void setVersion(short value)

Gets or sets the version.

Value: The version.

Parameters:

ParameterTypeDescription
valueshort

setVerticalPlacement(int value)

public final void setVerticalPlacement(int value)

Gets or sets the vertical placement.

Value: The vertical placement.

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns a String that represents this instance.

Returns: java.lang.String - A String that represents this instance.

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int