Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (woodrow73):

I'm learning the BasicStroke() class in java. Though I don't understand what a couple of the arguments are.

OpenStudy (woodrow73):

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.

OpenStudy (woodrow73):

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.

OpenStudy (woodrow73):

Perhaps I'll ignore them.

OpenStudy (woodrow73):

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.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!