/** * Get the value of the array as an integer. * * @param index The index into the list. * * @return The value at that index or -1 if does not exist. */ public int getInt( int index ) { return getInt( index, -1 ); }
/** * Get the bottom y coordinate. A return value of -1 implies that the current y-coordinate * will be used. * * @return The bottom y coordinate. */ public int getBottom() { return array.getInt( 3 ); }
/** * Get the right x coordinate. A return value of -1 implies that the current x-coordinate * will be used. * * @return The right x coordinate. */ public int getRight() { return array.getInt( 4 ); }
/** * Get the top y coordinate. A return value of -1 implies that the current y-coordinate * will be used. * * @return The top y coordinate. */ public int getTop() { return array.getInt( 2 ); }
/** * Get the left x coordinate. Return values of 0 or -1 imply that the current x-coordinate * will be used. * * @return The left x coordinate. */ public int getLeft() { return array.getInt( 2 ); }
/** * Get the top y coordinate. Return values of 0 or -1 imply that the current y-coordinate * will be used. * * @return The top y coordinate. */ public int getTop() { return array.getInt( 3 ); }
/** * Get the left x coordinate. A return value of -1 implies that the current x-coordinate * will be used. * * @return The left x coordinate. */ public int getLeft() { return array.getInt( 2 ); }
/** * Get the left x coordinate. A return value of -1 implies that the current x-coordinate * will be used. * * @return The left x coordinate. */ public int getLeft() { return array.getInt( 2 ); }
/** * Get the top y coordinate. A return value of -1 implies that the current y-coordinate * will be used. * * @return The top y coordinate. */ public int getTop() { return array.getInt( 5 ); }
/** * Get the highest value for a key in the number map. * * @return The highest value for a key in the map. */ public Integer getUpperLimit() { Integer retval = null; COSArray arr = (COSArray)node.getDictionaryObject( COSName.LIMITS ); if( arr != null && arr.get(0) != null ) { retval = arr.getInt( 1 ); } return retval; }
/** * Read out the byterange from the file. * * @return a integer array with the byterange */ public int[] getByteRange() { COSArray byteRange = (COSArray)dictionary.getDictionaryObject(COSName.BYTERANGE); int[] ary = new int[byteRange.size()]; for (int i = 0; i<ary.length;++i) { ary[i] = byteRange.getInt(i); } return ary; }
/** * Get the lowest value for a key in the number map. * * @return The lowest value for a key in the map. */ public Integer getLowerLimit() { Integer retval = null; COSArray arr = (COSArray)node.getDictionaryObject( COSName.LIMITS ); if( arr != null && arr.get(0) != null ) { retval = arr.getInt( 0 ); } return retval; }
/** * Get the top y coordinate. A return value of -1 implies that the current y-coordinate * will be used. * * @return The top y coordinate. */ public int getTop() { return array.getInt( 5 ); }
/** * Get the left x coordinate. A return value of -1 implies that the current x-coordinate * will be used. * * @return The left x coordinate. */ public int getLeft() { return array.getInt( 2 ); }
/** * Get the left x coordinate. A return value of -1 implies that the current x-coordinate * will be used. * * @return The left x coordinate. */ public int getLeft() { return array.getInt( 2 ); }
for (int i = 0; i < numberOfInputValues; i++) arraySize *= sizes.getInt(i);
/** * Returns all encode values as COSArray. * * @return the encode array. */ private COSArray getEncodeValues() { if (encode == null) { encode = (COSArray) getCOSObject().getDictionaryObject(COSName.ENCODE); // the default value is [0 (size[0]-1) 0 (size[1]-1) ...] if (encode == null) { encode = new COSArray(); COSArray sizeValues = getSize(); int sizeValuesSize = sizeValues.size(); for (int i = 0; i < sizeValuesSize; i++) { encode.add(COSInteger.ZERO); encode.add(COSInteger.get(sizeValues.getInt(i) - 1)); } } } return encode; }
if ((array.size() == 2) && (array.getInt(1) == 0))
if ((array.size() == 2) && (array.getInt(1) == 0))