int pageId = l.getPageId(); maxPages = max(maxPages, pageId); maxY = max(maxY, l.getRegion().getMaxY()); minY = Math.min(minY, l.getRegion().getMinY()); List<BBlock> regions = pages.get(pageId); for (Float f : regionsForDuplicates) { if (f.getMaxY() < headerMax) headerRegions.add(f); else if (f.getMinY() > footerMin) minThreshold = Math.max(minThreshold, h.getMaxY()); BBlock b = bIt.next(); if (b.getRegion().getMaxY() < minThreshold + range * 0.01) {
final float textx = Math.max( (float) ( ( x - zx ) / scale ), Math.min( (float) ( ( x + icon.getIconWidth() - zx ) / scale - 2 * textHalfWidth - 2f ), (float) rect.getCenterX() - textHalfWidth ) ); final float texty = (float) rect.getMaxY() + g.getFontMetrics().getAscent();
jrect.getMinX() + 1.0, jrect.getMaxY() - 1.0, jrect.getMaxX() - 2.0, jrect.getMaxY() - 1.0); g.draw(line); line = new Line2D.Double( // Left line jrect.getMinX() + 1.0f, jrect.getMinY() + 2.0, jrect.getMinX() + 1.0f, jrect.getMaxY() - 1.0); g.draw(line); jrect.getMinX() + 2.0, jrect.getMaxY() - 2.0, jrect.getMaxX() - 3.0, jrect.getMaxY() - 2.0); g.draw(line); line = new Line2D.Double( // Left line jrect.getMinX() + 2.0f, jrect.getMinY() + 3.0, jrect.getMinX() + 2.0f, jrect.getMaxY() - 2.0); g.draw(line); g.draw(line); line = new Line2D.Double( // Right line jrect.getMaxX() - 2.0f, jrect.getMinY() + 2.0, jrect.getMaxX() - 2.0f, jrect.getMaxY() - 2.0); g.draw(line); g.draw(line); line = new Line2D.Double( // Right line jrect.getMaxX() - 1.0f, jrect.getMinY() + 1.0, jrect.getMaxX() - 1.0f, jrect.getMaxY() - 1.0); g.draw(line); } else if (bs.isStyleInset()) { jrect.getMinX() + 1.0, jrect.getMaxY() - 1.0, jrect.getMaxX() - 1.0, jrect.getMaxY() - 1.0); g.draw(line); line = new Line2D.Double( // Left line jrect.getMinX() + 1.0f, jrect.getMinY() + 1.0, jrect.getMinX() + 1.0f, jrect.getMaxY() - 1.0); g.draw(line);
if (selBounds.getMinY() < kidBounds.getMaxY() && selBounds.getMaxY() > kidBounds.getMinY()) testDist2 = 0; else if (selBounds.getMinY() < kidBounds.getMaxY() && selBounds.getMaxY() > kidBounds.getMinY()) testDist2 = 0; else if (selBounds.getMinY() < kidBounds.getMaxY() && selBounds.getMaxY() > kidBounds.getMinY()) testDist2 = 0; else if (selBounds.getMinY() < kidBounds.getMaxY() && selBounds.getMaxY() > kidBounds.getMinY()) testDist2 = 0; else if (selBounds.getMinY() < kidBounds.getMaxY() && selBounds.getMaxY() > kidBounds.getMinY()) testDist2 = 0; else if (selBounds.getMinY() < kidBounds.getMaxY() && selBounds.getMaxY() > kidBounds.getMinY()) testDist2 = 0; else
private Rectangle2D.Float deriveBorderDrawingRectangle(float borderWidth) { Rectangle2D.Float jrect = deriveDrawingRectangle(); float halfBorderWidth = borderWidth / 2.0f; double minX = jrect.getMinX() + halfBorderWidth; double minY = jrect.getMinY() + halfBorderWidth; double maxX = jrect.getMaxX() - halfBorderWidth; double maxY = jrect.getMaxY() - halfBorderWidth; jrect.setFrameFromDiagonal(minX, minY, maxX, maxY); return jrect; }