public class MultiSpectralDisplay extends Object implements DisplayListener
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiSpectralDisplay.DragLine |
private static class |
MultiSpectralDisplay.RubberBandBox |
| Constructor and Description |
|---|
MultiSpectralDisplay(DirectDataChoice dataChoice) |
MultiSpectralDisplay(HydraControl control) |
private static final org.slf4j.Logger logger
private static final String DISP_NAME
private static int cnt
private DirectDataChoice dataChoice
private ViewManager viewManager
private float[] initialRangeX
private float[] initialRangeY
private RealType domainType
private RealType uniqueRangeType
private LocalDisplay display
private boolean imageExpired
private MultiSpectralData data
private float waveNumber
private List<DataReference> displayedThings
private HashMap<String,DataReference> idToRef
private HashMap<DataReference,ConstantMap[]> colorMaps
private HydraControl displayControl
private DisplayableData imageDisplay
private Gridded1DSet domainSet
private JComboBox bandSelectComboBox
private final String channelSelector
private final Map<String,MultiSpectralDisplay.DragLine> selectors
public MultiSpectralDisplay(HydraControl control) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic MultiSpectralDisplay(DirectDataChoice dataChoice) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic FlatField getImageData()
public FlatField getImageDataFrom(float channel)
private FlatField changeRangeType(FlatField image, RealType newRangeType) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic LocalDisplay getDisplay()
public Component getDisplayComponent()
public RealType getDomainType()
public RealType getRangeType()
public ViewManager getViewManager()
public MultiSpectralData getMultiSpectralData()
public Gridded1DSet getDomainSet()
private void init() throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic JComboBox getBandSelectComboBox()
public void setDisplayControl(HydraControl control)
public void displayChanged(DisplayEvent e) throws VisADException, RemoteException
displayChanged in interface DisplayListenerVisADExceptionRemoteExceptionpublic DisplayableData getImageDisplay()
public float getWaveNumber()
public int getChannelIndex() throws Exception
Exceptionpublic void refreshDisplay() throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic boolean hasNullData()
public void showChannelSelector()
public void hideChannelSelector()
public MultiSpectralDisplay.DragLine createSelector(String id, Color color) throws Exception
Exceptionpublic MultiSpectralDisplay.DragLine createSelector(String id, ConstantMap[] color) throws Exception
Exceptionpublic MultiSpectralDisplay.DragLine getSelector(String id)
public float getSelectorValue(String id)
public void setSelectorValue(String id, float value) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic void updateControlSelector(String id, float value)
public MultiSpectralDisplay.DragLine removeSelector(String id)
public List<MultiSpectralDisplay.DragLine> getSelectors()
public boolean displayingChannel()
public void removeRef(DataReference thing) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic void addRef(DataReference thing, Color color) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic void updateRef(DataReference thing, Color color) throws VisADException, RemoteException
VisADExceptionRemoteExceptionpublic void reorderDataRefsById(List<String> dataRefIds)
public boolean setWaveNumber(float val)
public static ConstantMap[] makeColorMap(Color color) throws VisADException, RemoteException
color.VisADExceptionRemoteExceptionprivate static void setDisplayMasterAttributes(XYDisplay master) throws VisADException, RemoteException
master some sensible default attributes.VisADExceptionRemoteExceptionprivate static float[] getXRange(Gridded1DSet domain)
public static RealType getRangeType(FlatField spectrum)
private static RealType getDomainType(FlatField spectrum)