List of utility methods to do Draw Line awt
void | drawLine(Graphics g, int x1, int y1, int x2, int y2) Draws a line, using the current color, between the points (x1, y1) and (x2, y2) in this graphics context's coordinate system.
g.drawLine(x1, y1, x2, y2); |
void | drawLine(Graphics g, int x1, int y1, int x2, int y2, boolean thick) draw Line if (thick) { drawThickLine(g, x1, y1, x2, y2); } else { g.drawLine(x1, y1, x2, y2); |
void | drawLine(Graphics g, int x1, int y1, int x2, int y2, int lineWidth) _more_ if (lineWidth == 1) { g.drawLine(x1, y1, x2, y2); } else { g.drawLine(x1, y1, x2, y2); double halfWidth = ((double) lineWidth) / 2.0; double deltaX = (double) (x2 - x1); double deltaY = (double) (y2 - y1); double angle = ((x1 == x2) ? Math.PI : Math.atan(deltaY / deltaX) + Math.PI / 2); ... |
void | drawLine(Graphics g, int x1, int y1, int x2, int y2, int lineWidth) draw Line if (lineWidth == 1) g.drawLine(x1, y1, x2, y2); else { double angle; double halfWidth = ((double) lineWidth) / 2.0; double deltaX = (double) (x2 - x1); double deltaY = (double) (y2 - y1); if (x1 == x2) ... |
void | drawLine(Graphics render, int row, String text) Draws a line on the screen at the specified index. FontMetrics metrics = render.getFontMetrics(); int height = metrics.getHeight() + 4; int y = row * height + 15 + 19; String[] texts = text.split("\\["); int xIdx = 7; Color cur = Color.GREEN; for (String t : texts) { for (@SuppressWarnings("unused") ... |