Java Swing Tutorial - Java BasicStroke.getLineJoin()








Syntax

BasicStroke.getLineJoin() has the following syntax.

public int getLineJoin()

Example

In the following code shows how to use BasicStroke.getLineJoin() method.

/*ww w.ja  va 2 s .co m*/
import java.awt.BasicStroke;
import java.util.Arrays;

public class Main {
  public static void main(String[] args) {
    BasicStroke stroke = new BasicStroke(10, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0.1F);
    System.out.println(stroke.getLineJoin());

  }
}

The code above generates the following result.