|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.Control
visad.FlowControl
public abstract class FlowControl
FlowControl is the VisAD abstract super-class for controlling Flow display scalars.
| Field Summary | |
|---|---|
static int |
NH_ORIENTATION
Northern Hemisphere orientation for wind barbs |
static int |
SH_ORIENTATION
Southern Hemisphere orientation for wind barbs |
| Constructor Summary | |
|---|---|
FlowControl(DisplayImpl d)
Create a FlowControl |
|
| Method Summary | |
|---|---|
Object |
clone()
Clone this control. |
void |
enableStreamlines(boolean flag)
Enable/disable showing vectors as streamlines |
boolean |
equals(Object o)
See if this control equals another |
boolean |
getAdjustFlowToEarth()
Get barb orientation for wind barbs |
float |
getArrowScale()
Get the streamline arrow scale |
boolean |
getAutoScale()
Get whether the vector/barb size should scale with display zoom. |
int |
getBarbOrientation()
Get barb orientation for wind barbs |
float |
getFlowScale()
Get scale length for flow vectors |
String |
getSaveString()
Get a string that can be used to reconstruct this control later |
float |
getStepFactor()
Get the streamline step factor |
float |
getStreamlineDensity()
Get the streamline density factor. |
float |
getStreamlinePacking()
Get the streamline packing value |
float |
getStreamlineReduction()
Get the streamline reduction value |
float[] |
getStreamlineSmoothing()
Get the streamline smoothing value |
void |
nullControl()
Null the control. |
void |
setAdjustFlowToEarth(boolean adjust)
Get whether values should be adjusted to the earth |
void |
setArrowScale(float arrowScale)
Set the streamline arrow size |
void |
setAutoScale(boolean auto)
Set whether the vector/barb size should scale with display zoom. |
void |
setBarbOrientation(int orientation)
Set barb orientation for wind barbs (default is southern hemisphere) |
void |
setFlowScale(float scale)
Set scale length for flow vectors (default is 0.02f) |
void |
setSaveString(String save)
Reconstruct this control using the specified save string |
void |
setStepFactor(float stepFactor)
Set the streamline step factor |
void |
setStreamlineDensity(float density)
Set the streamline density |
void |
setStreamlinePacking(float packing)
Set the streamline packing |
void |
setStreamlineReduction(float reduction)
Set the streamline reduction |
void |
setStreamlineSmoothing(float cntrWeight,
int n_pass)
Set the streamline smoothing |
boolean |
streamlinesEnabled()
Get the status of streamlines |
void |
syncControl(Control rmt)
Copy the state of a remote control to this control |
| Methods inherited from class visad.Control |
|---|
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NH_ORIENTATION
public static final int SH_ORIENTATION
| Constructor Detail |
|---|
public FlowControl(DisplayImpl d)
d - DisplayImpl that this is associated with.| Method Detail |
|---|
public void setFlowScale(float scale)
throws VisADException,
RemoteException
scale - new scale
VisADException
RemoteExceptionpublic float getFlowScale()
public void setBarbOrientation(int orientation)
throws VisADException,
RemoteException
orientation - wind barb orientation
(NH_ORIENTATION or SH_ORIENTATION);
VisADException
RemoteExceptionpublic int getBarbOrientation()
public void setAdjustFlowToEarth(boolean adjust)
throws VisADException,
RemoteException
adjust - true to adjust
VisADException - problem setting the value
RemoteException - problem setting the value on remote systempublic boolean getAdjustFlowToEarth()
public void enableStreamlines(boolean flag)
throws VisADException,
RemoteException
flag - true to display as streamlines
VisADException - problem enabling the streamlines
RemoteException - problem enabling the streamlines on remote system
public void setStreamlineDensity(float density)
throws VisADException,
RemoteException
density - the density value
VisADException - problem setting the density
RemoteException - problem setting the density on remote system
public void setArrowScale(float arrowScale)
throws VisADException,
RemoteException
arrowScale - the streamline arrow size
VisADException - problem setting the arrow scale
RemoteException - problem setting the arrow scale on remote system
public void setStepFactor(float stepFactor)
throws VisADException,
RemoteException
stepFactor - the streamline step factor
VisADException - problem setting the step factor
RemoteException - problem setting the step factor on remote system
public void setStreamlinePacking(float packing)
throws VisADException,
RemoteException
packing - the streamline packing
VisADException - problem setting the packing
RemoteException - problem setting the packing on remote system
public void setStreamlineSmoothing(float cntrWeight,
int n_pass)
throws VisADException,
RemoteException
cntrWeight - the center weightn_pass - number of smoothing passes
VisADException - problem setting the smoothing
RemoteException - problem setting the smoothing on remote system
public void setStreamlineReduction(float reduction)
throws VisADException,
RemoteException
reduction - the streamline reduction
VisADException - problem setting the reduction
RemoteException - problem setting the reduction on remote systempublic boolean streamlinesEnabled()
public float getStreamlineDensity()
public float getArrowScale()
public float getStepFactor()
public float getStreamlinePacking()
public float[] getStreamlineSmoothing()
public float getStreamlineReduction()
public String getSaveString()
getSaveString in class Control
public void setSaveString(String save)
throws VisADException,
RemoteException
setSaveString in class Controlsave - - String representation for reconstruction
VisADException - if a VisAD error occurs
RemoteException - if an RMI error occurs
public void syncControl(Control rmt)
throws VisADException
syncControl in class Controlrmt - remote Control whose state is copied
VisADException - if a VisAD error occurs
public void setAutoScale(boolean auto)
throws VisADException
auto - true to enable autoscaling.
VisADException - problem setting the autoscalingpublic boolean getAutoScale()
public void nullControl()
nullControl in class Controlpublic boolean equals(Object o)
equals in class Controlo - object in question
public Object clone()
clone in class Control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||