|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.view.station.StationLocationRenderer
public class StationLocationRenderer
Implements the Renderer interface for collections of Station-s.
Plots a station location as a name and circle for a marker:
Boulder
o
| Nested Class Summary | |
|---|---|
class |
StationLocationRenderer.SLStation
Specialized station class used by this Renderer. |
| Constructor Summary | |
|---|---|
StationLocationRenderer()
Default constructor. |
|
StationLocationRenderer(boolean multipleSelect)
Create a StationLocationRenderer using the
selection type defined and the default labeling type. |
|
StationLocationRenderer(boolean multipleSelect,
String template)
Create a StationLocationRenderer using the
selection type and the labeling type defined. |
|
StationLocationRenderer(String template)
Create a StationLocationRenderer using single station
selection and the labeling type defined. |
|
| Method Summary | |
|---|---|
void |
draw(Graphics2D g,
AffineTransform normal2Device)
render the stations. |
StationLocationRenderer.SLStation |
find(Point2D pickPt)
Find a station that is closest to the pickPt. |
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. |
List |
getStations()
Return the (cloned) list of Stations held by this renderer. |
void |
setColor(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(List selectedStations)
Set selected stations. |
void |
setStations(List stns,
boolean declut)
Set the stations to be displayed by this renderer. |
void |
setStations(List stns,
List selectedStations,
boolean declut)
Set the stations to be displayed by this renderer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StationLocationRenderer()
public StationLocationRenderer(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 stations
public StationLocationRenderer(boolean multipleSelect,
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 stations| Method Detail |
|---|
public void setColor(Color color)
setColor in interface Renderercolor - color for rendering.public Color getColor()
getColor in interface Rendererpublic ucar.unidata.geoloc.LatLonRect getPreferredArea()
getPreferredArea in interface Renderer
public void setStations(List stns,
boolean declut)
stns - List of Station objectsdeclut - true to declutter stations.
public void setStations(List stns,
List selectedStations,
boolean declut)
stns - List of Station objectsselectedStations - List of selected stationsdeclut - true to declutter stations.public List getStations()
public void setSelectedStations(List selectedStations)
selectedStations - List of selected stationspublic void setDeclutter(boolean declut)
declut - true to declutterpublic boolean getDeclutter()
public void draw(Graphics2D g,
AffineTransform normal2Device)
draw in interface Rendererg - 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 Rendererproject - projection to usepublic StationModelView getStationModelView()
StationModelView used by this Renderer.
public StationLocationRenderer.SLStation find(Point2D pickPt)
pickPt - point where user clicked.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||