OffsetStructure

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

public final class OffsetStructure extends OSTypeStructure

The offset structure.

Constructors

ConstructorDescription
OffsetStructure(ClassID keyName, ClassID classID)Initializes a new instance of the OffsetStructure class.

Fields

FieldDescription
StructureKeyIdentifies the structure key.

Methods

MethodDescription
findByKeyName_from_placed_internalized(String keyName, PlacedResource container)Finds the structure by key name value.
findByKeyName_internalized(String keyName, System.Collections.Generic.IGenericList items)Finds the structure by key name value.
arrangeToDictionary_internalized(OSTypeStructure[] structures, System.Collections.Generic.Dictionary<String,OSTypeStructure> dictionary, String prefix)Arranges structures to one dictionary by key name.
equals(Object arg0)
getClass()
getClassID()Gets or sets the class ID.
getClassName()Gets or sets the class name.
getHeaderLength()Gets the header length.
getKey()Gets the structure key.
getKeyName()Gets or sets the key name.
getLength()Gets the OSTypeStructure length in bytes.
getValue()Gets or sets the integer value.
hashCode()
notify()
notifyAll()
removeByKeyName_internalized(String keyName, System.Collections.Generic.List items)Find and removes structure from the input items list.
save(StreamContainer streamContainer)Saves the structure to the specified stream container.
saveWithoutKeyName(StreamContainer streamContainer)Saves the structure to the specified stream container.
setClassID(ClassID value)Gets or sets the class ID.
setClassName(String value)Gets or sets the class name.
setKeyName(ClassID value)Gets or sets the key name.
setToList_internalized(OSTypeStructure structure, System.Collections.Generic.List items)Add or update the structure to input items list.
setValue(int value)Gets or sets the integer value.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

OffsetStructure(ClassID keyName, ClassID classID)

public OffsetStructure(ClassID keyName, ClassID classID)

Initializes a new instance of the OffsetStructure class.

Parameters:

ParameterTypeDescription
keyNameClassIDThe key name.
classIDClassIDThe class ID.

StructureKey

public static final int StructureKey

Identifies the structure key.

findByKeyName_from_placed_internalized(String keyName, PlacedResource container)

public static T <T>findByKeyName_from_placed_internalized(String keyName, PlacedResource container)

Finds the structure by key name value.

Parameters:

ParameterTypeDescription
keyNamejava.lang.StringThe key name.
containerPlacedResourceThe items container to search in.

T : The type of result object. |

Returns: T - The structure by key name value.

findByKeyName_internalized(String keyName, System.Collections.Generic.IGenericList items)

public static T <T>findByKeyName_internalized(String keyName, System.Collections.Generic.IGenericList<OSTypeStructure> items)

Finds the structure by key name value.

Parameters:

ParameterTypeDescription
keyNamejava.lang.StringThe key name.
itemscom.aspose.ms.System.Collections.Generic.IGenericList<com.aspose.psd.fileformats.psd.layers.layerresources.OSTypeStructure>The items to search in.

T : The type of result object. |

Returns: T - The structure by key name value.

arrangeToDictionary_internalized(OSTypeStructure[] structures, System.Collections.Generic.Dictionary<String,OSTypeStructure> dictionary, String prefix)

public static System.Collections.Generic.Dictionary<String,OSTypeStructure> arrangeToDictionary_internalized(OSTypeStructure[] structures, System.Collections.Generic.Dictionary<String,OSTypeStructure> dictionary, String prefix)

Arranges structures to one dictionary by key name.

Parameters:

ParameterTypeDescription
structuresOSTypeStructure[]The structures
dictionarycom.aspose.ms.System.Collections.Generic.Dictionary<java.lang.String,com.aspose.psd.fileformats.psd.layers.layerresources.OSTypeStructure>The dictionary to arrange
prefixjava.lang.StringThe prefix for key names.

Returns: com.aspose.ms.System.Collections.Generic.Dictionary<java.lang.String,com.aspose.psd.fileformats.psd.layers.layerresources.OSTypeStructure> - Arranged structures as dictionary by key name.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getClassID()

public final ClassID getClassID()

Gets or sets the class ID.

Value: The class ID.

Returns: ClassID

getClassName()

public final String getClassName()

Gets or sets the class name.

Value: The class name.

Returns: java.lang.String

getHeaderLength()

public int getHeaderLength()

Gets the header length.

Returns: int - The header length

getKey()

public int getKey()

Gets the structure key.

Returns: int

getKeyName()

public final ClassID getKeyName()

Gets or sets the key name.

Value: The key name.

Returns: ClassID

getLength()

public int getLength()

Gets the OSTypeStructure length in bytes.

Returns: int

getValue()

public final int getValue()

Gets or sets the integer value.

Value: The integer value.

Returns: int

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeByKeyName_internalized(String keyName, System.Collections.Generic.List items)

public static void removeByKeyName_internalized(String keyName, System.Collections.Generic.List<OSTypeStructure> items)

Find and removes structure from the input items list.

Parameters:

ParameterTypeDescription
keyNamejava.lang.StringThe key name.
itemscom.aspose.ms.System.Collections.Generic.List<com.aspose.psd.fileformats.psd.layers.layerresources.OSTypeStructure>The items.

save(StreamContainer streamContainer)

public final void save(StreamContainer streamContainer)

Saves the structure to the specified stream container.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.

saveWithoutKeyName(StreamContainer streamContainer)

public final void saveWithoutKeyName(StreamContainer streamContainer)

Saves the structure to the specified stream container.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.

setClassID(ClassID value)

public final void setClassID(ClassID value)

Gets or sets the class ID.

Value: The class ID.

Parameters:

ParameterTypeDescription
valueClassID

setClassName(String value)

public final void setClassName(String value)

Gets or sets the class name.

Value: The class name.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setKeyName(ClassID value)

public final void setKeyName(ClassID value)

Gets or sets the key name.

Value: The key name.

Parameters:

ParameterTypeDescription
valueClassID

setToList_internalized(OSTypeStructure structure, System.Collections.Generic.List items)

public static void setToList_internalized(OSTypeStructure structure, System.Collections.Generic.List<OSTypeStructure> items)

Add or update the structure to input items list.

Parameters:

ParameterTypeDescription
structureOSTypeStructureThe structure to add update.
itemscom.aspose.ms.System.Collections.Generic.List<com.aspose.psd.fileformats.psd.layers.layerresources.OSTypeStructure>The items.

setValue(int value)

public final void setValue(int value)

Gets or sets the integer value.

Value: The integer value.

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns: java.lang.String

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