uchicago.src.sim.gui
Class DrawableLineString
java.lang.Object
|
+--uchicago.src.sim.network.DefaultEdge
|
+--uchicago.src.sim.gis.LineStringAdapter
|
+--uchicago.src.sim.gui.DrawableLineString
- All Implemented Interfaces:
- DrawableGisFeature, DrawableMultiFeature, Edge, RepastGisFeature
- public class DrawableLineString
- extends LineStringAdapter
- implements DrawableGisFeature, DrawableMultiFeature
| Methods inherited from class uchicago.src.sim.gis.LineStringAdapter |
addAttribute, crosses, disjoint, getAttribute, getAttributeNames, getGeometry, getLength, intersects, isMulti, overlaps, setAttributes, setFeature, setGeometry, touches, within |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uchicago.src.sim.gis.RepastGisFeature |
addAttribute, crosses, disjoint, getAttribute, getAttributeNames, getGeometry, intersects, isMulti, overlaps, setAttributes, setFeature, setGeometry, touches, within |
DrawableLineString
public DrawableLineString(SpatialNode from,
SpatialNode to)
DrawableLineString
public DrawableLineString(org.geotools.feature.Feature f)
throws Exception
DrawableLineString
public DrawableLineString(com.vividsolutions.jts.geom.Geometry geo,
Hashtable attr)
throws Exception
setLabel
public void setLabel(String label)
- Description copied from class:
DefaultEdge
- Sets the label for this Edge
- Specified by:
setLabel in interface Edge- Overrides:
setLabel in class DefaultEdge
- Parameters:
label - the label for this edge
getLabel
public String getLabel()
- Description copied from class:
DefaultEdge
- Gets the label for this Edge
- Specified by:
getLabel in interface Edge- Overrides:
getLabel in class DefaultEdge
getColor
public Color getColor()
- Specified by:
getColor in interface DrawableGisFeature
setColor
public void setColor(Color c)
- Specified by:
setColor in interface DrawableGisFeature
getCoords
public com.vividsolutions.jts.geom.Coordinate[] getCoords()
- Specified by:
getCoords in interface DrawableGisFeature
contains
public boolean contains(double x,
double y)
- Specified by:
contains in interface DrawableGisFeature
draw
public void draw(SimGraphics g)
- Specified by:
draw in interface DrawableGisFeature
getFeatures
public int[] getFeatures()
- Specified by:
getFeatures in interface DrawableMultiFeature
Bug reports and feature requests to RePast