Modifier and Type | Class and Description |
---|---|
class |
StationLocationRenderer.SLStation
Specialized station class used by this Renderer.
|
Constructor and Description |
---|
StationLocationRenderer()
Default constructor.
|
StationLocationRenderer(boolean multipleSelect)
Create a
StationLocationRenderer using the
selection type defined and the default labeling type. |
StationLocationRenderer(boolean multipleSelect,
java.lang.String template)
Create a
StationLocationRenderer using the
selection type and the labeling type defined. |
StationLocationRenderer(java.lang.String template)
Create a
StationLocationRenderer using single station
selection and the labeling type defined. |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g,
java.awt.geom.AffineTransform normal2Device)
render the stations.
|
StationLocationRenderer.SLStation |
find(java.awt.geom.Point2D pickPt)
Find a station that is closest to the pickPt.
|
java.awt.Color |
getColor()
Get the color used for rendering stations.
|
boolean |
getDeclutter()
Get whether station should be decluttered or not.
|
ucar.unidata.geoloc.LatLonRect |
getPreferredArea()
Get the preferred area to be displayed.
|
StationModelView |
getStationModelView()
Get the
StationModelView used by this Renderer. |
java.util.List |
getStations()
Return the (cloned) list of Stations held by this renderer.
|
void |
setColor(java.awt.Color color)
Set the color for rendering unselected stations.
|
void |
setDeclutter(boolean declut)
Set whether station should be decluttered or not.
|
void |
setProjection(ucar.unidata.geoloc.ProjectionImpl project)
Set the projection used by this renderer.
|
void |
setSelectedStations(java.util.List selectedStations)
Set selected stations.
|
void |
setStations(java.util.List stns,
boolean declut)
Set the stations to be displayed by this renderer.
|
void |
setStations(java.util.List stns,
java.util.List selectedStations,
boolean declut)
Set the stations to be displayed by this renderer.
|
public StationLocationRenderer()
public StationLocationRenderer(java.lang.String template)
StationLocationRenderer
using single station
selection and the labeling type defined.template
- The String template to use for displaying station labels.public StationLocationRenderer(boolean multipleSelect)
StationLocationRenderer
using the
selection type defined and the default labeling type.multipleSelect
- allow selection of multiple stationspublic StationLocationRenderer(boolean multipleSelect, java.lang.String template)
StationLocationRenderer
using the
selection type and the labeling type defined.template
- The String template to use for displaying station labels.multipleSelect
- allow selection of multiple stationspublic void setColor(java.awt.Color color)
public java.awt.Color getColor()
public ucar.unidata.geoloc.LatLonRect getPreferredArea()
getPreferredArea
in interface Renderer
public void setStations(java.util.List stns, boolean declut)
stns
- List
of Station
objectsdeclut
- true to declutter stations.public void setStations(java.util.List stns, java.util.List selectedStations, boolean declut)
stns
- List
of Station
objectsselectedStations
- List
of selected stationsdeclut
- true to declutter stations.public java.util.List getStations()
public void setSelectedStations(java.util.List selectedStations)
selectedStations
- List
of selected stationspublic void setDeclutter(boolean declut)
declut
- true to declutterpublic boolean getDeclutter()
public void draw(java.awt.Graphics2D g, java.awt.geom.AffineTransform normal2Device)
draw
in interface Renderer
g
- Graphics to draw tonormal2Device
- transform for data to device coordinatesfor an example using pixelAT.
public void setProjection(ucar.unidata.geoloc.ProjectionImpl project)
setProjection
in interface Renderer
project
- projection to usepublic StationModelView getStationModelView()
StationModelView
used by this Renderer.public StationLocationRenderer.SLStation find(java.awt.geom.Point2D pickPt)
pickPt
- point where user clicked.