public class DashedPathData extends AbstractXmlBuilder
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DashedPathData() |
DashedPathData(Polyline2D path,
double segLen,
double gapLen)
Construct a text data that contains an empty string.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getDelegate, setDelegate
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
public DashedPathData()
public DashedPathData(Polyline2D path, double segLen, double gapLen)
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)
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
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.