public class TimedGeoLayer extends GeoLayer
Constructor and Description |
---|
TimedGeoLayer(java.lang.String name)
Create a new timed geographic layer.
|
Modifier and Type | Method and Description |
---|---|
void |
addTimedShape(GeoShape shape,
TimeSpan span)
Add a timed shape with a specified time span.
|
void |
drawLayer(java.awt.Graphics2D g2,
java.util.Date date)
Draw this layer into the graphics context.
|
java.util.List<GeoShape> |
getAllShapes()
Get the list of shapes for this layer.
|
java.util.Map<GeoShape,TimeSpan> |
getAllTimedShapes()
Get the map of all shapes with a time component.
|
java.util.List<GeoShape> |
getShapesAt(java.util.Date date)
Get the shapes at a particular date.
|
add, addAll, clear, drawLayer, getDrawColor, getFillColor, getGeoBounds, getName, getPickRadius, getRenderStyle, getShapes, isEmpty, isPickable, pickGeo, project, setColors, setDrawColor, setFillColor, setMarkerShape, setName, setPickable, setPickRadius, setRenderStyle, toString
public TimedGeoLayer(java.lang.String name)
name
- the name of the geographic layerpublic void addTimedShape(GeoShape shape, TimeSpan span)
shape
- the shape to addspan
- the time span when this shape should be visiblepublic void drawLayer(java.awt.Graphics2D g2, java.util.Date date)
g2
- the graphics context to draw intodate
- The date to draw timed shapespublic java.util.List<GeoShape> getAllShapes()
public java.util.Map<GeoShape,TimeSpan> getAllTimedShapes()
public java.util.List<GeoShape> getShapesAt(java.util.Date date)
date
- the date to check