public abstract class FlowControl extends Control
| Modifier and Type | Field and Description |
|---|---|
static int |
NH_ORIENTATION
Northern Hemisphere orientation for wind barbs
|
static int |
SH_ORIENTATION
Southern Hemisphere orientation for wind barbs
|
| Constructor and Description |
|---|
FlowControl(DisplayImpl d)
Create a FlowControl
|
| Modifier and Type | Method and Description |
|---|---|
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
|
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks, toStringpublic static final int NH_ORIENTATION
public static final int SH_ORIENTATION
public FlowControl(DisplayImpl d)
d - DisplayImpl that this is associated with.public void setFlowScale(float scale)
throws VisADException,
RemoteException
scale - new scaleVisADExceptionRemoteExceptionpublic float getFlowScale()
public void setBarbOrientation(int orientation)
throws VisADException,
RemoteException
orientation - wind barb orientation
(NH_ORIENTATION or SH_ORIENTATION);VisADExceptionRemoteExceptionpublic int getBarbOrientation()
public void setAdjustFlowToEarth(boolean adjust)
throws VisADException,
RemoteException
adjust - true to adjustVisADException - problem setting the valueRemoteException - problem setting the value on remote systempublic boolean getAdjustFlowToEarth()
public void enableStreamlines(boolean flag)
throws VisADException,
RemoteException
flag - true to display as streamlinesVisADException - problem enabling the streamlinesRemoteException - problem enabling the streamlines on remote systempublic void setStreamlineDensity(float density)
throws VisADException,
RemoteException
density - the density valueVisADException - problem setting the densityRemoteException - problem setting the density on remote systempublic void setArrowScale(float arrowScale)
throws VisADException,
RemoteException
arrowScale - the streamline arrow sizeVisADException - problem setting the arrow scaleRemoteException - problem setting the arrow scale on remote systempublic void setStepFactor(float stepFactor)
throws VisADException,
RemoteException
stepFactor - the streamline step factorVisADException - problem setting the step factorRemoteException - problem setting the step factor on remote systempublic void setStreamlinePacking(float packing)
throws VisADException,
RemoteException
packing - the streamline packingVisADException - problem setting the packingRemoteException - problem setting the packing on remote systempublic void setStreamlineSmoothing(float cntrWeight,
int n_pass)
throws VisADException,
RemoteException
cntrWeight - the center weightn_pass - number of smoothing passesVisADException - problem setting the smoothingRemoteException - problem setting the smoothing on remote systempublic void setStreamlineReduction(float reduction)
throws VisADException,
RemoteException
reduction - the streamline reductionVisADException - problem setting the reductionRemoteException - 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 Controlpublic void setSaveString(String save) throws VisADException, RemoteException
setSaveString in class Controlsave - - String representation for reconstructionVisADException - if a VisAD error occursRemoteException - if an RMI error occurspublic void syncControl(Control rmt) throws VisADException
syncControl in class Controlrmt - remote Control whose state is copiedVisADException - if a VisAD error occurspublic 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)