|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.DisplayableData
ucar.visad.display.StationModelDisplayable
ucar.visad.display.StationLocationDisplayable
public class StationLocationDisplayable
Provides support for display of station locations. Each location can
have a station identifier (e.g., id, name, lat, lon) and/or a location
marker (e.g., plus, circle, star). What gets displayed is determined
by the parameters set through the
setDisplayState(int, boolean, int, boolean) and associated
methods.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.visad.display.DisplayableData |
|---|
DisplayableData.DragAdapter |
| Field Summary | |
|---|---|
static int |
ID_ELEVATION
The identifier for a station elevation (units of meters) |
static int |
ID_ELEVATION_FT
The identifier for a station elevation (units of feet) |
static int |
ID_ID
The identifier for a station identifier |
static int |
ID_LAT
The identifier for a station latitude |
static int |
ID_LATLON
The identifier for a station latitude/longitude |
static int |
ID_LON
The identifier for a station longitude |
static int |
ID_NAME
The identifier for a station name |
static String[] |
ID_NAMES
Array of names of station information identifiers |
static int[] |
IDS
Array of station information identifiers |
static int |
SYMBOL_CIRCLE
The identifier for a circle station location marker |
static int |
SYMBOL_DIAMOND
The identifier for a diamond station location marker |
static int |
SYMBOL_FCIRCLE
The identifier for a filled circle station location marker |
static int |
SYMBOL_FDIAMOND
The identifier for a filled diamond station location marker |
static int |
SYMBOL_FSQUARE
The identifier for a filled square station location marker |
static int |
SYMBOL_FSTAR
The identifier for a filled start station location marker |
static int |
SYMBOL_FTRIANGLE
The identifier for a filled triangle station location marker |
static String[] |
SYMBOL_NAMES
Array of names of station markers |
static int |
SYMBOL_NONE
The identifier for no station location marker |
static int |
SYMBOL_PLUS
The identifier for a plus station location marker |
static int |
SYMBOL_SQUARE
The identifier for a square station location marker |
static int |
SYMBOL_STAR
The identifier for a star station location marker |
static int |
SYMBOL_TRIANGLE
The identifier for a triangle station location marker |
static int[] |
SYMBOLS
Array of station location markers |
| Fields inherited from class ucar.visad.display.StationModelDisplayable |
|---|
OFFSET_SCALE |
| Fields inherited from class ucar.visad.display.DisplayableData |
|---|
LINE_WIDTH, MANIPULABLE, renderer, VISIBLE |
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
StationLocationDisplayable(String name)
Constructs an instance with the supplied reference name. |
|
StationLocationDisplayable(String name,
int symbolType,
boolean showSymbol,
int idType,
boolean showId)
Constructs an instance with the supplied parameters. |
|
StationLocationDisplayable(String name,
int symbolType,
boolean showSymbol,
int idType,
boolean showId,
JythonManager jythonManager)
Constructs an instance with the supplied parameters. |
|
StationLocationDisplayable(String name,
JythonManager jythonManager)
Constructs an instance with the supplied parameters. |
|
StationLocationDisplayable(String name,
StationModel view)
Constructs an instance with the supplied reference name and station model view. |
|
| Method Summary | |
|---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display. |
protected void |
destroy()
Destroy this instance |
int |
getIdType()
Get the id type. |
boolean |
getShowId()
Get whether or not the id should be displayed. |
boolean |
getShowSymbol()
Get whether or not the station marker symbol should be displayed. |
int |
getSymbolType()
Get the symbol type. |
void |
setColor(Color c)
Set the color of the model. |
void |
setDisplayState(int symbolType,
boolean showSymbol,
int idType,
boolean showId)
Sets the parameters used for generating a station model. |
void |
setIdType(int value)
Set the id type that is used for the station display. |
void |
setShowId(boolean value)
Set whether the station id should be shown in the station model view. |
void |
setShowSymbol(boolean value)
Set whether the station marker symbol should be shown in the station model view. |
void |
setStations(List stations)
Set the list stations to be displayed. |
void |
setStations(NamedLocation[] stations)
Set the stations to be displayed. |
void |
setSymbolType(int value)
Set the symbol type (The index into WeatherSymbols.getMisc) that is used for the station display. |
void |
updateDisplayable()
Update yourself |
| Methods inherited from class ucar.visad.display.StationModelDisplayable |
|---|
getColor, getRotateShapes, getScale, getShouldUseAltitude, getStationModel, hasSelectedRange, setRangeForSelect, setRotateShapes, setScale, setSelectedRange, setShouldUseAltitude, setStationData, setStationModel, setStationModel, toFront, writeKmzFile |
| Methods inherited from class ucar.visad.display.DisplayableData |
|---|
addAction, dataChange, getActive, getAnimationSet, getData, getDataRenderer, getLineWidth, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setLineWidth, setManipulable, setPickable, setPointMode, setPointSize, setUseFastRendering, setVisible, showme, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ID_ID
public static final int ID_NAME
public static final int ID_LAT
public static final int ID_LON
public static final int ID_LATLON
public static final int ID_ELEVATION
public static final int ID_ELEVATION_FT
public static final int[] IDS
public static final String[] ID_NAMES
public static final int SYMBOL_NONE
public static final int SYMBOL_SQUARE
public static final int SYMBOL_FSQUARE
public static final int SYMBOL_CIRCLE
public static final int SYMBOL_FCIRCLE
public static final int SYMBOL_TRIANGLE
public static final int SYMBOL_FTRIANGLE
public static final int SYMBOL_DIAMOND
public static final int SYMBOL_FDIAMOND
public static final int SYMBOL_STAR
public static final int SYMBOL_FSTAR
public static final int SYMBOL_PLUS
public static final int[] SYMBOLS
public static final String[] SYMBOL_NAMES
| Constructor Detail |
|---|
public StationLocationDisplayable(String name)
throws VisADException,
RemoteException
name - reference name
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object
public StationLocationDisplayable(String name,
int symbolType,
boolean showSymbol,
int idType,
boolean showId)
throws VisADException,
RemoteException
name - reference namesymbolType - type of symbol (e.g., SYMBOL_CIRCLE)showSymbol - true if symbol should be shown on plotidType - type of station identifier (e.g., ID_ID)showId - true if ID should be shown on plot
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object
public StationLocationDisplayable(String name,
int symbolType,
boolean showSymbol,
int idType,
boolean showId,
JythonManager jythonManager)
throws VisADException,
RemoteException
name - reference namesymbolType - type of symbol (e.g., SYMBOL_CIRCLE)showSymbol - true if symbol should be shown on plotidType - type of station identifier (e.g., ID_ID)showId - true if ID should be shown on plotjythonManager - Used for evaluating embedded expressions
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object
public StationLocationDisplayable(String name,
JythonManager jythonManager)
throws VisADException,
RemoteException
name - The namejythonManager - Used for evaluating embedded expressions
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object
public StationLocationDisplayable(String name,
StationModel view)
throws VisADException,
RemoteException
name - reference nameview - station model view
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object| Method Detail |
|---|
protected void destroy()
throws RemoteException,
VisADException
destroy in class StationModelDisplayableRemoteException - Java RMI Exception
VisADException - VisAD Exception
public void setDisplayState(int symbolType,
boolean showSymbol,
int idType,
boolean showId)
throws VisADException,
RemoteException
symbolType - type of symbol (e.g., SYMBOL_CIRCLE)showSymbol - true if symbol should be shown on plotidType - type of station identifier (e.g., ID_ID)showId - true if ID should be shown on plot
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object
public void setColor(Color c)
throws VisADException,
RemoteException
setColor in class StationModelDisplayablec - color to use for all components in the model
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void updateDisplayable()
throws VisADException,
RemoteException
RemoteException - On badness
VisADException - On badness
public void setSymbolType(int value)
throws VisADException,
RemoteException
value - set the value for the symbol type (e.g., SYMBOL_SQUARE)
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote objectpublic int getSymbolType()
public void setIdType(int value)
throws VisADException,
RemoteException
value - set the value for the id type (e.g., ID_NAME)
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote objectpublic int getIdType()
public void setShowId(boolean value)
throws VisADException,
RemoteException
value - true to show the id
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote objectsetIdType(int)public boolean getShowId()
public void setShowSymbol(boolean value)
throws VisADException,
RemoteException
value - true to show the symbol
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote objectsetSymbolType(int)public boolean getShowSymbol()
public void setStations(List stations)
throws VisADException,
RemoteException
stations - List of NamedStationImpls
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object
public void setStations(NamedLocation[] stations)
throws VisADException,
RemoteException
stations - array of stations.
VisADException - couldn't create the necessary VisAD object
RemoteException - couldn't create the remote object
public Displayable cloneForDisplay()
throws RemoteException,
VisADException
cloneForDisplay in class StationModelDisplayableVisADException - VisAD failure.
RemoteException - Java RMI failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||