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
Constructor | Description |
---|---|
TypeToolInfoResource() | Initializes a new instance of the TypeToolInfoResource class. |
Fields
Field | Description |
---|---|
PsbHeaderVersion_internalized | The PSB header version |
PsbResourceSignature | The PSB-specific resource signature. |
PsdHeaderVersion_internalized | The PSD header version |
ResourceSignature | The common resource signature. |
TypeToolKey | The type tool info key. |
ventureLicense_internalized | The venture license. |
Methods
Method | Description |
---|---|
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()
Initializes a new instance of the TypeToolInfoResource class.
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
public static final int TypeToolKey
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:
Parameter | Type | Description |
---|---|---|
key | int | The key. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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 final 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:
Parameter | Type | Description |
---|---|---|
psdVersion | int | The PSD version. |
Returns: int - The Prefix Length.
getPsdVersion()
public final 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:
Parameter | Type | Description |
---|---|---|
key | int | The 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:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
psdVersion | int | The PSD version. |
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)
public final void saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)
Saves the custom resource header.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
signature | int | The 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:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
signature | int | The signature. |
isLengthLong | boolean | if set to true length is long. |
setAComponent(short value)
public final void setAComponent(short value)
Gets or sets a component.
Value: a component.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setBComponent(short value)
public final void setBComponent(short value)
Gets or sets the b component.
Value: The b component.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setCharacterCount(int value)
public final void setCharacterCount(int value)
Gets or sets the character count.
Value: The character count.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setColorDataRaw_internalized(byte[] value)
public final void setColorDataRaw_internalized(byte[] value)
Gets or sets the color data raw.
Value: The color data raw.
Parameters:
Parameter | Type | Description |
---|---|---|
value | byte[] |
setColorSpaceValue(short value)
public final void setColorSpaceValue(short value)
Gets or sets the color space value.
Value: The color space value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setFontVersion(short value)
public final void setFontVersion(short value)
Gets or sets the font version.
Value: The font version.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setFonts(TypeToolFontInfo[] value)
public final void setFonts(TypeToolFontInfo[] value)
Gets or sets the fonts.
Value: The fonts.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TypeToolFontInfo[] |
setGComponent(short value)
public final void setGComponent(short value)
Gets or sets the g component.
Value: The g component.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setHeader_internalized(PsdHeader value)
public final void setHeader_internalized(PsdHeader value)
Gets or sets the header.
Value: The header.
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.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:
Parameter | Type | Description |
---|---|---|
value | int |
setLines(TypeToolLineInfo[] value)
public final void setLines(TypeToolLineInfo[] value)
Gets or sets the lines.
Value: The lines.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TypeToolLineInfo[] |
setRComponent(short value)
public final void setRComponent(short value)
Gets or sets the r component.
Value: The r component.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setScaleFactor(int value)
public final void setScaleFactor(int value)
Gets or sets the scale factor.
Value: The scale factor.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setSelectionEnd(int value)
public final void setSelectionEnd(int value)
Gets or sets the selection end.
Value: The selection end.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setSelectionStart(int value)
public final void setSelectionStart(int value)
Gets or sets the selection start.
Value: The selection start.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setStyles(TypeToolStyleInfo[] value)
public final void setStyles(TypeToolStyleInfo[] value)
Gets or sets the font styles.
Value: The font styles.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TypeToolStyleInfo[] |
setTransformMatrix(double[] value)
public final void setTransformMatrix(double[] value)
Gets or sets the transform matrix.
Value: The transform matrix.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double[] |
setTypeValue(short value)
public final void setTypeValue(short value)
Gets or sets the type value.
Value: The type value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setVersion(short value)
public final void setVersion(short value)
Gets or sets the version.
Value: The version.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setVerticalPlacement(int value)
public final void setVerticalPlacement(int value)
Gets or sets the vertical placement.
Value: The vertical placement.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |