maxPages = max(maxPages, pageId); maxY = max(maxY, l.getRegion().getMaxY()); minY = Math.min(minY, l.getRegion().getMinY()); List<BBlock> regions = pages.get(pageId); if (regions == null) else if (f.getMinY() > footerMin) footerRegions.add(f); maxThreshold = Math.min(maxThreshold, f.getMinY()); } else if (b.getRegion().getMinY() > maxThreshold - range * 0.01) {
at.translate(rect.getMinX(), rect.getMinY());
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); 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); jrect.getMinX() + 2.0, jrect.getMinY() + 2.0, jrect.getMaxX() - 2.0, jrect.getMinY() + 2.0); 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); jrect.getMinX() + 1.0, jrect.getMinY() + 1.0, jrect.getMaxX() - 1.0, jrect.getMinY() + 1.0); 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()) { 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); 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; }