|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.xml.AbstractXmlBuilder
diva.sketch.toolbox.DashedPathData
public class DashedPathData
A typed data that holds a recognized dashed path which consists of a Polyline2D path, an average dash length, and an average gap length.
Field Summary | |
---|---|
static String |
DASHED_PATH_DATA
|
static String |
GAP_LENGTH
|
static String |
PATH
|
static String |
SEGMENT_LENGTH
|
static Type |
type
The static type associated with this typed data. |
Constructor Summary | |
---|---|
DashedPathData()
|
|
DashedPathData(Polyline2D path,
double segLen,
double gapLen)
Construct a text data that contains an empty string. |
Method Summary | |
---|---|
Object |
build(XmlElement elt,
String type)
Given an XmlElement, create and return an internal representtion of it. |
boolean |
equals(Object o)
Equality test: are the paths, segment lengths, and gap lengths identical? |
XmlElement |
generate(Object in)
Unable to generate XML by default. |
double |
getGapLength()
Return the average gap length of the path. |
Polyline2D |
getPath()
Return the polyline path that the dashed path follows. |
double |
getSegmentLength()
Return the average segment length of the path. |
Type |
getType()
Return the type of this data, implementing the TypedData interface. |
void |
setGapLength(double gapLen)
Set the average gap length of the path. |
void |
setPath(Polyline2D path)
Set the polyline path that the dashed path follows. |
void |
setSegmentLength(double segLen)
Set the average segment length of the path. |
String |
toString()
Return a string representation of this data for debugging. |
Methods inherited from class diva.util.xml.AbstractXmlBuilder |
---|
getDelegate, setDelegate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DASHED_PATH_DATA
public static final String SEGMENT_LENGTH
public static final String GAP_LENGTH
public static final String PATH
public static final Type type
Constructor Detail |
---|
public DashedPathData()
public DashedPathData(Polyline2D path, double segLen, double gapLen)
Method Detail |
---|
public Type getType()
public Polyline2D getPath()
public void setPath(Polyline2D path)
public double getSegmentLength()
public void setSegmentLength(double segLen)
public double getGapLength()
public void setGapLength(double gapLen)
public boolean equals(Object o)
equals
in class Object
public Object build(XmlElement elt, String type)
AbstractXmlBuilder
public Graph build (XmlELement elt, String type);
build
in interface XmlBuilder
build
in class AbstractXmlBuilder
public XmlElement generate(Object in)
AbstractXmlBuilder
generate
in interface XmlBuilder
generate
in class AbstractXmlBuilder
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |