|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.SketchParser
public class SketchParser
SketchParser parses a sketch file in XML format (.sk) and produces a SketchModel data structure.
Field Summary | |
---|---|
static String |
COMPOSITE_TAG
Indicate a stroke element. |
static String |
DTD_1
The DTD for sketch files. |
static String |
DTD_URL
The URL where the DTD is stored. |
static String |
FILL_TAG
Indicate the fill to draw the gesture with. |
static String |
LINEWIDTH_TAG
Indicate the line width to draw the gesture with. |
static String |
MODEL_TAG
Indicate a sketch model. |
static String |
OUTLINE_TAG
Indicate the outline to draw the gesture with. |
static String |
PUBLIC_ID
The public identity of the sketch dtd file. |
static String |
STROKE_TAG
Indicate a stroke symbol. |
Constructor Summary | |
---|---|
SketchParser()
|
Method Summary | |
---|---|
Object |
parse(Reader in)
Parse the input stream dictated by the given reader into a sketch model. |
static Color |
parseColor(String val)
Return the color object indicated by "val". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PUBLIC_ID
public static final String DTD_URL
public static final String DTD_1
public static final String MODEL_TAG
public static final String STROKE_TAG
public static final String COMPOSITE_TAG
public static final String OUTLINE_TAG
public static final String FILL_TAG
public static final String LINEWIDTH_TAG
Constructor Detail |
---|
public SketchParser()
Method Detail |
---|
public Object parse(Reader in) throws Exception
parse
in interface ModelParser
Exception
public static Color parseColor(String val)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |