public class DataDisplayLink extends ReferenceActionLink
| Modifier and Type | Field and Description |
|---|---|
long |
start_time
value of System.currentTimeMillis() when doTransform() started
|
boolean |
time_flag
flag indicating current doTransform() has taken more than 500 ms
|
| Constructor and Description |
|---|
DataDisplayLink(DataReference ref,
DisplayImpl local_d,
Display d,
ConstantMap[] constant_maps,
DataRenderer rend,
long jd)
construct a DataDisplayLink linking a DataReference to a Display
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectedMapVector(ScalarMap map)
add a ScalarMap applying to this Data
|
void |
clearData()
clear cached copy of linked Data
|
void |
clearMaps()
clear Vectors of ScalarMaps applying to this Data and
of ConstantMaps; also clear other instance variables
|
boolean |
equals(Object o)
Indicates whether or not this instance is equal to an object
|
Vector |
getConstantMaps() |
Data |
getData() |
DataReference |
getDataReference() |
float[] |
getDefaultValues() |
DisplayImpl |
getDisplay() |
DataRenderer |
getRenderer() |
Vector |
getScalarMaps() |
Vector |
getSelectedMapVector() |
ShadowType |
getShadow() |
MathType |
getType() |
boolean |
prepareData()
Prepare to render data (include feasibility check);
|
void |
setConstantMaps(ConstantMap[] constant_maps)
Change ConstantMaps[] array specific to this DataDisplayLink
Note this call should occur between
display.disableAction()
and
display.enableAction()
there are two ways for an application to get a DataDisplayLink:
given a DisplayImpl and a DataReference:
DataDisplayLink link = (DataDisplayLink) display.findReference(ref);
given a DataRenderer (assuming it has only one DataReference):
DataDisplayLink link = renderer.getLinks()[0];
|
checkTicks, getAction, getLocalAction, getName, getThingReference, peekTicks, setTickspublic long start_time
public boolean time_flag
public DataDisplayLink(DataReference ref, DisplayImpl local_d, Display d, ConstantMap[] constant_maps, DataRenderer rend, long jd) throws VisADException, RemoteException
ref - the DataReference to linklocal_d - if d is DisplayImpl, then d; if d is RemoteDisplay, then
its adapted DisplayImpld - the Displayconstant_maps - array of ConstantMaps specific to this Datarend - DataRenderer that creates Data depictionsjd - - unique ID among ReferenceActionLinks attached to ActionVisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic void setConstantMaps(ConstantMap[] constant_maps) throws VisADException, RemoteException
constant_maps - array of ConstantMaps specific to this DataVisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic DisplayImpl getDisplay()
public DataRenderer getRenderer()
public Vector getSelectedMapVector()
public void addSelectedMapVector(ScalarMap map)
map - ScalarMap to addpublic void clearMaps()
throws RemoteException,
VisADException
VisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic boolean prepareData()
throws VisADException,
RemoteException
VisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic ShadowType getShadow()
public Data getData() throws VisADException, RemoteException
VisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic void clearData()
public MathType getType() throws VisADException, RemoteException
VisADException - a VisAD error occurredRemoteException - an RMI error occurredpublic float[] getDefaultValues()
public DataReference getDataReference()
public Vector getConstantMaps()
public Vector getScalarMaps()
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.