Java BasicStroke.getDashPhase()
Syntax
BasicStroke.getDashPhase() has the following syntax.
public float getDashPhase()
Example
In the following code shows how to use BasicStroke.getDashPhase() method.
//from w ww. ja v a2s . c o 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.getDashPhase());
}
}
The code above generates the following result.
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »