aspose.pdf
Class PositionArray

java.lang.Object
  extended by aspose.pdf.PositionArray

public class PositionArray
extends java.lang.Object

Encapsulates a position array used in the Line.


Constructor Summary
PositionArray()
          Initializes a new instance of the PositionArray class.
 
Method Summary
 java.lang.Object clone()
          Clones a new PositionArray object.
 int getLength()
          Represents an int value that indicates the length of the position array.
 float getPosition(int index)
          Gets the specified value in terms of index.
 void setLength(int value)
          Represents an int value that indicates the length of the position array.
 void setPosition(int index, float value)
          Sets the specified value in terms of index.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PositionArray

public PositionArray()
Initializes a new instance of the PositionArray class.

Method Detail

getLength

public int getLength()
Represents an int value that indicates the length of the position array. It should be equal to or greater than 4.


setLength

public void setLength(int value)
Represents an int value that indicates the length of the position array. It should be equal to or greater than 4.

Parameters:
value -

getPosition

public float getPosition(int index)
Gets the specified value in terms of index.

Parameters:
index -

setPosition

public void setPosition(int index,
                        float value)
Sets the specified value in terms of index.

Parameters:
index -
value -

clone

public java.lang.Object clone()
Clones a new PositionArray object.

Overrides:
clone in class java.lang.Object