x = clientAnchor.getX1(); y = clientAnchor.getY1(); width = clientAnchor.getX2() - x; height = clientAnchor.getY2() - y; imageAnchorProperties = ImageAnchorProperties.getImageAnchorProperties (clientAnchor.getProperties());
ClientAnchor clientAnchor = new ClientAnchor (x, y, x + width, y + height, imageAnchorProperties.getValue());
/** * Constructor * * @param erd the escher record data */ public ClientAnchor(EscherRecordData erd) { super(erd); byte[] bytes = getBytes(); // The properties properties = IntegerHelper.getInt(bytes[0], bytes[1]); // The x1 cell int x1Cell = IntegerHelper.getInt(bytes[2], bytes[3]); int x1Fraction = IntegerHelper.getInt(bytes[4], bytes[5]); x1 = x1Cell + (double) x1Fraction / (double) 1024; // The y1 cell int y1Cell = IntegerHelper.getInt(bytes[6], bytes[7]); int y1Fraction = IntegerHelper.getInt(bytes[8], bytes[9]); y1 = y1Cell + (double) y1Fraction / (double) 256; // The x2 cell int x2Cell = IntegerHelper.getInt(bytes[10], bytes[11]); int x2Fraction = IntegerHelper.getInt(bytes[12], bytes[13]); x2 = x2Cell + (double) x2Fraction / (double) 1024; // The y1 cell int y2Cell = IntegerHelper.getInt(bytes[14], bytes[15]); int y2Fraction = IntegerHelper.getInt(bytes[16], bytes[17]); y2 = y2Cell + (double) y2Fraction / (double) 256; }
IntegerHelper.getTwoBytes(y2fraction, data, 16); return setHeaderData(data);
ClientAnchor clientAnchor = new ClientAnchor (x, y, x + width, y + height, imageAnchorProperties.getValue());
/** * Constructor * * @param erd the escher record data */ public ClientAnchor(EscherRecordData erd) { super(erd); byte[] bytes = getBytes(); // The properties properties = IntegerHelper.getInt(bytes[0], bytes[1]); // The x1 cell int x1Cell = IntegerHelper.getInt(bytes[2], bytes[3]); int x1Fraction = IntegerHelper.getInt(bytes[4], bytes[5]); x1 = x1Cell + (double) x1Fraction / (double) 1024; // The y1 cell int y1Cell = IntegerHelper.getInt(bytes[6], bytes[7]); int y1Fraction = IntegerHelper.getInt(bytes[8], bytes[9]); y1 = y1Cell + (double) y1Fraction / (double) 256; // The x2 cell int x2Cell = IntegerHelper.getInt(bytes[10], bytes[11]); int x2Fraction = IntegerHelper.getInt(bytes[12], bytes[13]); x2 = x2Cell + (double) x2Fraction / (double) 1024; // The y1 cell int y2Cell = IntegerHelper.getInt(bytes[14], bytes[15]); int y2Fraction = IntegerHelper.getInt(bytes[16], bytes[17]); y2 = y2Cell + (double) y2Fraction / (double) 256; }
IntegerHelper.getTwoBytes(y2fraction, data, 16); return setHeaderData(data);
spContainer.add(opt); ClientAnchor clientAnchor = new ClientAnchor(column + 1.3, Math.max(0, row - 0.6), column + 1.3 + width,
spContainer.add(opt); ClientAnchor clientAnchor = new ClientAnchor(column + 1.3, Math.max(0, row - 0.6), column + 1.3 + width,
x = clientAnchor.getX1(); y = clientAnchor.getY1(); width = clientAnchor.getX2() - x; height = clientAnchor.getY2() - y; imageAnchorProperties = ImageAnchorProperties.getImageAnchorProperties (clientAnchor.getProperties());
newRecord = new ClientAnchor(erd);
newRecord = new ClientAnchor(erd);