|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectview.MyStroke
public class MyStroke
A class that allows constructing of a stroke with a string. Only the most complicated constructor from the basic class is supported.
| Field Summary | |
|---|---|
private BasicStroke |
stroke
|
| Constructor Summary | |
|---|---|
MyStroke(String arg)
Constructs a basic stroke, where all parameteres are given in a semi-solon separated list. |
|
| Method Summary | |
|---|---|
Shape |
createStrokedShape(Shape p)
|
private static String |
getCommaString(float[] array)
Converts an array of floats to a comma-separated string |
private static float[] |
getFloatArray(List<String> ofstrings)
Converts a list of strings to an array of floats. |
String |
toString()
Returns a string version of this basic stroke that is compatible with the constructor. |
static String |
toString(BasicStroke base)
Returns a string version of a basic stroke that is compatible with the constructor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private BasicStroke stroke
| Constructor Detail |
|---|
public MyStroke(String arg)
| Method Detail |
|---|
public Shape createStrokedShape(Shape p)
createStrokedShape in interface Strokepublic String toString()
toString in class Objectpublic static String toString(BasicStroke base)
private static float[] getFloatArray(List<String> ofstrings)
private static String getCommaString(float[] array)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||