Java Utililty Methods Draw Line awt

List of utility methods to do Draw Line awt

Description

The list of methods to do Draw Line awt are organized into topic(s).

Method

voiddrawLine(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);
voiddrawLine(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);
voiddrawLine(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);
...
voiddrawLine(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)
...
voiddrawLine(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")
...