if (x == line.getX1() && y >= line.getY1() && y <= line.getY2()) { alreadyChecked = true; break;
if (y == line.getY1() && x >= line.getX1() && x <= line.getX2()) { alreadyChecked = true; break;
!(tableArea.contains(verticalRuling.getP1()) && tableArea.contains(verticalRuling.getP2()))) { tableArea.setTop((float) Math.floor(Math.min(tableArea.getTop(), verticalRuling.getY1()))); tableArea.setBottom((float) Math.ceil(Math.max(tableArea.getBottom(), verticalRuling.getY2()))); break;
g2d.setPaint(DrawUtil.getGradientPaint((float) gradientLine.getX1(), (float) gradientLine.getY1(), shapeInfo.fillPath.transformY1(shapeInfo.from, shapeInfo.to), (float) gradientLine.getX2(), (float) gradientLine.getY2(), shapeInfo.fillPath.transformY1(shapeInfo.to, shapeInfo.from)));
Shape s = new Line2D.Float(1, 2, 200, 200); Line2D.Float l1 = (Line2D.Float) s; double x1 = (l1.getX1()); double y1 = (l1.getY1()); double x2 = (l1.getX2()); double y2 = (l1.getY2()); System.out.println(x1+" , "+x2+" , "+y1+" , "+y2);
if (ruling.getY1() < table.getBottom()) { continue; float distanceFromTable = (float) ruling.getY1() - table.getBottom(); if (distanceFromTable <= rowHeightThreshold) { table.setBottom((float) Math.max(table.getBottom(), ruling.getY1())); table.setLeft((float) Math.min(table.getLeft(), ruling.getX1())); table.setRight((float) Math.max(table.getRight(), ruling.getX2())); Line2D.Float ruling = horizontalRulings.get(i); if (ruling.getY1() > table.getTop()) { continue; float distanceFromTable = table.getTop() - (float) ruling.getY1(); if (distanceFromTable <= rowHeightThreshold) { table.setTop((float) Math.min(table.getTop(), ruling.getY1())); table.setLeft((float) Math.min(table.getLeft(), ruling.getX1())); table.setRight((float) Math.max(table.getRight(), ruling.getX2()));
double p1y = line.getY1(); double p2x = line.getX2(); double p2y = line.getY2();