use of jp.sourceforge.qrcode.geom.Line in project qrcode by yanbe.
the class JMFCanvas method drawCross.
public void drawCross(Point point, int color) {
int x = point.getX();
int y = point.getY();
Line[] lines = { new Line(x - 5, y - 1, x + 5, y - 1), new Line(x - 1, y - 5, x - 1, y + 5), new Line(x - 5, y + 1, x + 5, y + 1), new Line(x + 1, y - 5, x + 1, y + 5), new Line(x - 5, y, x + 5, y), new Line(x, y - 5, x, y + 5) };
drawLines(lines, color);
}
use of jp.sourceforge.qrcode.geom.Line in project qrcode by yanbe.
the class J2SEDebugCanvas method drawCross.
public void drawCross(Point point, int color) {
int x = point.getX();
int y = point.getY();
Line[] lines = { new Line(x - 5, y, x + 5, y), new Line(x, y - 5, x, y + 5) };
drawLines(lines, color);
}