public final class UnitArrayStructure extends OSTypeStructure
Defines the UnitArrayStructure class that holds double values array and their measure unit.
It is used in the PSD file resources, usually by ObjectArrayStructure.
| Modifier and Type | Field and Description |
|---|---|
static int |
StructureKey
Defines the 'UnFl'
UnitArrayStructure key. |
| Constructor and Description |
|---|
UnitArrayStructure(ClassID keyName,
int unitType,
double[] values)
Initializes a new instance of the
UnitArrayStructure class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getKey()
Gets this unit array structure key.
|
int |
getLength()
Gets the
OSTypeStructure length in bytes. |
int |
getUnitType()
Gets or sets the measure unit type of the
UnitArrayStructure values. |
int |
getValueCount()
Gets the value count.
|
double[] |
getValues()
Gets or sets the unit array structure values.
|
void |
setUnitType(int value)
Gets or sets the measure unit type of the
UnitArrayStructure values. |
void |
setValues(double[] value)
Gets or sets the unit array structure values.
|
getHeaderLength, getKeyName, save, saveWithoutKeyName, setKeyNamepublic static final int StructureKey
Defines the 'UnFl' UnitArrayStructure key.
public UnitArrayStructure(ClassID keyName, int unitType, double[] values)
Initializes a new instance of the UnitArrayStructure class.
keyName - Name of the key.unitType - Type of the unit.values - The values.com.aspose.ms.System.ArgumentNullException - values must not be nullpublic final int getUnitType()
Gets or sets the measure unit type of the UnitArrayStructure values.
public final void setUnitType(int value)
Gets or sets the measure unit type of the UnitArrayStructure values.
public final int getValueCount()
Gets the value count.
Value: The value count in the unit array structure.public final double[] getValues()
Gets or sets the unit array structure values.
com.aspose.ms.System.ArgumentNullException - Values property must not be null.
Value:
The unit array structur values.public final void setValues(double[] value)
Gets or sets the unit array structure values.
com.aspose.ms.System.ArgumentNullException - Values property must not be null.
Value:
The unit array structur values.public int getKey()
Gets this unit array structure key.
getKey in class OSTypeStructurepublic int getLength()
Gets the OSTypeStructure length in bytes.
getLength in class OSTypeStructureCopyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.