public class Polygon
extends Object
Constructor and Description |
---|
Polygon() |
Modifier and Type | Method and Description |
---|---|
static SumoCommand |
add(String polygonID,
SumoGeometry shape,
SumoColor color,
boolean fill,
String polygonType,
int layer)
Add a new polygon.
|
static SumoCommand |
getColor(String polygonID)
Returns the color of this polygon.
|
static SumoCommand |
getFilled(String polygonID)
Returns the shape of this polygon.
|
static SumoCommand |
getIDCount()
Returns the number of all Polygons in the network.
|
static SumoCommand |
getIDList()
Returns a list of IDs of all polygons.
|
static SumoCommand |
getParameter(String polygonID,
String param)
Returns the chosen parameter
|
static SumoCommand |
getShape(String polygonID)
Returns the shape of this polygon.
|
static SumoCommand |
getType(String polygonID)
Returns the type of the polygon.
|
static SumoCommand |
remove(String polygonID,
int layer)
Remove a polygon.
|
static SumoCommand |
setColor(String polygonID,
SumoColor color)
Set the color of this polygon.
|
static SumoCommand |
setFilled(String polygonID,
boolean fill)
Set the color of this polygon.
|
static SumoCommand |
setShape(String polygonID,
SumoStringList shape)
Set the shape of this polygon.
|
static SumoCommand |
setType(String polygonID,
String polygonType)
Set the type of the polygon.
|
public static SumoCommand getColor(String polygonID)
polygonID
- a string identifying the polygonpublic static SumoCommand getIDList()
public static SumoCommand getIDCount()
public static SumoCommand getParameter(String polygonID, String param)
polygonID
- a string identifying the polygonparam
- a string identifying the parameterpublic static SumoCommand getShape(String polygonID)
polygonID
- a string identifying the polygon return the shape of the
polygonpublic static SumoCommand getFilled(String polygonID)
polygonID
- a string identifying the polygon return the shape of the
polygonpublic static SumoCommand getType(String polygonID)
polygonID
- a string identifying the polygonpublic static SumoCommand add(String polygonID, SumoGeometry shape, SumoColor color, boolean fill, String polygonType, int layer)
polygonID
- a string identifying the polygonshape
- shape of the polygoncolor
- value (r,g,b,a) of colorfill
- polygon is filled if the value is != 0polygonType
- type of the polygonlayer
- an integer identifying the layerpublic static SumoCommand remove(String polygonID, int layer)
polygonID
- a string identifying the polygonlayer
- an integer identifying the layerpublic static SumoCommand setColor(String polygonID, SumoColor color)
polygonID
- a string identifying the polygoncolor
- value (r,g,b,a) of colorpublic static SumoCommand setFilled(String polygonID, boolean fill)
polygonID
- a string identifying the polygonfill
- parameter if polygon should be filledpublic static SumoCommand setShape(String polygonID, SumoStringList shape)
polygonID
- a string identifying the polygonshape
- shape of the polygonpublic static SumoCommand setType(String polygonID, String polygonType)
polygonID
- a string identifying the polygonpolygonType
- type of the polygon