I'm learning the BasicStroke() class in java. Though I don't understand what a couple of the arguments are.
https://docs.oracle.com/javase/7/docs/api/java/awt/BasicStroke.html#BasicStroke(float,%20int,%20int,%20float,%20float [],%20float) Within it's full constructor- there is a miterLimit argument, and a dashPhase argument -- however I don't understand what they do -- I've run a few sample programs using it, but after testing different values- I don't see any difference in the program.
In terms of functionality for learning this class - I suppose it's convenient for Graphics stuff, though I haven't learned that yet. A BasicStroke object is an argument for the StrokeBorder class, one overloaded method takes just a basicstroke object, and the 2nd overloaded method takes a basicstroke object followed by a paint object.
Perhaps I'll ignore them.
I figured out that the dash-phase will cut in x.0f pixels off the start... in other words, the dashed pattern starts x pixels into the pattern.
Join our real-time social learning platform and learn together with your friends!