setBBox(rectangle.getBounds());
setBBox(rectangle.getBounds());
for (final WordText wordText : words) { final String key = wordText.getText() + wordText.getBounds().getBounds(); if (refs.add(key)) { trimmedWords.add(wordText);
rectangle = getUserSpaceRectangle().getBounds();
rectangle = getUserSpaceRectangle().getBounds();
Rectangle bounds = new Rectangle2D.Float(x, y, width, height).getBounds();
Rectangle bounds = new Rectangle2D.Float(x, y, width, height).getBounds();
TextAnnotationHandler.createTextAnnotation( documentViewModel.getDocument().getPageTree().getLibrary(), selectedMarkupAnnotation.getUserSpaceRectangle().getBounds(), getPageTransform()); markupAnnotation.setTitleText(title); TextAnnotationHandler.createPopupAnnotation( documentViewModel.getDocument().getPageTree().getLibrary(), this.popupAnnotation.getUserSpaceRectangle().getBounds(), markupAnnotation, getPageTransform()); popupAnnotation.setOpen(false);
boolean found = false; for (LineText sortedPageLine : sortedPageLines) { Rectangle sortedBounds = sortedPageLine.getBounds().getBounds(); float height = sortedBounds.height; float y = sortedBounds.y;
protected void resetNullAppearanceStream() { // try and generate an appearance stream. if (!hasAppearanceStream()) { Object tmp = getObject(RECTANGLE_KEY); Rectangle2D.Float rectangle = null; if (tmp instanceof java.util.List) { rectangle = library.getRectangle(entries, RECTANGLE_KEY); } if (rectangle != null) { setBBox(rectangle.getBounds()); } resetAppearanceStream(new AffineTransform()); } }
private static ImageLayout layoutHelper(RenderedImage source, float originX, float originY, float width, float height) { Rectangle bounds = new Rectangle2D.Float(originX, originY, width, height).getBounds(); return new ImageLayout(bounds.x, bounds.y, bounds.width, bounds.height, source .getTileGridXOffset(), source.getTileGridYOffset(), source.getTileWidth(), source .getTileHeight(), source.getSampleModel(), source.getColorModel()); }
private static ImageLayout layoutHelper(RenderedImage source, float originX, float originY, float width, float height) { Rectangle bounds = new Rectangle2D.Float(originX, originY, width, height).getBounds(); return new ImageLayout(bounds.x, bounds.y, bounds.width, bounds.height, source .getTileGridXOffset(), source.getTileGridYOffset(), source.getTileWidth(), source .getTileHeight(), source.getSampleModel(), source.getColorModel()); }
private static ImageLayout layoutHelper(RenderedImage source, float originX, float originY, float width, float height) { Rectangle bounds = new Rectangle2D.Float(originX, originY, width, height).getBounds(); return new ImageLayout(bounds.x, bounds.y, bounds.width, bounds.height, source .getTileGridXOffset(), source.getTileGridYOffset(), source.getTileWidth(), source .getTileHeight(), source.getSampleModel(), source.getColorModel()); }