public class StationLocationDisplayable extends StationModelDisplayable
setDisplayState(int, boolean, int, boolean)
and associated
methods.DisplayableData.DragAdapter
Modifier and Type | Field and Description |
---|---|
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 java.lang.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 java.lang.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
|
OFFSET_SCALE
LINE_WIDTH, MANIPULABLE, renderer, VISIBLE
DISPLAY, parent, SCALAR_MAP_SET
Constructor and Description |
---|
StationLocationDisplayable(java.lang.String name)
Constructs an instance with the supplied reference name.
|
StationLocationDisplayable(java.lang.String name,
int symbolType,
boolean showSymbol,
int idType,
boolean showId)
Constructs an instance with the supplied parameters.
|
StationLocationDisplayable(java.lang.String name,
int symbolType,
boolean showSymbol,
int idType,
boolean showId,
JythonManager jythonManager)
Constructs an instance with the supplied parameters.
|
StationLocationDisplayable(java.lang.String name,
JythonManager jythonManager)
Constructs an instance with the supplied parameters.
|
StationLocationDisplayable(java.lang.String name,
StationModel view)
Constructs an instance with the supplied reference name and
station model view.
|
Modifier and Type | Method and Description |
---|---|
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(java.awt.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(java.util.List stations)
Set the list stations to be displayed.
|
void |
setStations(visad.georef.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
|
getColor, getRotateShapes, getScale, getShouldUseAltitude, getStationModel, hasSelectedRange, setRangeForSelect, setRotateShapes, setScale, setSelectedRange, setShouldUseAltitude, setStationData, setStationModel, setStationModel, toFront, writeKmzFile
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
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setUseTimesInAnimation
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 java.lang.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 java.lang.String[] SYMBOL_NAMES
public StationLocationDisplayable(java.lang.String name) throws visad.VisADException, java.rmi.RemoteException
name
- reference namevisad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectpublic StationLocationDisplayable(java.lang.String name, int symbolType, boolean showSymbol, int idType, boolean showId) throws visad.VisADException, java.rmi.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 plotvisad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectpublic StationLocationDisplayable(java.lang.String name, int symbolType, boolean showSymbol, int idType, boolean showId, JythonManager jythonManager) throws visad.VisADException, java.rmi.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 expressionsvisad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectpublic StationLocationDisplayable(java.lang.String name, JythonManager jythonManager) throws visad.VisADException, java.rmi.RemoteException
name
- The namejythonManager
- Used for evaluating embedded expressionsvisad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectpublic StationLocationDisplayable(java.lang.String name, StationModel view) throws visad.VisADException, java.rmi.RemoteException
name
- reference nameview
- station model viewvisad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectprotected void destroy() throws java.rmi.RemoteException, visad.VisADException
destroy
in class StationModelDisplayable
java.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- VisAD Exceptionpublic void setDisplayState(int symbolType, boolean showSymbol, int idType, boolean showId) throws visad.VisADException, java.rmi.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 plotvisad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectpublic void setColor(java.awt.Color c) throws visad.VisADException, java.rmi.RemoteException
setColor
in class StationModelDisplayable
c
- color to use for all components in the modelvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void updateDisplayable() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setSymbolType(int value) throws visad.VisADException, java.rmi.RemoteException
value
- set the value for the symbol type (e.g., SYMBOL_SQUARE)visad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectpublic int getSymbolType()
public void setIdType(int value) throws visad.VisADException, java.rmi.RemoteException
value
- set the value for the id type (e.g., ID_NAME)visad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectpublic int getIdType()
public void setShowId(boolean value) throws visad.VisADException, java.rmi.RemoteException
value
- true to show the idvisad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectsetIdType(int)
public boolean getShowId()
public void setShowSymbol(boolean value) throws visad.VisADException, java.rmi.RemoteException
value
- true to show the symbolvisad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectsetSymbolType(int)
public boolean getShowSymbol()
public void setStations(java.util.List stations) throws visad.VisADException, java.rmi.RemoteException
stations
- List of NamedStationImplsvisad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectpublic void setStations(visad.georef.NamedLocation[] stations) throws visad.VisADException, java.rmi.RemoteException
stations
- array of stations.visad.VisADException
- couldn't create the necessary VisAD objectjava.rmi.RemoteException
- couldn't create the remote objectpublic Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
cloneForDisplay
in class StationModelDisplayable
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.