@version $Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/laf/base/desktop/SelectManyShuttleRenderer.java#0 $) $Date: 10-nov-2005.18:56:13 $ @author The Oracle ADF Faces Team
849850851852853854855
return a; } private void goodBox(int latLo, int latHi, int lonLo, int lonHi) { new Box(latLo, latHi, lonLo, lonHi); }
3334353637383940414243
lonLo = fixLon(lonLo); lonHi = fixLon(lonHi); try { return lonLo <= lonHi ? new Box(latLo, latHi, lonLo, lonHi) : new BoxLatLonWithWraparound(latLo, latHi, lonLo, lonHi); } catch (IllegalArgumentException e) { throw new OutOfRangeException(String.format("latLo = %s, latHi = %s, lonLo = %s, lonHi = %s", latLo, latHi, lonLo, lonHi)); }
96979899100101102103
// BoxLatLonWithWraparound interface public BoxLatLonWithWraparound(double latLo, double latHi, double lonLo, double lonHi) { left = new Box(latLo, latHi, Spatial.MIN_LON, lonHi); right = new Box(latLo, latHi, lonLo, Spatial.MAX_LON); }
274275276277278279280281282283284
break; default: if (metadata != null) { byte[] data = new byte[length]; in.readFully(data, 0, length); metadata.addNode(new Box(length + 8, box, longLength, data)); } }
447448449450451452453454
* */ public void readIntPropertyBox(int length) throws IOException { if (metadata != null) { byte[] data = new byte[length]; in.readFully(data, 0, length); metadata.addNode(new Box(length + 8, 0x6A703269, data)); } }
224225226227228229230231232233234235
} private void writeBox(IIOMetadataNode node) throws IOException { int type = Box.getTypeInt((String)Box.getAttribute(node, "Type")); int length = new Integer((String)Box.getAttribute(node, "Length")).intValue(); Box box = Box.createBox(type, node); otherLength += length; stream.writeInt(length); stream.writeInt(type); byte[] data = box.getContent(); stream.write(data, 0, data.length); }