| java.lang.Object org.pdfbox.pdmodel.common.PDRange
PDRange | public class PDRange implements COSObjectable(Code) | | This class will be used to signify a range. a(min) <= a* <= a(max)
author: Ben Litchfield version: $Revision: 1.4 $ |
Constructor Summary | |
public | PDRange() Constructor with an initial range of 0..1. | public | PDRange(COSArray range) Constructor assumes a starting index of 0. | public | PDRange(COSArray range, int index) Constructor with an index into an array. |
Method Summary | |
public COSArray | getCOSArray() This will get the underlying array value. | public COSBase | getCOSObject() Convert this standard java object to a COS object. | public float | getMax() This will get the maximum value of the range. | public float | getMin() This will get the minimum value of the range. | public void | setMax(float max) This will set the maximum value for the range. | public void | setMin(float min) This will set the minimum value for the range. |
PDRange | public PDRange()(Code) | | Constructor with an initial range of 0..1.
|
PDRange | public PDRange(COSArray range)(Code) | | Constructor assumes a starting index of 0.
Parameters: range - The array that describes the range. |
PDRange | public PDRange(COSArray range, int index)(Code) | | Constructor with an index into an array. Because some arrays specify
multiple ranges ie [ 0,1, 0,2, 2,3 ] It is convenient for this
class to take an index into an array. So if you want this range to
represent 0,2 in the above example then you would say new PDRange( array, 1 ) .
Parameters: range - The array that describes the index Parameters: index - The range index into the array for the start of the range. |
getCOSArray | public COSArray getCOSArray()(Code) | | This will get the underlying array value.
The cos object that this object wraps. |
getCOSObject | public COSBase getCOSObject()(Code) | | Convert this standard java object to a COS object.
The cos object that matches this Java object. |
getMax | public float getMax()(Code) | | This will get the maximum value of the range.
The max value. |
getMin | public float getMin()(Code) | | This will get the minimum value of the range.
The min value. |
setMax | public void setMax(float max)(Code) | | This will set the maximum value for the range.
Parameters: max - The new maximum for the range. |
setMin | public void setMin(float min)(Code) | | This will set the minimum value for the range.
Parameters: min - The new minimum for the range. |
|
|