|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.ReferenceActionLink visad.DataDisplayLink
public class DataDisplayLink
DataDisplayLink objects define connections between DataReference objects and Display objects. It extends ReferenceActionLink which is the more general link between ThingReference (extended by DataReference) and Action (extended by Display).
Field Summary | |
---|---|
long |
start_time
value of System.currentTimeMillis() when doTransform() started |
boolean |
time_flag
flag indicating current doTransform() has taken more than 500 ms |
Constructor Summary | |
---|---|
DataDisplayLink(DataReference ref,
DisplayImpl local_d,
Display d,
ConstantMap[] constant_maps,
DataRenderer rend,
long jd)
construct a DataDisplayLink linking a DataReference to a Display |
Method Summary | |
---|---|
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]; |
Methods inherited from class visad.ReferenceActionLink |
---|
checkTicks, getAction, getLocalAction, getName, getThingReference, peekTicks, setTicks |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long start_time
public boolean time_flag
Constructor Detail |
---|
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 Action
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredMethod Detail |
---|
public void setConstantMaps(ConstantMap[] constant_maps) throws VisADException, RemoteException
constant_maps
- array of ConstantMaps specific to this Data
VisADException
- a VisAD error occurred
RemoteException
- 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 occurred
RemoteException
- an RMI error occurredpublic boolean prepareData() throws VisADException, RemoteException
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic ShadowType getShadow()
public Data getData() throws VisADException, RemoteException
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic void clearData()
public MathType getType() throws VisADException, RemoteException
VisADException
- a VisAD error occurred
RemoteException
- an RMI error occurredpublic float[] getDefaultValues()
public DataReference getDataReference()
public Vector getConstantMaps()
public Vector getScalarMaps()
public boolean equals(Object o)
equals
in class Object
o
- the object in question.
true
if and only if this instance equals o.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |